> -----Original Message-----
> From: Larry Brown [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 23, 2003 9:34 AM
> To: Jake McHenry
> Subject: RE: [PHP] Dilema
> 
> 
> Can you describe the page that has all of the components you
> want to send and what you expect to recieve ie.
> 
> dropdown(hotels) dropdown(travelers) dropdown(travelers)
> dropdown(travelers) --> multiple arrays with one hotel to
> many travelers each.
> 
> or
> 
> dropdown(travelers) dropdown(hotels) dropdown(fromdates)
> dropdown(todates) -->multiple arrays with one traveler to
> many hotels on dates
> 
> can you describe the problem in this format?  (--> indicating
> data transfer to the recieving script)
> 
> Larry
> 
> -----Original Message-----
> From: Jake McHenry [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 23, 2003 1:35 AM
> To: 'Php-general'
> Subject: [PHP] Dilema
> 
> 
> Hi everyone. Hopefully someone can help me out.
> 
> Here is what I have:
> 
> The user enters traveler names on page 1. blah blah on next
> couple. Page 7 shows hotel information. I have the array of 
> travelers names being outputed into a select field on the 
> page, all fine and dandy.
> 
> Where I'm having a problem is, the user can enter as many
> hotels as they want, meaning the list of travelers will be 
> displayed for each hotel added. In the array being 
> transferred into my script via POST, they are all in one array.
> 
> How can I separate each hotel into it's own array, or somehow
> separate the traveler names in the single array?
> 
> I was thinking of making a 2 dimentional array, but not sure
> how I could do this.
> 
> I know how to create the arrays, but not sure how I can do it
> in my situation.
> 
> If anyone needs any more info, ask away.
> 
> Thanks,
> 
> Jake McHenry
> Nittany Travel MIS Coordinator
> http://www.nittanytravel.com
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 
> 



All of the inputed data from the form are text boxes, not drop downs,
except the travelers, which is in a multiple select field, sized by
count($array).

Each of the text input boxes return an array, so for the first hotel,
I would have Array(date) array(hotel), etc. the value in each array[0]
is the first hotel, array[1] is the second hotel, etc. but when it
comes to the travelers, there is one array, just like the rest, but I
have no idea of knowing what travelers they chose, since the user can
select multiple travelers.

I guess what I need is a type of delimiter to distinguish where each
hotel stops, and where the new one starts, or find an alternative to
the select multiple field option.

Does this help?




Thanks,

Jake McHenry
Nittany Travel MIS Coordinator
http://www.nittanytravel.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to