Re: state (Field Problem)
| From: | Jason Wong | Date: | Thu, 17 Jul 2003 05:49:09 +0000 |
| Subject: | Re: state (Field Problem) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-155537@lists.php.net to get a copy of this message | ||
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
*/