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" <[EMAIL PROTECTED]> To: "CHAN YICK WAI" <[EMAIL PROTECTED]>; <> Sent: Thursday, August 05, 2004 11:06 PM Subject: Re: [PHP] How pass form variable to window.open() > From: "CHAN YICK WAI" <[EMAIL PROTECTED]> > > > 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... > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php