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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:59:23+00:00 2026-06-11T08:59:23+00:00

So I have several text boxes, drop down menus, and radio options on this

  • 0

So I have several text boxes, drop down menus, and radio options on this form. When the user clicks submit i want to save ALL that information so I can put it into a database. So this is all the form’s inputs

<div id="reg2a">
First Name: <br/><input type="text" name="fname" /> <br/>
Last Name: <br/><input type="text" name="lname" /> <br/>
Address: <br/><input type="text" name="address" /> <br/>
City: <br/><input type="text" name="city" /> <br/>
State: <br/><input type="text" name="state" /> <br/>
Zip Code: <br/><input type="text" name="zip" /> <br/>
Phone Number: <br/><input type="text" name="phone" /> <br/>
Fax: <br/><input type="text" name="fax" /> <br/>
Email: <br/><input type="text" name="email" /> <br/>
Ethnicity: <i>Used only for grant reporting purposes</i> <br/><input type="text" name="ethnicity" /> <br/><br/>

Instutional Information Type (select the best option) <br/>
<select name="iitype">
<option value="none">None</option>
<option value="uni">University</option>
<option value="commorg">Community Organization</option>
</select> <br/><br/>

    Number of sessions willing to present:
    <select id="vennum_select" name="vnum">
      <?php for($i=0;$i<=3;$i++) { ?>
        <option value="<?php echo $i ?>"><?php echo $i ?></option>
      <?php } ?><br/>
    </select><br/>
    Number of tables requested:
    <select id="tabnum_select" name="tnum">

      <?php for($i=1;$i<=3;$i++) { ?>
        <option value="<?php echo $i ?>"><?php echo $i ?></option>
      <?php } ?>
    </select><br/><br/>
    Awarding of a door prize during the conference will result in a reduction in the cost of your first table. <br/><br/>
    I am providing a door prize for delivery during the conference of $75 or more
    <select id="prize_select" name="pnum">
        <option value="0">No</option>
        <option value="1">Yes</option>  
    </select><br/>

Prize name: <input type="text" name="prize_name" /><br/>
Description: <input type="text" name="descr" /><br/>
Value: <input type="text" name="retail" /><br/><br/>

Name of Institution: <br/><input type="text" name="institution" /> <br/><br/>

Type (select the best option) <br/>
<select name="type">
<option value="none">None</option>
<option value="k5">K-5</option>
<option value="k8">K-8</option>
<option value="68">6-8</option>
<option value="912">9-12</option>
</select> <br/><br/>

Address: <br/><input type="text" name="address_sch" /> <br/>
City: <br/><input type="text" name="city_sch" /> <br/>
State: <br/><input type="text" name="state_sch" /> <br/>
Zip Code: <br/><input type="text" name="zip_sch" /> <br/>

<form name="frm2sub" id="frm2sub" action="page3.php" method="post">
<input type="submit" name="submit" value="Submit" id="submit" />
</form>
</div>

This is my jquery function:

$("#frm2sub").submit( function() {  
    var values = {};
values["fname"] = $("#fname").val();
});

I can do this for each one of the input boxes but I want to give all this data to the next page. So how do I put this array into $_POST? Btw, I’ve tried doing

var data = $("#reg2a").serialize();

and

var data = $(document).serialize();

Data ended up being empty. Any ideas? Thanks

  • 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-06-11T08:59:24+00:00Added an answer on June 11, 2026 at 8:59 am

    You should wrap all input elements within the form tag. Then all data will be available in the $_POST variable in page3.php

    Like this:

    <form name="frm2sub" id="frm2sub" action="page3.php" method="post">
        <div id="reg2a">
        First Name: <br/><input type="text" name="fname" /> <br/>
        Last Name: <br/><input type="text" name="lname" /> <br/>
        Address: <br/><input type="text" name="address" /> <br/>
        City: <br/><input type="text" name="city" /> <br/>
        State: <br/><input type="text" name="state" /> <br/>
        Zip Code: <br/><input type="text" name="zip" /> <br/>
        Phone Number: <br/><input type="text" name="phone" /> <br/>
        Fax: <br/><input type="text" name="fax" /> <br/>
        Email: <br/><input type="text" name="email" /> <br/>
        Ethnicity: <i>Used only for grant reporting purposes</i> <br/><input type="text" name="ethnicity" /> <br/><br/>
    
        Instutional Information Type (select the best option) <br/>
        <select name="iitype">
        <option value="none">None</option>
        <option value="uni">University</option>
        <option value="commorg">Community Organization</option>
        </select> <br/><br/>
    
            Number of sessions willing to present:
            <select id="vennum_select" name="vnum">
              <?php for($i=0;$i<=3;$i++) { ?>
                <option value="<?php echo $i ?>"><?php echo $i ?></option>
              <?php } ?><br/>
            </select><br/>
            Number of tables requested:
            <select id="tabnum_select" name="tnum">
    
              <?php for($i=1;$i<=3;$i++) { ?>
                <option value="<?php echo $i ?>"><?php echo $i ?></option>
              <?php } ?>
            </select><br/><br/>
            Awarding of a door prize during the conference will result in a reduction in the cost of your first table. <br/><br/>
            I am providing a door prize for delivery during the conference of $75 or more
            <select id="prize_select" name="pnum">
                <option value="0">No</option>
                <option value="1">Yes</option>  
            </select><br/>
    
        Prize name: <input type="text" name="prize_name" /><br/>
        Description: <input type="text" name="descr" /><br/>
        Value: <input type="text" name="retail" /><br/><br/>
    
        Name of Institution: <br/><input type="text" name="institution" /> <br/><br/>
    
        Type (select the best option) <br/>
        <select name="type">
        <option value="none">None</option>
        <option value="k5">K-5</option>
        <option value="k8">K-8</option>
        <option value="68">6-8</option>
        <option value="912">9-12</option>
        </select> <br/><br/>
    
        Address: <br/><input type="text" name="address_sch" /> <br/>
        City: <br/><input type="text" name="city_sch" /> <br/>
        State: <br/><input type="text" name="state_sch" /> <br/>
        Zip Code: <br/><input type="text" name="zip_sch" /> <br/>
    
    
        <input type="submit" name="submit" value="Submit" id="submit" />
    
        </div>
    </form>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form with several text boxes on it. I only want to
I have an ASP.NET Datagrid with several text boxes and drop down boxes inside
VB 2008. I have several text boxes on a form and I want each
I have several text boxes in an ASP.NET Web Form. I want to ensure
I have a combo box and several text boxes on a form. When I
I have a WPF User Control with a UIElement Grid with several text boxes
I have a form containing two text boxes for user input. Both text boxes
Hi I have several text input boxes, and i have a clear button, they
I have several text fields that are dynamically populated based on user choice from
I have one form with several text fields and one button. When i enter

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.