HTML form not sending parameters

05ybrown

New Member
I wrote a login panel for my website and everything looks fine but when I click on submit page refreshes and no parameters are being sent. I checked both get andpost methods but it's not working. here is my code:\[code\]<form id="login_form" action="index.php?task=login" method="post"> <div class="control-group"> <div class="controls"> <div class="input-prepend"> <span class="add-on"><i class="icon-user"></i></span> <input class="span2" id="username" type="text" value="http://stackoverflow.com/questions/12733276/Username" onblur="if(this.valuehttp://stackoverflow.com/questions/12733276/=='') this.value='http://stackoverflow.com/questions/12733276/Username'" onfocus="if(this.valuehttp://stackoverflow.com/questions/12733276/=='Username') this.value='';"> </div> </div> </div> <div class="control-group"> <div class="controls"> <div class="input-prepend"> <span class="add-on"><i class="icon-cog"></i></span> <input class="span2" id="password" type="password" value="http://stackoverflow.com/questions/12733276/Password" onblur="if(this.valuehttp://stackoverflow.com/questions/12733276/=='') this.value='http://stackoverflow.com/questions/12733276/Password'" onfocus="if(this.valuehttp://stackoverflow.com/questions/12733276/=='Password') this.value='';" /> </div> </div> </div> <div class="clear"></div> <div class="separator"></div> <button type="submit" class="btn">Login</button></form>\[/code\]Can anyone tell me what is wrong with my code?
 
Back
Top