Jump to content

Recommended Posts

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.