nezbo Posted December 6, 2007 Share Posted December 6, 2007 Hi all I have this code and i cant get it to submit the same way as a submit button echo "<table cellspacing=1 class=\"modual\">"; echo "<form action=" . $_SERVER['PHP_SELF'] . " method=\"post\" name=\"userLogin\">"; echo "<tr class=\"tHedder\"><td><span class=small><strong>" . H_SIGN_IN . "</strong></span>"; echo "<tr class=\"modual\"><td><span class=small>" . F_USER_NAME . "</span><br><input type=text name=userName size=10 />"; echo "<br><span class=small>" . F_PASSWORD . "</span><br><input type=password name=password size=10 />"; echo "<br><div align=\"center\">"; ?> <input type="image" name="submitLogin" src="images/signin.gif" width="75" height="28" /> <?php echo "</div><div align=\"center\"><a href=\"forgotpassword.php\"><span class=small>" . L_FORGOT_PASSWORD . "</a></span></div>"; echo "<div align=\"center\"><a href=\"requestRegister.php\"><strong><span class=small>" . L_REQUEST_USER . "</a></span></strong></div></td></tr>"; echo "</form>"; echo "</table>"; has any one any idea how i can get it to work like a proper button? Neil Link to comment https://forums.phpfreaks.com/topic/80468-solved-image-submit-button/ Share on other sites More sharing options...
nezbo Posted December 6, 2007 Author Share Posted December 6, 2007 i have changed the 'post' to a 'get' on the form and it then shows in the address bar submitLogin.x=40&submitLogin.y=12 i am sure this is why me if (!$_post[submitLogin]) dose not work. Is there any way to stop the x.y being added? Neil Link to comment https://forums.phpfreaks.com/topic/80468-solved-image-submit-button/#findComment-407950 Share on other sites More sharing options...
PFMaBiSmAd Posted December 6, 2007 Share Posted December 6, 2007 This will help - http://www.php.net/manual/en/faq.html.php#faq.html.form-image Link to comment https://forums.phpfreaks.com/topic/80468-solved-image-submit-button/#findComment-407971 Share on other sites More sharing options...
nezbo Posted December 6, 2007 Author Share Posted December 6, 2007 that solved it cheers Link to comment https://forums.phpfreaks.com/topic/80468-solved-image-submit-button/#findComment-407984 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.