Re: How pass form variable to window.open()
| From: | CHAN YICK WAI | Date: | Thu, 05 Aug 2004 15:30:13 +0000 |
| Subject: | Re: How pass form variable to window.open() | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-192882@lists.php.net to get a copy of this message | ||
How about if this $student is actually a text field, when this html
generated by php script, it has no value, so the onClick line is
...url?student=<$student without value>, when I click, it reads nothing, how
should I do?
thanks again, Yw
----- Original Message -----
From: "John W. Holmes" <holmes072000@charter.net>
To: "CHAN YICK WAI" <chanyickwai@alumni.cuhk.net>; <>
Sent: Thursday, August 05, 2004 11:06 PM
Subject: Re: [PHP] How pass form variable to window.open()
> From: "CHAN YICK WAI" <chanyickwai@alumni.cuhk.net>
>
> > in the form, for example, i have <input type=text.. name=student ...>
> >
> > and <input type=button onClick=window.open('url?student=$student', ....)
> >
> > It seems to me not working.
>
> Define "not working" because that's how you do it. Well, actually, you
need
> to echo $student, unless this whole thing is already in an echo....
>
> ---John Holmes...
>