I would like to run a php script which is the forr action in an html document. The HTML code i have is as follows
<html><head><title>Using PHP</title></head> <body> <form action="form.php" method="post"> IP ADDRESS:<input type="text" name="IP"><input type="submit"><form> </body></html>
I am using Ubuntu Server 12.04 LTS so i have saved this file to /var/www . The php script that i have titled form.php, which is also in /var/www is as follows
<?php echo "Todd" ?>
When i paste
http://10.0.0.98 into my browser, i get the form and when i click on submit, it downloads something which cannot be opened. I would want to view the script results on the browser. I do not know where i am going wrong, still very much new to PHP.