Hi,
I´ve just started using php, and i´m trying to make it work with wampserver!
I´m using wamperver 2 , PHP 5.30
on windows 7
I have installed wampserver correctly and the localhost seems to work.
When i try this script:
<?php echo "something" ?>
It works!
But when I try to send information from a html file to php file, the varibel doesn't go throw. I get this message: Notice: Undefined variable: name in C:\wamp\www\php \results.php on line 3
Please guys help me out :(
I´ve just started using php, and i´m trying to make it work with wampserver!
I´m using wamperver 2 , PHP 5.30
on windows 7
I have installed wampserver correctly and the localhost seems to work.
When i try this script:
<?php echo "something" ?>
It works!
But when I try to send information from a html file to php file, the varibel doesn't go throw. I get this message: Notice: Undefined variable: name in C:\wamp\www\php \results.php on line 3
Please guys help me out :(
Code:
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title> Connect To Database</title> </head> <body> <form action="results.php" method="post"> <input name="name" type="text" value="name"> <input name="" type="submit" value="search"> </form> </body> </html>
Code:
<?php echo $name; ?>
Comment