POST action
| From: | iccsi | Date: | Sun, 28 Jul 2013 17:14:44 +0000 |
| Subject: | POST action | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-321730@lists.php.net to get a copy of this message | ||
<form action="action.php" method="post">
<p>Your name: <input type="text" name="name" /></p>
<p>Your age: <input type="text" name="age" /></p>
<p><input type="submit" /></p>
</form>In the PHP tutorial manual, it says that we can have post action to the form itself just like above coding.I would like to know in the real projects, can we have action to the same PHP file, since that we only need have one filebut not 2 files foe POST request,Your help and information is great appreciated,regards,Iccsi,