This is a discussion on state (Field Problem) within the PHP General forums, part of the PHP Programming Forums category; Given this problem.. I have this html form that has a "State" option and it list all the ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Given this problem..
I have this html form that has a "State" option and it list all the US states. And i also have a "State/Province" field if ever he does not live in the US. My problem is how will i recognize both? I Mean, i will pass it over to a php program and ofcourse the php will parse the user _POST's and display it. USA / State: Washington DC Not USA / State: Whatever -- <SELECT NAME="USAState"><option value=''>Select State<option value=StateProvince>Not USA -- State or Province (Not USA):<input type='text' name='StateProvince'> -- How will i pass this? Double thing? and make it just one.. -- Thank you, Louie Miranda (louie@axishift.ath.cx) |
|
|||
|
got it working..
-- Thank you, Louie Miranda (louie@axishift.ath.cx) ----- Original Message ----- From: "Jason Wong" <php-general@gremlins.biz> To: <php-general@lists.php.net> Sent: Thursday, July 17, 2003 1:49 PM Subject: Re: [php] state (Field Problem) > On Thursday 17 July 2003 12:56, Louie Miranda wrote: > > > Given this problem.. > > I have this html form that has a "State" option and it list all the US > > states. And i also have a "State/Province" field if ever he does not live > > in the US. > > > > My problem is how will i recognize both? I Mean, i will pass it over to a > > php program and ofcourse the php will parse the user _POST's and display > > it. > > > > USA / State: Washington DC > > Not USA / State: Whatever > > > > > > -- > > <SELECT NAME="USAState"><option value=''>Select State<option > > value=StateProvince>Not USA > > -- > > State or Province (Not USA):<input type='text' name='StateProvince'> > > -- > > > > How will i pass this? Double thing? and make it just one.. > > It's just a matter of deciding which field to use. If the user bothered to > fill in 'StateProvince' then use and display that as the state. > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.biz > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > ------------------------------------------ > Search the list archives before you post > http://marc.theaimsgroup.com/?l=php-general > ------------------------------------------ > /* > Tell me, O Octopus, I begs, > Is those things arms, or is they legs? > I marvel at thee, Octopus; > If I were thou, I'd call me us. > -- Ogden Nash > */ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > |