Can't pass query string from HTML to PHP
| From: | Robby Ku | Date: | Fri, 20 Jun 2003 06:06:03 +0000 |
| Subject: | Can't pass query string from HTML to PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-152274@lists.php.net to get a copy of this message | ||
Hi,
I've got a problem passing a query string from a HTML file to a PHP file. I created a HTML file
called "welcome.html" with the following link:
<a href="welcome.php?name=Andy"> Hi, I'm Andy </a>
I am trying to pass the query string Andy to a PHP file called "welcome.php" with the
following command:
<?php echo ("Welcome, $name!"); ?>
After i load "welcome.html" in my browser, i try linking it to "welcome.php"
through the hyperlink i created. But the result i got was
"Welcome, !"
Where is Andy? If the code has got no problem, could it be the Web server (IIS) or the browser (IE)
im using? Or the configuration of the Web server is not correct? Pls help!
Thank You
Beginner,
Robbie
---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!