Re: form challenge
| From: | David Newcomb | Date: | Tue, 11 Jul 2000 08:26:14 +0000 |
| Subject: | Re: form challenge | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-5881@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: Marcel Martin <mmar@mail.com>
To: <php-general@lists.php.net>
Sent: Monday, July 10, 2000 8:16 PM
Subject: Re: [PHP] form challenge
> Matt McClanahan wrote:
> >
> > <? for( $i = 0; $i < $x; $i++ ) { ?>
> > <form method="post" action="<? echo $PHP_SELF ?>">
> > <input type=text> <input type=submit>
> > </form>
> > <? } ?>
> >
> > Something like that?
> >
> > Matt
>
> AFAIK the "action" in a <form> tag defaults to the current URL. I'v seen
> a few scripts where the action was set to $PHP_SELF (like in the example
> above) explicitly, instead of being left out. Is this "better" or even
> necessary for some browsers? Or do most people just not know about this
> behavior? (like I did just a few days ago :-) )?
> Thanks for answering!
Basically, having using the same script for the question and answer keeps
all the
related website tasks together in easily managable chunks; and it dose not
matter is you rename any of them!
David.