Re: Page name for form submit: REQUEST_URI or SCRIPT_NAME
| From: | Dotan Cohen | Date: | Sun, 28 Dec 2008 16:59:18 +0000 |
| Subject: | Re: Page name for form submit: REQUEST_URI or SCRIPT_NAME | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-285147@lists.php.net to get a copy of this message | ||
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!
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü