Re: newbie.. $_GET & $_POST

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

 



Pablo D Marotta wrote:
Hi there..
I need to pass variables to a page through an html link.
I do it like this:

<A href="Extra/excelListing3.php?buildQuery=<?php echo $buildQuery
?>">Export</A>

where 'buildQuery' is the variable I´m passing.

In the destination page, I capture it with $_GET and that´s it.

I want to know if there is any way of doing it without showing the variables in
the direction bar.

Turn it into a form, and post it.

<form name="whatever" action="Extra/excelListing3.php" method="post">
<input type="hidden" name="buildQuery" value="<?php echo ( $buildQuery ); ?>" />
<a href="JavaScript:document.whatever.submit()">Export</a>
</form>


--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
john@xxxxxxxxxxxx

--
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