thanks Mike,
worked like a charm!!
and thanks to the others who replied!
>>> "Ford, Mike" <[EMAIL PROTECTED]> 10/5/2004 3:09:32 PM >>>
On 05 October 2004 13:55, Angelo Zanetti wrote:
> Hi Marek,
>
> I try to access the array like this:
>
> document.frmft.elements["chkmodels[]"];
>
> but
On 05 October 2004 13:55, Angelo Zanetti wrote:
> Hi Marek,
>
> I try to access the array like this:
>
> document.frmft.elements["chkmodels[]"];
>
> but doesnt work. I also tried this:
>
> models = document.forms['frmft'].elements["chkmodels[]"];
>
> is there not a problem with the elements
Hi Marek,
I try to access the array like this:
document.frmft.elements["chkmodels[]"];
but doesnt work. I also tried this:
models = document.forms['frmft'].elements["chkmodels[]"];
is there not a problem with the elements part?
thanks
>>> Marek Kilimajer <[EMAIL PROTECTED]> 10/5/2004 2:19
Angelo Zanetti wrote:
its the only form on the page...
Based on the other responses I will have to use chkmodels[] and need to
get the javascript working. Is it not possible to use the forms name
when referencing the array?
You should be able to use:
document.formName
document.forms[0]
document.for
its the only form on the page...
Based on the other responses I will have to use chkmodels[] and need to
get the javascript working. Is it not possible to use the forms name
when referencing the array?
thank again.
Angelo
>>> Marek Kilimajer <[EMAIL PROTECTED]> 10/5/2004 1:52:02 PM >>>
Angelo Za
Angelo Zanetti wrote:
Here is the OT part. how do I reference the checkboxes in javascript if
the chkmodels[] is used?
I have tried many things like:
myCheckboxArray = document.forms[0].elements["chkmodels[]"];
The above should work. Is it really the first form on the page?
--
PHP General Mailing L
Angelo Zanetti wrote:
but what I want to clarify is that if I change my PHP echo statement
to:
echo("" . $row['models_type'] . "");
basically without the [] then it is still recognised as an array. But
when the array is passed back it is returned as a string separated by
commas. Then I should use t
On 05 October 2004 11:10, Angelo Zanetti wrote:
> Hi all,
>
> this might be slightly off-topic in a way but Im looking for help not
> flaming.
>
> Ok I have a checkbox array that I populate from a DB using php:
>
> while ($row = mysql_fetch_array($result))
> echo("" . $row['models_type']
8 matches
Mail list logo