[thelist] Multiple form entries in PHP...

Mike King mike.king at redroom.co.uk
Fri Nov 30 08:39:28 CST 2001


At 03:49 30/11/01 -0800, you wrote:

>Since you're resetting the value of the same vatriable each time, it
>makes sense that you're only able to see the value of the last one,
>since that's the value of the variable at the time the rest of the
>page loads.

Oh, very poor, in ASP it would give you a comma delimited list!

>If you want to pass multiple values, you'll either have to pass them
>in as seperate variables (ie. ?field1=foo&field2=bar&field3=buh), or
>use checkboxes in a from post instead of passing them in the URL, as I
>believe checkboxes are the only type of form field that allow multiple
>values to be submitted in asociation with the same form name.

Nope, these are checkboxes!

Cheers
mk





More information about the thelist mailing list