physaux Posted November 19, 2009 Share Posted November 19, 2009 Hey, I am using php to print out the html code to make a form.. It appears, but when I click the button nothing ever happens, doesn't go to my "action" page at all copied html code: <form action="index.php" method="post"> <input type="text" name="text1" id="text1" /> <input name="asd" type="text" maxlength="50" /> <input name="jhb" type="checkbox" value="" /> <input name="hjblk" type="checkbox" value="" /> <input name="lin" type="button" value="hjkkjk" /> </form> the file this text is on is NOT index.php, it IS test.html I can't see what is wrong with this!!! :confused: anyone see anything? -I'm using XAMPP, and firefox.. EDIT: ahhh type was not "submit"... stupid thing.. Quote Link to comment Share on other sites More sharing options...
premiso Posted November 19, 2009 Share Posted November 19, 2009 <input name="lin" type="submit" value="hjkkjk" /> Fail to see how this is PHP, so moving to HTML. The gist, you were using button when it needs to be submit for it to submit a form. Quote Link to comment Share on other sites More sharing options...
FaT3oYCG Posted November 19, 2009 Share Posted November 19, 2009 <input name="thisIsASubmitButton" type="submit" value="Click this to submit !?!?!?!?!?!?!" /> Sigh. 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.