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 959579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:02:59+00:00 2026-05-16T01:02:59+00:00

<form action=index.php?page=checkin method=post name=regForm> <div id=First_1> <table width=100% cellpadding=0 cellspacing=0> <tr> <td> <table cellpadding=0

  • 0
<form action="index.php?page=checkin" method="post" name="regForm">
    <div id="First_1">
        <table width="100%" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <table cellpadding="0" cellspacing="5">
                        <tr>
                            <td style="padding: 5px;">
                                Fullständiga namn:
                            </td>
                            <td>
                                <input name="full_name" type="text" id="full_name" class="required">
                            </td>
                        </tr>
                        <tr>
                            <td style="padding: 5px;">
                                Email:
                            </td>
                            <td>
                                <input name="usr_email" type="text" id="usr_email3" class="required">
                            </td>
                        </tr>
                        <tr>
                            <td style="padding: 5px;">
                                Sex:
                            </td>
                            <td>
                                <select name="sex">
                                    <option value="male">
                                        Kille
                                    </option>
                                    <option value="female">
                                        Tjej
                                    </option>
                                </select>
                            </td>
                        </tr>
                        <td>
                            <input type="submit" id="continue" value="Fortsätt">
                        </td>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <div id="Next_2" style="display: none">
        <table width="100%" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <table cellpadding="0" cellspacing="5">
                        <tr>
                            <td style="padding: 5px;">
                                Lösenord:
                            </td>
                            <td>
                                <input name="pwd" type="password" class="required password" id="pwd">
                            </td>
                            <td>
                                En gång till..
                            </td>
                            <td>
                                <input name="pwd2" id="pwd2" class="required password" type="password">
                            </td>
                            <td>
                                <input name="doRegister" type="submit" id="doRegister" value="Register">
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
</form>
<script type="text/javascript">
    $(function() {
        $("#continue").click(function() {
            $.ajax({
                type: "POST",
                url: "dbc.php",
                data: {
                    check: 'First',
                    full_name: $('#full_name').val(),
                    usr_email: $('#usr_email3').val()
                },
                success: function(msg) {
                    if (msg == '1') {
                        $("#First_1").hide();
                        $("#Next_2").toggle();
                    } else {
                        alert(msg);
                    }
                }
            });
            return false;
        });
    });
</script>

Thats my form. You fill 3 form elements to start with, then you press the Continue button, and then it sends ajax call to check the fields. If everythings OK (if output = 1 from ajax call), Next_2 gets toggled on, where you enter your password twice. After that you press on the final button Register, which should do “action=index.php?page=checkin”, but it doesnt, when i press register it just get blank, and i can see in firebug that it sends another ajax call which i cannot understand because the button doesnt have id=”continue” but id=”doRegister”

  • 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-16T01:03:00+00:00Added an answer on May 16, 2026 at 1:03 am

    Since the “Continue” button doesn’t actually submit the form, try declaring it as a normal button instead of a submit button, like this:

    <input type="button" id="continue" value="Fortsätt">
    

    I’m guessing that having two submit buttons on the same form is somehow causing interactions with the handler.

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

Sidebar

Related Questions

<form action=index.php?page=checkin method=post name=regForm> Fullständiga namn: <input name=full_name type=text id=full_name class=required> <br > Email:
In index.php I have a form: <form name=UserLocation action=propForSale.php method=GET> Once the user types
in the form action i have the following line\ <form action={URL} method=post target=_self id=xxx
I have a classifieds website. In the main page (index) I have several form
I am getting a new php warning when a POST data from a form
I'm creating a new site for my project. I have made a index.php page
I have a form that uses the POST method to send data. The POST
I have a form which I'd like to post to the same page. The
Find below my form and the action page it submits to. The _POST array
I have a site where each page is actually a parameter of the index.php

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.