eugeniu Posted July 20, 2008 Share Posted July 20, 2008 I've tried both IE6 and IE7, but my form doesn't work for either when I try using the Enter key on the keyboard. But it works just fine on FireFox and Safari. On IE it just displays a welcome message instead of "Correct" or "Incorrect". My form is at http://kanaquest.com. Click on "KanaWords" to get there. Quote Link to comment Share on other sites More sharing options...
joquius Posted July 20, 2008 Share Posted July 20, 2008 Can you post some actual PHP code to help solve the problem? Quote Link to comment Share on other sites More sharing options...
eugeniu Posted July 20, 2008 Author Share Posted July 20, 2008 Why not... I was assuming this was a client-side problem though. Maybe I should have posted this in HTML help. ///////////////////////// // FORM // ///////////////////////// echo "<img src=\"cache/$phpImageNumber.png\"><br> <form id=\"quiz\" action=\"words.php\" method=\"post\" style=\"display:inline;\" onsubmit=\"return __pra()\"> <input type=\"text\" name=\"answer\" size=\"8\" maxlength=\"30\"> <input type=\"submit\" name=\"submit\" value=\">>\"> </form> <br><font size=\"1\"> <font color=\"#ad0008\"><b>~" . $_SESSION['numbercorrect'] . " out of " . $_SESSION['numbertotal'] . " correct~</b></font> <br><a href=\"http://kanaquest.com/main.php\">Home</a> | <a href=\"instructions.php\">Instructions</a>"; Quote Link to comment Share on other sites More sharing options...
joquius Posted July 20, 2008 Share Posted July 20, 2008 Interesting I was just thinking the same thing. Quote Link to comment Share on other sites More sharing options...
eugeniu Posted July 20, 2008 Author Share Posted July 20, 2008 On the other hand, my form *is* in PHP... Quote Link to comment Share on other sites More sharing options...
eugeniu Posted July 21, 2008 Author Share Posted July 21, 2008 Could I request that a mod move this to HTML Help? Quote Link to comment Share on other sites More sharing options...
DarkWater Posted July 21, 2008 Share Posted July 21, 2008 The form works when you just click it though, correct? Also, you might want to work on these: Your validation errors. There's a lot. Quote Link to comment Share on other sites More sharing options...
eugeniu Posted July 21, 2008 Author Share Posted July 21, 2008 Oh fudgesticks. I guess I better fix all those before asking another question. Quote Link to comment Share on other sites More sharing options...
DarkWater Posted July 21, 2008 Share Posted July 21, 2008 Yeah, it's always good to have valid markup. You might also want to add one of those "W3C Validation" buttons on the bottom so you can always check and let others know that your page is validated. 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.