I've just decided to get back into web design after a long spell away from it so I'm quite rusty.
I am going through some tutorials and have a strange issue with URL query strings I'm hoping you can help me solve.
I have a simple PHP file called welcome.php containing the following:
- Code: Select all
<?php
echo( "Welcome to our Web site, $name!" );
?>
If I open the page with the following URL:
http://localhost/welcome.php?name=john
I get the page up but only showing the following:
Welcome to our Web site, !
I've tried a few other URL query string type pages and it seems that the PHP interpreter isn't picking up the variables from the URL.
I suspect I'm missing something obvious but will be glad of any assistance.
Thanks in advance
airchie