Problem with code should have a space between <?php and echo and have ;
at the line termination and a space before ?> also if you have
globals turned off this will need to be changed to $_GET['s'] and
rewritten to:

<?php echo 'hello '.$_GET['s']; ?>


Timothy Hitchens (HiTCHO)
Open Source Consulting
e-mail: [EMAIL PROTECTED]

> -----Original Message-----
> From: Steve [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, 17 January 2003 3:19 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-INST] php problem
> 
> 
> Hi, im just a newbi to php and ive read a few tutorials put i 
> seem to have a problem e.g. if i use this code (the file is 
> saved as index.php in my webserver wwwroot)
> 
> <html>
> <head>
> <title>Untitled Document</title>
> <meta http-equiv="Content-Type" content="text/html; 
> charset=iso-8859-1"> </head> <body> <?phpecho "hello $s"?> 
> </body> </html>
> 
> and i use the url in my browser 
> http://localhost/index.php?s=steven it will > show up in the 
> browser but only "hello" and not "hello steven" as it should. 
>  could you please help?  Im using IIS4 or latter & PHP4 on 
> WinXP Home.  Thanks...
> 
> [EMAIL PROTECTED]
> 


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

Reply via email to