|
|
 |
Re: FN-FORUM: Re: need help with some Javascript
date posted 1st November 2004 23:29
Ok..
I will settle for the option which Andy suggested .. (thanks Andy)... it
just returns a comma delimited list which can be transformed for use via an
ASP script.
Thanks to both of you for your advice.
A case of wood through the trees after 14 hours in front of screen... don't
you just love last minute rushes the night before a progress deadline..
A slightly happier,
Luke.
http://www.lburgess.net
----- Original Message -----
From: "John Anderson" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Monday, November 01, 2004 11:27 PM
Subject: Re: FN-FORUM: Re: need help with some Javascript
>
> ----- Original Message -----
> From: "Luke Burgess" [EMAIL REMOVED]
>> I have seven checkboxes representing the days of the week.
>> I need to insert them into a single database table.
>>
>> To do this I am performing a function which checks if they are checked
>> and
>> then parsing the values into a single variable used to input into the
>> database.
>
> What language are you using to write to the database? If this is a
> MySQL/PHP setup, then I would recommend doing it using a straight HTML
> form
> checkbox, with the name being an array. Then pass the array to a handling
> PHP file to write to the database, as follows:
>
> print " \"Monday\">Monday";
> print " \"Tuesday\">Tuesday";
>
> etc.
>
> Then in a PHP file that the variables are submitted to, you can pick up
> the
> array "weekday" which will have the names of the days of the week that
> were
> selected.
>
> HTH
>
> John Anderson
> Soaring Penguin Ltd.
>
>
>
>
> --
> Freelancers, contractors earn more with Prosperity4
> Call 0870 870 4414 or visit www.prosperity4.com
> and benefit from Inland Revenue approved expenses today.
>
> To advertise here: http://www.freelancers.net/advertising.html
>
> |
 |
|