Re: passing a variable with php_self
| From: | Gustav Wiberg | Date: | Tue, 27 Sep 2005 13:48:43 +0000 |
| Subject: | Re: passing a variable with php_self | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-223276@lists.php.net to get a copy of this message | ||
----- Original Message ----- From: "A.J. Brown" <aj@bitnotion.com>
To: <php-general@lists.php.net>
Sent: Tuesday, September 27, 2005 3:26 PM
Subject: Re: [PHP] passing a variable with php_self
<a href="<?="$PHP_SELF?action=bigger"?>"> works well too -- Sincerely, A.J. Brown "Jim Moseby" <JMoseby@nrbindustries.com> wrote in message news:FEE5CF83F4D3D511860100B0D02204BBD08942@NRBEXCHANGE-NT...<?=$variablename?> Use <?php echo $variablename;?> instead for compability reasons... /G http://www.varupiraten.se/-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.7/112 - Release Date: 2005-09-26 Try to avoid the typing as:-----Original Message----- From: Ross [mailto:ross@aztechost.com] Sent: Tuesday, September 27, 2005 8:58 AM To: php-general@lists.php.net Subject: [PHP] passing a variable with php_self can someone show me the right way to do the following... <a href="<?=$PHP_SELF?action=bigger; ?>"> I want to pass a variable to a self submitting link. Thanks,<a href="<? echo $_SERVER['PHP_SELF'].'?action=bigger';?>">