Im following a MySQL article on the basics of using HTML and PHP. The two files I have are very very basic:
Index.html:
<A HREF="welcome.php?name=Kevin"> Hi, I'm Kevin! </A>
welcome.php:
<?php
echo( "Welcome to our Web site, $name!" );
?>
When the link is clicked on the index page, I get the following error:
Notice: Undefined variable: name in C:\xampp\htdocs\mywebsite\welcome.php on line 2
Welcome to our Web site, !
Im not exactly an expert but i pretty sure the codes correct - is there any sort of setting/configuration that I shouldve completed before trying to run it which is preventing the variable being passed to the php file?
Thanks, Gio