Re: php array
| From: | Jim Lucas [php] | Date: | Tue, 12 Mar 2002 18:36:27 +0000 |
| Subject: | Re: php array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88225@lists.php.net to get a copy of this message | ||
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" <rperes@mac.com>
To: "PHP" <php-general@lists.php.net>
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
>
>