onSubmit event, does it really work ?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Igguana
Forum Commoner
Posts: 36
Joined: Tue Mar 11, 2003 1:08 pm

onSubmit event, does it really work ?

Post 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!
User avatar
daven
Forum Contributor
Posts: 332
Joined: Tue Dec 17, 2002 1:29 pm
Location: Gaithersburg, MD
Contact:

Post 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.
Post Reply