Hi, I learn to write a small PHP form with "submit" button for different actions, however, it seems to me variable can't be passed. Any experience can share for my debugging?
Thanks, Yw The script is as simple as ... === <html> <head></head> <body> ...... <?php function newform() { something..... ?> <table> ... <form> <input type=submit name=action value=print> </form> .... </html> <?php } function printform() { something ..... ?> <table> ... <form> <input type=submit name=action value=confirm> </form> .... </html> <?php } if ($action=="print") { printform(); } else ( newform(); } ?> ===