/    Sign up×
Community /Pin to ProfileBookmark

form reset upon submitting

hi there, trying to make this login form reset upon submitting it. any help would be greatly appreciated.

[CODE]<form target=”_blank” method=”post” action=”http://whmcs.whitenorthhosting.net/dologin.php”>
Email Address: <input type=”text” STYLE=”color: #FFFFFF; font-family: Verdana; font-weight: bold; font-size: 12px; background-color: #72A4D2;” name=”username” size=”15″ /><br />
Password: <input type=”password” STYLE=”color: #FFFFFF; font-family: Verdana; font-weight: bold; font-size: 12px; background-color: #72A4D2;” name=”password” size=”15″ /><br />
<input type=”submit” STYLE=”color: #FFFFFF; font-family: Verdana; font-weight: bold; font-size: 12px; background-color: #72A4D2;” value=”Login” onclick=”submitForm()”/>
</form>[/CODE]

the code so far works great otherwise.

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@Isabella_martinJul 08.2015 — Where is the submit form() function in your code?

You need to refresh your webpage when submitform funtion calls
Copy linkTweet thisAlerts:
@mizzauthorJul 11.2015 — have tried multiple ways. it does nothing. unless i'm missing a seperate form.
Copy linkTweet thisAlerts:
@Kevin2Jul 11.2015 — nevermind, not gonna work.
Copy linkTweet thisAlerts:
@jedaisoulJul 12.2015 — If you want the form to redisplay (cleared) when submit is clicked:

  • 1. Amend the file name extension of the web page containing the form from .html to .php.


  • 2. Amend:
    [code=html]
    <form target="_blank" method="post" action="http://whmcs.whitenorthhosting.net/dologin.php">
    [/code]

    to:
    [code=html]
    <form method="post" action="">
    [/code]

    So the form will call itself instead of an external php file.


  • 3. Embed the code from dologin.php in the web page, and amend to suit.
  • ×

    Success!

    Help @mizz spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 6.16,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @nearjob,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,
    )...