0

I am maybe blind or so... just got nearly the same problem as before. I not get the values of the selectfields. I got 0 - 8 instead of some strings.

Here is the url: http://web159.login-142.hoststar.ch/memberd/de/prices/

Here is my code I use to get it:

# read size of one of these arrays
$count = count($_REQUEST['BX_NAME']);
# loop
for($i = 0, $e = 1; $i < $count; $i++, $e++)
{
$divers.= "Diver/PAX #{$e}: Name: $BX_NAME[$i] / Shoe-Size: $BX_shoesize[$i] / Weight: $BX_weight[$i] / Heigth: $BX_height[$i]<br />";
}

I did a postdump and this works, I mean I get and see what I should get.

2
Contributors
1
Reply
13
Views
2 Years
Discussion Span
Last Post by bnmng
0

There's a couple of things wrong but mainly, there is no correlation between $_REQUEST['BX_NAME'] and the values retrieved. If you have 26 divers and the first two are named "Alpha" and "Bravo", I can submit a request for "Charlie" and "Delta" but I'll only get the data for "Alpha" and "Bravo". Your procedure counts how many names I asked for, then gives me the first names up to that count without caring about what the names actually were.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.