Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6213653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:44:07+00:00 2026-05-24T06:44:07+00:00

I am using JavaScript function in my register page to check whether all the

  • 0

I am using JavaScript function in my register page to check whether all the fields in register page are filled or not.

I am using Form

    <form name="regform" onsubmit="return validateFormOnSubmit(this)"  method="post" >
  coding here......
    </form>

onsubmit i call my javascript function validateFormOnSubmit(this) as shown above.
now if all fields are collect means All fields are filled correct

now i want to post my this page on other page like index.php how it possible.

my java-script alert like that

function validateFormOnSubmit(theForm) {
var reason = "";
  reason += validatereferrer(theForm.referrer);
  reason += validateEmail(theForm.email);
  reason += validatePassword(theForm.pw1, theForm.pw2);
  reason += validatebuisinessname(theForm.buisinessname);

  if (reason != "") {
    alert("Please fix the following error(s) and resubmit:\n\n" + reason);
    return false;
  }

  alert("All fields are filled correctly");

  return false;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T06:44:08+00:00Added an answer on May 24, 2026 at 6:44 am

    Set the action on the form to be the page you want to forward to. Also ensure that validateFormOnSubmit() returns false if the validation fails so that the POST request is aborted. It should also return true if the validation is a success.

    For example:

    <form action="/index.php" 
          name="regform" 
          onsubmit="return validateFormOnSubmit(this)"
          method="post">
      coding here......
    </form>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using a javascript function to submit my form. This works in every browser
I am using the window.print() function in javaScript to print a page which is
I am using JavaScript, jQuery and PHP. How do I limit the JavaScript function
Using the javascript function function squareIt(number) { return number * number; } When given
How do you trigger a javascript function using actionscript in flash? The goal is
I call a javascript function from a textbox by using OnKeyPress=clickSearchButton() Here is my
I wish to execute a javascript function after asp.net postback with out using ajax.
I'm using the following code to override a JavaScript function named dismissRelatedLookupPopup(). In Firefox,
is there any example on using java method to call rhino-javascript function and return
I have a variable that I'm using to build a JavaScript function call, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.