<?php $variable = $_GET["lastname"]; ?> <html> <body> <form> Last name: <input type="text" name="firstname" /><br /> <input type="submit" name="Submit1" value="rewind"> </form> <?php function($lastname)?> </body> </html>
The function fails to work the first time I click submit. I am aware that the $_GET method passes variables using the URL. If I edit the url manually (eg 127.0.0.1/test.php?firstname=Dave&Submit) then the form works correctly first time.
How can I get the form to work correctly first time without manually editing the url?
Thanks in advance for you help.

New Topic/Question
Reply




MultiQuote









|