[nycphp-talk] MySQL and spaces in data
Henry Ponce
henry at beewh.com
Thu Jun 19 12:31:31 EDT 2003
I totally agree on this. It's neat and easy to implement. It's better than
using string functions.
Henry
On Thursday 19 June 2003 13:27, Adam Maccabee Trachtenberg wrote:
> > I'm creating check boxes on the fly. Here's a sample of the output on
> > the form:
> >
> > <input name="ALFA-ROMEO|1600 DUETTO SPIDER" type="checkbox" value="1">
> >
> > Now here's the post data:
> > [ALFA-ROMEO|1600_DUETTO_SPIDER]
>
> Don't know exactly how you've got things set up, but maybe you could
> change this to:
>
> <input name="car_model[]" type="checkbox" value="ALFA-ROMEO|1600 DUETTO
> SPIDER">
>
> names can't have spaces, but values can. Also, looping through
> car_model can be easier than a bunch of ifs.
>
> -adam
--
An. Henry Ponce
Linux Registered User # 303567
Mar del Plata, Argentina
Planeta Tierra
More information about the talk
mailing list