Re: Simple question: $_POST

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux