ballhogjoni Posted December 17, 2006 Share Posted December 17, 2006 What is this ... $_POST['Submit_x'] or $_POST['Submit_y']And how can I set this up to validate a form while using an image button.please read the following thread if this doesn't make since: http://www.phpfreaks.com/forums/index.php/topic,118941.msg486510.html#msg486510 Link to comment https://forums.phpfreaks.com/topic/30985-what-is-this/ Share on other sites More sharing options...
paul2463 Posted December 17, 2006 Share Posted December 17, 2006 if you use an image as a button to post information to another page then the mouse click position is also posted ( ie the X and Y values of the click) . now for the second part the second part is to write a script that checks the validity of your script (lets call it validate()) and return either true or false depending on the validation question, then in the code for the button use onSubmit="return validate();". if the answer to your function is false it stops the post if it is true it allows the post to go ahead. Link to comment https://forums.phpfreaks.com/topic/30985-what-is-this/#findComment-142981 Share on other sites More sharing options...
ballhogjoni Posted December 17, 2006 Author Share Posted December 17, 2006 For some reason that doesn't work. Thx tho Link to comment https://forums.phpfreaks.com/topic/30985-what-is-this/#findComment-143098 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.