hey! im brand new at php, but i think im doing everything right and nothing is working. here is my problem:
im running apache 1.3.x and php 4.3. im doing some lessons off of sitepoint and some out of a php book. both cases involve passing a variable off from either a link (on sitepoint) or a form (from my book). in both instances php returns somthing like this:
Warning: Undefined variable: name in c:/program files/apache group/apache/htdocs/hi.php on line 4
Welcome to our Web site, !
the code i used in the html is:
(a href="hi.php?name=Kevin") Hi, I'm Kevin! (/a)
i used the () because im too lazy to do it the right way!
and the php file i used is
echo( "Welcome to our Web site, $name!" );
surrounded by the php declarations
so what am i doing wrong? do i have php set up wrong? it has worked fine for stuff like phpinfo and even variables that arnt being passed to it.
thanks in advance laters!
update i installed the newest version of php and apache 2 and it still wont work!!! argh!!!! its like apache is not passing on the variable! help!!!!!
im running apache 1.3.x and php 4.3. im doing some lessons off of sitepoint and some out of a php book. both cases involve passing a variable off from either a link (on sitepoint) or a form (from my book). in both instances php returns somthing like this:
Warning: Undefined variable: name in c:/program files/apache group/apache/htdocs/hi.php on line 4
Welcome to our Web site, !
the code i used in the html is:
(a href="hi.php?name=Kevin") Hi, I'm Kevin! (/a)
i used the () because im too lazy to do it the right way!
and the php file i used is
echo( "Welcome to our Web site, $name!" );
surrounded by the php declarations
so what am i doing wrong? do i have php set up wrong? it has worked fine for stuff like phpinfo and even variables that arnt being passed to it.
thanks in advance laters!
update i installed the newest version of php and apache 2 and it still wont work!!! argh!!!! its like apache is not passing on the variable! help!!!!!
