Re: Page name for form submit: REQUEST_URI or SCRIPT_NAME
| From: | Ashley Sheridan | Date: | Sun, 28 Dec 2008 20:48:59 +0000 |
| Subject: | Re: Page name for form submit: REQUEST_URI or SCRIPT_NAME | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-285162@lists.php.net to get a copy of this message | ||
On Sun, 2008-12-28 at 18:59 +0200, Dotan Cohen wrote:
> 2008/12/28 tedd <tedd.sperling@gmail.com>:
> > Dotan:
> >
> > Maybe this is too simple, but what I do is to leave the form attribute
> > action="" blank.
> >
> > My understanding (may be wrong) is that forms always submit to themselves
> > unless directed to do so otherwise.
> >
> > Cheers,
> >
> > tedd
> >
>
> Thanks, Tedd. That approach seems a bit dangerous for non-standard
> browsers such as mobile phones and the like who's developers might not
> have though about it. Also, in the event that a user saves the form
> locally (likely in this case) I need it to have a place to go!
>
> Thanks!
>
It's standard form behaviour that the attribute defaults to itself if
not set. If it doesn't work with some browsers, then it's more a case of
bad browser than anything.
Ash
www.ashleysheridan.co.uk