RE: [PHP] i cannot pass variables to php script...
| From: | Lazor, Ed | Date: | Tue, 30 Apr 2002 20:06:44 +0000 |
| Subject: | RE: [PHP] i cannot pass variables to php script... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-95431@lists.php.net to get a copy of this message | ||
Make sure enable track vars is enabled.
Try specifying
global $arg
before you access it.
Try using phpinfo(); in your script. That will display all available
variables.
-----Original Message-----
From: efa [mailto:efa@softwell.se]
Sent: Tuesday, April 30, 2002 1:04 PM
To: php-general@lists.php.net
Subject: [PHP] i cannot pass variables to php script...
Hi!
I have a problem with passing variables to php script with simple GET.
example:
--- hello.html -----------------------------
<html><head><title="hello"></head>
<body>
<a href="hello.php?arg=world">hello</a>
</body>
</html>
--- hello.php ------------------------------
<?
printf("arg=$arg<br>");
?>
output from clicking on the link is:
arg=
I should mention that I use mod_userdir and the script/html are lying in
home directory for the user ( /home/username/public_html/...), and
URL=http://server/~username/hello.html
I am attaching output of phpinfo() and a copy of httpd.conf
.htaccess file is empty btw.
Cheers
--
/admir efendic, stockholm, sweden
****************************************************************************
This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law. If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message. If you have received this message in error, please immediately
advise the sender by reply email and delete the message. Thank you very
much.