Page 1 of 1

onSubmit event, does it really work ?

Posted: Tue Mar 25, 2003 11:18 am
by Igguana
Finally I'm mixing Javascript and PHP 8O the problem is that I do not know what is not working properly.
I have a form with a textfield and a button, and I can send the variables to my query page... BUT, it is imposible for me to customize this page, because I'm trying to open this one using javascript to make it smaller, centered and so one, but if it does what javascript saids it doesn do what php ask, and if it does what PHP saids javascript doesn work.

onSubmit event should allow you to introduce the features for the new window early, when form tag is open. To do it in the proper submit button is too late because it wont work.
Any help?
What a long thread!

Posted: Tue Mar 25, 2003 12:07 pm
by daven
The onSubmit event works fine. But you must remember thatt Javascript is client-side, and PHP is server-side. So any onSubmit function you create will only affect the client. You cannot use onSubmit to send anything to PHP.