|
Posted by Jerry Stuckle on 04/04/07 21:05
Tyno Gendo wrote:
> Tyno Gendo wrote:
>> Jerry Stuckle wrote:
>>> A much easier way would be to just use an array:
>>>
>>> <input name="age[]" ...>
>>>
>>> Then your answers will be in the array $_POST['age'] or $_GET['age'],
>>> depending on how you submit the form.
>>>
>>
>> That's a very good point.. I've used this once before also, top tip.
>
> I was just checking because I thought there was a reason I avoided the
> age[] type method once, like perhaps it only sent form values that had
> been filled in and were not blank, but this is not the case and it does
> send all values, so as I went to the extent of testing it, here's the
> code in case anyone needs it ;-)
>
<snip>
That's true for checkboxes.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|