monkeybidz Posted September 26, 2007 Share Posted September 26, 2007 I have a form page that is mixed php and html. The form page is .php. All form variables are passed OK, except for one named service_type. I am showing the form here with just that variable. <form name="form1" method="POST" action="quote_result.php?"> <select name="service _type" id="service _type"> <option value="1">Standard</option> <option value="2">Rush</option> </select> <input type="submit" name="Submit" value="Submit"> </form> I tried using the following on the result page: global $service_type; and $service_type = $_POST['service_type']; I used this in the results page to display the variable: <?=$service_type?> and <? echo $service_type;?> All other variables are passed OK. Just can't get this one. Quote Link to comment https://forums.phpfreaks.com/topic/70815-solved-cant-pass-a-form-variable/ Share on other sites More sharing options...
BlueSkyIS Posted September 26, 2007 Share Posted September 26, 2007 is there really a space in service _type? <select name="service _type" id="service _type"> Quote Link to comment https://forums.phpfreaks.com/topic/70815-solved-cant-pass-a-form-variable/#findComment-356037 Share on other sites More sharing options...
monkeybidz Posted September 26, 2007 Author Share Posted September 26, 2007 DOPE!!!!! Thank's alot. I cannot believe i was looking elswhere for the problem. Quote Link to comment https://forums.phpfreaks.com/topic/70815-solved-cant-pass-a-form-variable/#findComment-356040 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.