I am new at php. I am using a wamp server and I created two php pages in the www directory.
One is index.php with the code below:
<form action = "formprocess.php" method = "post">
Your name : <input type = "text" name = "name"> <br>
<input type = "submit">
$name = $_POST["name"];
echo "your name is " . $name;
See link, there basic first steps for run php code. I hope, this will help! http://www.tutorialspoint.com/articles/run-a-php-program-in-xampp-server