Re: looping variables
| From: | Michael Dearman | Date: | Fri, 09 Feb 2001 09:11:04 +0000 |
| Subject: | Re: looping variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-38912@lists.php.net to get a copy of this message | ||
Hey Wen,
Had me going there for a bit, cause I had just put down a book
on C, where variables are not preceded by such things as $.
But for PHP, your missing a few $'s on your variables.
And, your taking care of matching that javascript opening tag from
where your calling this function?
MD
Wen Ni Leong wrote:
>
> Please help me to solve this problem. I have looping selected menu and
> I want to use javascript to control each function. For example if
> select Text Form,the javascript will automate to open new window.
> Right now my problem is I can't differentiate from which menu or
> location I had selected because all of them are looping. So please help
> me to look at the coding below. See what I need to change. Thanks.
>
> print "<SCRIPT LANGUAGE = \"JavaScript\">
>
> function chg_list(temp_val,form_property,num)
> {
>
> var value = temp_val;
> var count = 1;
> var max_count = document.theform.result.value;
> var loc = document.theform.docvar.value;
>
> while (count < max_count)
> {