Re: [PHP] Page name for form submit: REQUEST_URI or SCRIPT_NAME

2008-12-28 Thread Ashley Sheridan
On Sun, 2008-12-28 at 18:59 +0200, Dotan Cohen wrote: > 2008/12/28 tedd : > > 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 oth

Re: [PHP] Page name for form submit: REQUEST_URI or SCRIPT_NAME

2008-12-28 Thread tedd
At 6:59 PM +0200 12/28/08, Dotan Cohen wrote: 2008/12/28 tedd : 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

Re: [PHP] Page name for form submit: REQUEST_URI or SCRIPT_NAME

2008-12-28 Thread Dotan Cohen
2008/12/28 tedd : > 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 bi

Re: [PHP] Page name for form submit: REQUEST_URI or SCRIPT_NAME

2008-12-28 Thread tedd
At 7:31 PM +0200 12/27/08, Dotan Cohen wrote: Is there a compelling reason to use either REQUEST_URI or SCRIPT_NAME in the action of a form that I want to submit to the same URL that it came from (the script parses whether or not there is a Submit to know if it should display the form or the resu

Re: [PHP] Page name for form submit: REQUEST_URI or SCRIPT_NAME

2008-12-27 Thread Dotan Cohen
2008/12/27 Daniel Brown : >Happy Chanukah, Dotan! > And a Merry Christmas! >For portability's sake, especially if you anticipate users saving > the form to their local systems, I would recommend: > > $action = "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']; > ?> Naturally I have H

Re: [PHP] Page name for form submit: REQUEST_URI or SCRIPT_NAME

2008-12-27 Thread Daniel Brown
On Sat, Dec 27, 2008 at 12:31, Dotan Cohen wrote: > Is there a compelling reason to use either REQUEST_URI or SCRIPT_NAME > in the action of a form that I want to submit to the same URL that it > came from (the script parses whether or not there is a Submit to know > if it should display the form

[PHP] Page name for form submit: REQUEST_URI or SCRIPT_NAME

2008-12-27 Thread Dotan Cohen
Is there a compelling reason to use either REQUEST_URI or SCRIPT_NAME in the action of a form that I want to submit to the same URL that it came from (the script parses whether or not there is a Submit to know if it should display the form or the results). I need a portable solution, that is why I