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)
> {
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]