Nandini Posted July 23, 2009 Share Posted July 23, 2009 Hi i have a login form at home page of my website. After filling the form and click on submit button, i am showing entire user information into seperate page. The home login page username and password values are still there. So how can i page refresh after all validation are done. This is my script. <script language="JavaScript" src="gen_validatorv31.js" type="text/javascript"></script> <form method="post" action="https://webpage.net/xml/mail/Login?__frame=_top" id="login_form" name="myform" target="_blank"> <table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr><td colspan="4"> </td></tr> <tr><td colspan="4" align="center" class="emplogin_header">Employee Login</td></tr> <tr><td colspan="4"> </td></tr> <input type="hidden" name="logi" value="DefaultFlow"> <input type="hidden" name="data" value="1"> <tr><td align="right" class="emplog_fields">Email: </td> <td align="left"> <input type="text" name="login.Username" class="emp_input"></td></tr> <tr><td align="right" class="emplog_fields">Password: </td> <td align="left"> <input type="password" name="login.Password" class="emp_input"> </td> <td style="padding-top:7px;"><input type="image" src="App_Themes/Images/go-btn.gif" alt="Go" name="submit" valign="middle"> </td> </tr></table> </form> <script language="JavaScript" type="text/javascript"> var frmvalidator = new Validator("myform"); frmvalidator.addValidation("login.Username","req","Enter Email"); frmvalidator.addValidation("login.Username","email","Enter valid Email address"); frmvalidator.addValidation("login.Password","req","Please enter password"); </script> i am attaching gen_validatorv31.js file. Please help me out [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/167082-clear-html-form-after-submit/ Share on other sites More sharing options...
ignace Posted July 23, 2009 Share Posted July 23, 2009 <form method="post" action="https://webpage.net/xml/mail/Login?__frame=_top" id="login_form" name="myform" target="_blank"> should be: action="/path/to/your/profile-page.php" But which application are you using? Link to comment https://forums.phpfreaks.com/topic/167082-clear-html-form-after-submit/#findComment-881057 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.