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>"; ?> Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
phpretard Posted July 15, 2008 Author Share Posted July 15, 2008 Thank you for your demeaning help. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.