Re: Simple question: $_POST

From: Date: Sat, 15 Jan 2005 18:34:01 +0000
Subject: Re: Simple question: $_POST
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-206446@lists.php.net to get a copy of this message
On Fri, 2005-01-14 at 07:48, Stuart Felenstein wrote: > When using $_POST vars is it required that a form is > used ? > > In other words I can create an href link and echo > variable and pick them up using $_GET in the following > page. > > No so with $_POST ? You could probably create hidden vars and on the href set the var values and submit the form ( with form method defined as post of course). You could create the javascript needed in a function built dynamically setting the vars and simply call the function in the onclick method of the href. I think you will have to return false from the function so that the link won't try to go to nowhere. Bret

« previous php.general (#206446) next »