html value to php variable???

gesf

New member
Getting the selected options from the drop down list:
For a form with post method:
Code:
<?php

// This will have the value of the selected option !
$_POST['quantity1'];

// Test it with: 
echo $_POST['quantity1'];

?>
For a form with get method:
Code:
<?php

// This will have the value of the selected option !
$_GET['quantity1'];

// Test it with: 
echo $_GET['quantity1'];

?>
That's it !
 
Back
Top