you could referance the element id of the form

something like

if(window.document.form.element[1].value = "")
{
        do_something();
}

not sure of the exact js construct, but you get my idea.

Jim Lucas
www.bend.com
----- Original Message -----
From: "Rodrigo Peres" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Sent: Tuesday, March 12, 2002 10:10 AM
Subject: [PHP] php array


> Hi list,
>
> I think this could be an idiot question but I couldn't find an answer.
> I have 4 input text in a html, and I'd like to store them as a list, so
I've
> named it Name[]. OK, php understand it as an array, but how can I make an
> validation code with javascript to know if the user didn't typed in this
> fields??? I couldn't do javascript recognize my name[] field
>
>
> Thank's in advance
>
> Rodrigo
> --
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to