Re: How to submit form via PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Not according to this:
http://www.w3.org/TR/html401/interact/forms.html#adef-action

The only defined behaviour is when you specify a URI.

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com



Richard Lynch wrote:
> Actually, I believe action="" submitting to the same URL is *documented* HTTP spec behavior.
>
> I welcome correction/confirmation if somebody wants to wade through the docs again...
>
>   
>> -----Original Message-----
>> From: Dotan Cohen [mailto:dotancohen@xxxxxxxxx]
>> Sent: Sunday, September 28, 2008 4:13 AM
>> To: php-general@xxxxxxxxxxxxx
>> Subject: Re:  How to submit form via PHP
>>
>> 2008/9/28 Ashley Sheridan <ash@xxxxxxxxxxxxxxxxxxxx>:
>>     
>>>> 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
>> ×-×-×-×-×-×-×-×-×-×-×-×-×-×-×-×-×-×-×-×-×-×-×-×-×-×-×
>>
>> Ã-Ã-Ã-Ã-Ã-Ã-Ã
>>     
>
> _______________________________________________________
>
> The  information in this email or in any file attached
> hereto is intended only for the personal and confiden-
> tial  use  of  the individual or entity to which it is
> addressed and may contain information that is  propri-
> etary  and  confidential.  If you are not the intended
> recipient of this message you are hereby notified that
> any  review, dissemination, distribution or copying of
> this message is strictly prohibited.  This  communica-
> tion  is  for information purposes only and should not
> be regarded as an offer to sell or as  a  solicitation
> of an offer to buy any financial product. Email trans-
> mission cannot be guaranteed to be  secure  or  error-
> free. P6070214
>   

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux