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

  • SEARCH
  • Home
  • 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 6026429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:26:37+00:00 2026-05-23T04:26:37+00:00

the Form <article id=signup-form> <form id=signupform method=post action=signup.php accept-charset=utf-8> <label for=email>Email Address</label> <input type=text

  • 0

the Form

  <article id="signup-form">

    <form  id="signupform" method="post" action="signup.php" accept-charset="utf-8">
      <label for="email">Email Address</label>
      <input type="text" id="email" name="email"/>
      <input type="image" src="images/btn_signup.png" value="Sign up" alt="Sign up"/>
    </form>
    <br />
  </article>

the Javascript

$(document).ready(function () {

    $('#signupform').submit(function () {
        var email = $('#email').val();

        if (email != 0) {
            if (isValidEmailAddress(email)) {
                $(this).ajaxSubmit(options);
            } else {
                alert("Please Enter a Valid Email Address");
            }
        } else {
            alert("Please Enter a an Email Address");
        }

        return false;
    });

    var options = {
        success: showResponse,
        dataType: 'json',
        resetForm: true
    };

    function showResponse(responseText, statusText, xhr, $form) {
        if (responseText == 'false') {
            alert("Please try again. We could not sign you up.");
        }
        if (responseText == 'true') {
            alert("Success");
        }
    }
});


function isValidEmailAddress(emailAddress) {
    var pattern = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);
    return pattern.test(emailAddress);
}

i get the folowing error and the form submits and goes to the signup.php

enter image description here

  • 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-23T04:26:38+00:00Added an answer on May 23, 2026 at 4:26 am

    You can prevent the forms default event by altering your call
    $('#signupform').submit(function (event) and the entering event.preventDefault

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my form: <form novalidate action=<?php echo url_for('article/submit') ?> method=POST> <?php echo $form['title']->renderRow()
I have this html form echo <form name='delete_article_form.$row['id'].' action='sources/public/article_processor.php' method='POST' >; echo <input name='processor_switcher'
This article about php form security: http://nedbatchelder.com/text/stopbots.html ... mentions a spinner as: The spinner
In an article on preventing PHP form resubmissions, I read the following: (Not quoting)
I have data in this form, Article ID Company A Company B Company C
A form I don't have any control over is POSTing data to my PHP
I have a search form that the user can search for an Article content
Lets say you had a simple form to create a new article object in
As the Wikipedia article explains, begin in Scheme is a library form that can
I have a form for create/edit articles. Every article is associated with an user.

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.