Welcome to collectivesolver - Programming & Software Q&A. A website you can trust. I check, compile and run every program. Contact me at: aviboots(AT)netvision.net.il
Hostgator 1 Penny

BlueHost Web Hosting

Ecommerce Software - Best Ecommerce Platform Made for You - Free Trial

Ecommerce Software - Best Ecommerce Platform Made for You - Free Trial

getflywheel wordpress hosting


Distribute your Resume to 500+ Job Boards & Recruiters


6,846 questions

9,748 answers

573 users

How to process form with parameters and method POST in HTML5 and PHP

1 Answer

0 votes
<form action="test-post.php" method="POST">
Enter your age : <input type="text" name="age" /><br />
Enter your profession: <input type="text" name="profession" /><br />
<input type="submit" value="Test Post">
</form>

// test-post.php will run after you enter the age & profession and press the 'Test Post' button

$age = $_POST['age'];
$profession = $_POST['profession'];

echo "age = " . $age;
echo "<br>";
echo "profession = " . $profession;



answered Jul 6, 2014 by avibootz
edited Jul 6, 2014 by avibootz
...