Question: how to pass dropdown selected value in php?
Answer: php, you can just add the value of $_POST['ordername'] into a session variable as shown above, or if you're moving on via another submit button from form2 to somewhere else, add the value as a hidden field in the form that contains the submit button in form2. php.