Hi Robby,
try to add this line to your php-file:
$name=$_GET['name'] ;
change to:
<?php
$name=$_GET['name'] ;
echo "Welcome, ". $name."!";
?>

Good luck!
Jan


"Robby Ku" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> 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!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to