PHP - Bits & Pieces

PHP programming codes and scripting are discussed in the manner of use and relevance. Examples of PHP syntax and scripting are presented in concise writups for better understanding.

Wednesday, June 4, 2008

Using PHP to submit a form to itself

In an earlier post, we see how php can be used to check if the form has been submitted:


http://bitspiecesphp.blogspot.com/2008/05/using-php-to-check-is-form-has-been.html


The following code indicates how to sumbit the page to itself. Just include the php code in the action attribute of the form tag of your html. The server will resubmit the page to itself when activated.


<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home