NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Is what I want to do impossible?


Joined: 03 Mar 2008
Posts: 1
Reply with quote
I'm just trying to find my way into the the PhpED debugger with this test code:

<!-- multiply.html Works perfectly -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<?php
session_start();
?>

</head>

<body>
<table width="820" border="0">
<tr>
<td height="59">
<form method="post" action="multiply.php">
<input type="hidden" name="item_name" value="CF010"></input>
<input type="hidden" name="price" value="1.60"></input>
<p>
<input type="image" src="images\btn_cart_SM.gif" name="submit" alt=""></input>
</p>
</form>
</td>
</tr>
</table>
</body>
</html>

The submit button calls:

<!-- multiply.php Works perfectly -->
<?php import_request_variables("pg", "form_"); ?>
<html>
<head>
<title>Multiplication table</title>
</head>

<body>
<h1>Multiplication table for <?php echo $form_item_name; ?></h1>

<p>0: 0
<?php
$multiplier = 1;
while($multiplier <= 100) {
$product = $form_price * $multiplier;
echo "<br />$multiplier: $product\n";
$multiplier = $multiplier + 1;
}
?></p>

</body>
</html>

I can step through multiply.php on its own but what I can't manage to do is have it break when I click the sumit buttin in multiply.html Perhaps what I want to do here isn't possible - yes, no?
View user's profileFind all posts by nolfeseSend private message
Guru master

Joined: 05 Jul 2004
Posts: 659
Location: Belgium
Reply with quote
Try adding a "Debugbreak();" in your code on the place where you want to break.
That way you can click around in your site any way you want and a debug session will be started the moment you pass that line.
Hope that helps.
View user's profileFind all posts by BlizzSend private messageVisit poster's website
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
also, you can request debug session from IE toolbar. See IE's menu: View->Toolbars->NuSphere PhpED, then try Debug Next POST in the Debug menu dropdown:

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Is what I want to do impossible?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic