Thread: Error in button
View Single Post
Old Feb 11th, 2007, 10:36 PM   #2
PhilBon
Hobbyist Programmer
 
PhilBon's Avatar
 
Join Date: Nov 2005
Posts: 172
Rep Power: 4 PhilBon is on a distinguished road
Send a message via AIM to PhilBon Send a message via MSN to PhilBon
Where do you have the server look at the form? When you have a form there is a pre and post submit values. A Pre would be when someone first loads the page, a post would be when someone has hit the submit button. In the PHP you have to check if it's pre or post and you do that by seeing if the submit button has been clicked. Currently you can't do that because you don't have a name for your button so that'd be the first thing to do. And then have the php check if it's post, if it is then do whatever.
PhilBon is offline   Reply With Quote