What am I doing wrong? -php newbie -
we able run in our comp lab while ago, don't know if i'm doing wrong or something's missing on desktop.
<!doctype html> <html> <body> <form method="post" action="sample2.php"> name: <input type="text" name="fname"> <input type="submit"> </form> </body> </html>
and used print input on different page -
<!doctype html> <html> <body> <?php $name = $_post['fname']; echo $name; ?> </body> </html>
you have use webserver xampp on desktop , open html using localhost://form.html example
http://www.apachefriends.org/en/xampp.html
you should use xampp portable lite
version has need not much
Comments
Post a Comment