note 35854 deleted from language.variables.external by didou

From: Date: Wed, 17 Sep 2003 08:31:21 +0000
Subject: note 35854 deleted from language.variables.external by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-56617@lists.php.net to get a copy of this message
Note Submitter: HS AT Duijst DOT com ---- 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.

« previous php.notes (#56617) next »