note 27524 deleted from tutorial.forms by philip

From: Date: Mon, 27 Jan 2003 19:19:25 +0000
Subject: note 27524 deleted from tutorial.forms by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-42873@lists.php.net to get a copy of this message
sometimes a way to make your ftp have less files on it you can use the $PHP_SELF function which gets the current file your using and pops it in <form action="<? $PHP_SELF ?>" method="POST"> Your name: <input type="text" name="name" /> <input type="submit"> <input name="action" type="hidden" id="action" value="submit"> </form> <?php if($_GET['action']=="submit"){ print ($name); } ?> The hidden value sets the var $action on submit telling php to process the form. Happy coding ;)

« previous php.notes (#42873) next »