Submit DAMN IT!
Posted by Khairul - May 3, 2006 at 11:05:00 am -Categories: Uncategorized
Well, I discovered something new (for me that is). Got it from Chovy’s Blog.
javascript:
function checkForm(){
var form = document.someform;
someform.submit();
}
html:
form method=”post” action=”login.php” name=”someform”>
input type=”text” name=”woot” value=”">
input type=”button” name=”submit” value=”login” onclick=”checkForm();”>
When I clicked on the button.. an error appears someform.submit is not a function.
Apparently it collides with the button which is named “submit”. Changing the button name solves it.
May 3, 2006 | In Uncategorized |
No Comments yet »
RSS feed for comments on this post. TrackBack URI
Leave a comment
Powered by WordPress with GimpStyle Theme design by Horacio Bella.
Entries and comments feeds.
Valid XHTML and CSS.
