test after button clicked

Reply

Join Date: Apr 2009
Posts: 7
Reputation: szita1 is an unknown quantity at this point 
Solved Threads: 0
szita1 szita1 is offline Offline
Newbie Poster

test after button clicked

 
0
  #1
May 20th, 2009
I use phpDesigner but I have no idea how i could use debugger when there's a (submit)button in the code and would like to test what happens when the button is clicked.
In this example, the debugger stops when it steps on the "Register" button.
How should i set it to test when it leaves the button?

  1. <?php
  2. foreach($_POST as $field => $label)
  3. {
  4. if (!$_POST[$field])
  5. {
  6. $warnings[$field] = "*";
  7. }
  8. }
  9. ?>
  10.  
  11. <FORM ACTION="proba.php" METHOD=POST>
  12. <TABLE BORDER=0>
  13. <TR><TD>* Required to fill</TD></TR>
  14. <TR>
  15. <TD>Your Name1</TD>
  16. <TD><INPUT TYPE=TEXT SIZE=30 NAME="name1" VALUE="<?php echo $_POST["name1"];?>"></TD>
  17. <TD><?php echo $warnings["name1"];?></TD>
  18. </TR>
  19. <TR>
  20. <TD>Your Name2</TD>
  21. <TD><INPUT TYPE=TEXT SIZE=30 NAME="name2" VALUE="<?php echo $_POST["name2"];?>"></TD>
  22. <TD><?php echo $warnings["name2"];?></TD>
  23. </TR>
  24. <TR>
  25. </TABLE>
  26. <INPUT TYPE=SUBMIT VALUE="Register">
  27. </FORM>
Last edited by peter_budo; May 20th, 2009 at 12:02 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 137
Reputation: HITMANOF44th is an unknown quantity at this point 
Solved Threads: 19
HITMANOF44th HITMANOF44th is offline Offline
Junior Poster

Re: test after button clicked

 
0
  #2
May 20th, 2009
that prgram gets a little weird with debug i just use my test server to test things
Last edited by HITMANOF44th; May 20th, 2009 at 10:08 am.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 137
Reputation: HITMANOF44th is an unknown quantity at this point 
Solved Threads: 19
HITMANOF44th HITMANOF44th is offline Offline
Junior Poster

Re: test after button clicked

 
0
  #3
May 20th, 2009
but i ran your code and i debugged and it went fine for me what version do you have
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 7
Reputation: szita1 is an unknown quantity at this point 
Solved Threads: 0
szita1 szita1 is offline Offline
Newbie Poster

Re: test after button clicked

 
0
  #4
May 20th, 2009
mine is 6.2.5.2.
when you tried the code snippet, did you make it run after the button was clicked?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC