phpretard Posted July 15, 2008 Share Posted July 15, 2008 When I use: <input type=submit name='MainForm' Value=Submit> if (isset($_POST['MainForm'])){ echo"SUBMITTED"; } THIS WORKS -------------------------------------------------- When I use: <input type='image' name='MainForm' src='form_pieces/img/b_next.gif'> it does not work?? Any Thoughts? ---index.php-- <? if (isset($_POST['MainForm'])){ echo"SUBMITTED"; } ?> <html> <head> <link rel="stylesheet" type="text/css" href="form_pieces/form.css"> <script src='form_pieces/js/misc.js'></script> </head> <body> <? include 'form.php'; ?> <body> </body> </html> ---form.php--- <? echo"<form action='' method='post'>"; include 'bus_type.php'; include 'main/main_info.php'; include 'corp/main.php'; include 'partner/main.php'; include 'llc/main.php'; include 'submit.php'; // <-- The button is in there echo"</form>"; ?> Link to comment https://forums.phpfreaks.com/topic/114920-solved-submiting-a-form-using-an-image/ Share on other sites More sharing options...
dannyb785 Posted July 15, 2008 Share Posted July 15, 2008 lol there are so many of these threads. Nobody ever reads the rules that say search before posting Link to comment https://forums.phpfreaks.com/topic/114920-solved-submiting-a-form-using-an-image/#findComment-591020 Share on other sites More sharing options...
phpretard Posted July 15, 2008 Author Share Posted July 15, 2008 When you stop lol-ing can you help? btw...I did search Link to comment https://forums.phpfreaks.com/topic/114920-solved-submiting-a-form-using-an-image/#findComment-591024 Share on other sites More sharing options...
dannyb785 Posted July 15, 2008 Share Posted July 15, 2008 Must not have searched hard enough. I found this in about 10 seconds. under the html section: http://www.phpfreaks.com/forums/index.php/topic,205805.0.html Link to comment https://forums.phpfreaks.com/topic/114920-solved-submiting-a-form-using-an-image/#findComment-591030 Share on other sites More sharing options...
PFMaBiSmAd Posted July 15, 2008 Share Posted July 15, 2008 This question has been asked and answered somewhere around 4 times in the past 10 days. Link to comment https://forums.phpfreaks.com/topic/114920-solved-submiting-a-form-using-an-image/#findComment-591043 Share on other sites More sharing options...
phpretard Posted July 15, 2008 Author Share Posted July 15, 2008 Thank you for your demeaning help. Link to comment https://forums.phpfreaks.com/topic/114920-solved-submiting-a-form-using-an-image/#findComment-591044 Share on other sites More sharing options...
dannyb785 Posted July 16, 2008 Share Posted July 16, 2008 Thank you for your demeaning help. Thank you for not following the rules. I guarantee you could google it and find a million answers Link to comment https://forums.phpfreaks.com/topic/114920-solved-submiting-a-form-using-an-image/#findComment-591300 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.