Originally Posted by adolph0034
I think you misunderstand my question, i understand i need submitt code
i want to know if the following snipet of code is wrong.
$choice = $_POST['choice']
$choicetwo = $_POST['choicetwo'];
It appears you have neglected to include PHP tags.. That would be important. But no, that code in and of itself looks fine.
will contain the value of the selected option for the
will contain the value of the
Is this PHP on the same page or a separate page? If the same, you need to check that the form was submitted before attempting to retrieve the values.
// Your PHP here.