----- Original Message ----- From: "A.J. Brown" <[EMAIL PROTECTED]>
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" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
-----Original Message-----
From: Ross [mailto:[EMAIL PROTECTED]
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';?>">

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

<?=$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

Reply via email to