RE: [PHP-WIN] how do i get a variable in a second php document
| From: | Asendorf, John | Date: | Wed, 27 Dec 2000 13:56:03 +0000 |
| Subject: | RE: [PHP-WIN] how do i get a variable in a second php document | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-4677@lists.php.net to get a copy of this message | ||
I particularly fond of the first way, and to elaborate:
<?PHP
$var1 = "123456";
$var2 = "somethingelse";
echo "<a href=\"foo.php?var1=$var1&var2=$var2\">Click Me to pass
variables</a>\n";
?>
Your html would look like this when sent to the client
<a href="foo.php?var1=123456&var2=somethingelse">Click Me to pass
variables</a>
---------------------
John Asendorf - jasendorf@lcounty.com
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
The benefit to the government of replacing all $1 Federal Reserve notes with
$1 coins would be $522.2 million per year, according to estimates of the
General Accouting Office released on April 7, 2000.
> -----Original Message-----
> From: ENVAIN Bernard [mailto:ENVAINBR@cic-i.com]
> Sent: Wednesday, December 27, 2000 8:44 AM
> To: php-windows@lists.php.net
> Subject: RE: [PHP-WIN] how do i get a variable in a second
> php document
>
>
> My favourite ways :
> 1. <a href="foo.php?var1=value1&var2=value2...
> 2. or with <a href...> too: cookies.
> 3. with <form... method=post>: <input type=hidden>
>
> Regards.
> Happy new Millennium!
> B.E.
>
> -----Message d'origine-----
> De: dulidel the programmer [mailto:dulidel@gmx.net]
> Date: mercredi 27 décembre 2000 13:57
> À: php-windows@lists.php.net
> Objet: [PHP-WIN] how do i get a variable in a second php document
>
>
> i want to link with an <a href >-Teg to a second php document
> and i need a
> variable in the second php document of the first one. how do
> i get this
> variable in the second document without session variables and
> how do i get
> several variables in the second document
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>