Bluehost.com Web Hosting $6.95

state (Field Problem)

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-17-2003
Louie Miranda
 
Posts: n/a
Default state (Field Problem)

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)


Reply With Quote
  #2 (permalink)  
Old 07-17-2003
Louie Miranda
 
Posts: n/a
Default Re: [PHP] state (Field Problem)

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
>


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:33 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0