Re: [SMARTY] $var send
| From: | Nichlas Löfdahl | Date: | Wed, 22 Jan 2003 12:36:44 +0000 |
| Subject: | Re: [SMARTY] $var send | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7292@lists.php.net to get a copy of this message | ||
Hello!
This is the mailinglist for the Smarty Template Engine and your questing
belongs to php-general@lists.php.net.
But to answer your question, you probably have register_globals off (using
PHP >= 4.2.0?).
To access a variable submitted via GET, do something like this:
test.php
<?
$x = $_GET['x'];
print "X is $x";
?>
Read more about the topic here:
http://se.php.net/manual/en/language.variables.predefined.php#language.varia
bles.superglobals
http://se.php.net/manual/en/security.registerglobals.php
/Nichlas
----- Original Message -----
From: "Gheodan" <gheodan@mnt.ro>
To: <smarty-general@lists.php.net>
Sent: Wednesday, January 22, 2003 1:08 PM
Subject: [SMARTY] $var send
> Hello I am new and I need help from you
>
> How I can make do to work the variable send from one php file to other. I
> use
>
> <?
> $x = "1030";
> echo "<td><A href=\"header.php?name=".$x;
> echo "\">SEND</a>";
> ?>
>
>
> for send and :
>
> <?php
> echo $name;
> echo "test teste ";
> ?>
>
> for recive and print.
>
> Where I do wrong and what?
>
> Please help me.
> Best regards
>
> gheodan@mnt.ro
>
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php