Re: bad form...
| From: | Steve Edberg | Date: | Wed, 20 Jun 2001 13:11:53 +0000 |
| Subject: | Re: bad form... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-54510@lists.php.net to get a copy of this message | ||
As far as I know, there are no ill effects from doing this; I do it all the time. In the FORM tag, I can then use something like
action="$PHP_SELF"
or
action=$HTTP_SERVER_VARS['PHP_SELF']
(I have the top form on a PHP3-based setup).
On the occasion when I need to redirect the user to another page (after a successful login or registration), I can use a
header("Location: somewhere.else/to/go.html")
line.
-steve
At 8:12 PM -1100 6/19/01, motorpsychkill wrote:
hello everyone, is it 'bad form' (no pun intended) to have a form point to itself for processing, rather than forward the form variables to another page? Anybody have any input on this? I try to have 1 page that is the form and handles all the processing as well in order to keep the page count on my site low and for easier editing, blah blah blah.... thank you for you help!-- +------ Factoid: Of the 100 largest economies in the world, 51 are ------+ | Steve Edberg University of California, Davis | | sbedberg@ucdavis.edu Computer Consultant | | http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ | +--- corporations ------ http://www.ips-dc.org/reports/top200text.htm ---+