Re: How to submit form via PHP
| From: | Dotan Cohen | Date: | Sun, 28 Sep 2008 09:13:24 +0000 |
| Subject: | Re: How to submit form via PHP | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-281070@lists.php.net to get a copy of this message | ||
2008/9/28 Ashley Sheridan <ash@ashleysheridan.co.uk>:
>> Sorry to drag up an old thread, but I just saw this. Is that true of
>> all browsers? I'm wondering because I just coded a site to use this
>> behavior, then I saw that the html specification says the action
>> attribute is required.
>>
> Without the action attribute, the form submits to itself, i.e. a form on
> contact.php submits to contact.php without an action attribute being
> specified.
>
If it's undocumented then I would not rely upon it. How much trouble
did we have in the early 00's because of sites that were coded for the
undocumented 'features' of specific browsers five years prior?
Additionally, if you cannot test all the varied platforms (PC,
cellphones, iPhone, PS3, browsers for the disabled) then you should
not rely on undocumented behaviour.
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ä-ö-ü-ß-Ä-Ö-Ü