thefollower Posted September 10, 2007 Share Posted September 10, 2007 I have a form which processes on a different page but the values won't travel accross and im unsure why... this is is the code: <form name="" method="POST" action="buyhouseformprocess.php" enctype="text/plain" id="Form1" onsubmit="return ValidateForm1(this)"> Thats the form's attributes. In the form i have this: <select name="RegionComboBox" size="1" id="Combobox2" style="position:absolute;left:240px;top:388px;width:150px;font-family:MS Shell Dlg;z-index:4"> <option value=""> </option> <option value="South Region">South Region</option> <option value="South East Region">South East Region</option> <option value="North East Region">North East Region</option> <option value="North West Region">North West Region</option> <option value="South West Region">South West Region</option> </select> <input type="submit" id="Button1" name="BuyHouse" value="Buy House" style="position:absolute;left:272px;top:626px;width:95px;height:24px;z-index:9"> Then the process page has this: $Area = $_POST['RegionComboBox']; When i echo'd $Area it was blank. Any idea's as to why? Quote Link to comment https://forums.phpfreaks.com/topic/68722-form-problem/ Share on other sites More sharing options...
phat_hip_prog Posted September 10, 2007 Share Posted September 10, 2007 Not too sure but I don't think you close options e.g. no </option> ??? Quote Link to comment https://forums.phpfreaks.com/topic/68722-form-problem/#findComment-345454 Share on other sites More sharing options...
thefollower Posted September 10, 2007 Author Share Posted September 10, 2007 Nah you do cos otherwise when you pick one itll assume it all as one giant option unless they are seperated. Quote Link to comment https://forums.phpfreaks.com/topic/68722-form-problem/#findComment-345462 Share on other sites More sharing options...
thefollower Posted September 10, 2007 Author Share Posted September 10, 2007 bump Quote Link to comment https://forums.phpfreaks.com/topic/68722-form-problem/#findComment-345507 Share on other sites More sharing options...
AdRock Posted September 11, 2007 Share Posted September 11, 2007 Any reason for this? <option value=""> </option> I can't see why it wouldn't work comparing to my similar code I use which i know does work. I just presume it's showing blank becuase you are selecting the blank option Quote Link to comment https://forums.phpfreaks.com/topic/68722-form-problem/#findComment-345657 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.