note 35854 added to language.variables.external
| From: | HS at rn2 dot php dot net | Date: | Wed, 17 Sep 2003 05:27:19 +0000 |
| Subject: | note 35854 added to language.variables.external | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-56612@lists.php.net to get a copy of this message | ||
From rookie for rookie. Couldn't find anything on this subject here but I hope this is the
right place (variables from outside php).
How to POST variables without a form? Not! On my form I have buttons for other actions than
submitting the data and which do onClick a
location.replace(some.php?action=delete&record=12&whatever=something). For obvious reasons I
don't like that address. For lay-out reasons I don't want a form for each action.
Solution: put outside the form (nesting forms is bad) an invisible form for each action with only
hidden inputs. Each button submits the appropriate form by onClick="doc.formX.submit()".
Best of both worlds. No fuzzy address and only one form (and one set of buttons) on screen. KISS, as
you know.
----
Manual Page -- http://www.php.net/manual/en/language.variables.external.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35854
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35854&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35854&report=yes