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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:18:07+00:00 2026-06-18T07:18:07+00:00

I have created a registration form in which you can submit your details and

  • 0

I have created a registration form in which you can submit your details and they are saved in the database. I have a drop-down box for one of the fields called “Title” and this data is not submitted. I am hoping that I could get some feedback on this issue and maybe resolve the issue.

 <!DOCTTYPE html>
<head><link rel="stylesheet" type="text/css" href="style/style.css"></head>
<title>Registration</title>
<body>  

    <form name="form1" method="post" action="register_ac.php">

        <li>Title<select name="title" id="title"><option value="MR">MR</option><option value="MRS">MRS</option></option><option value="MISS">MISS</option></select></li>
        <li>FirstName<input type="text" name="firstname" class="#" id="firstname"/></li>
        <li>Surname<input type="text" name="surname" class="#" id="surname"/></li>
        <li>Username<input type="text" name="username" class="#" id="username"/></li>
        <li>Password<input type="password" name="password" class="#" iid="password"/></li>
        <li>Email<input type="text" name="email" class="#" id="email"/></li>
        <li>Addressline1<input type="text" name="addressline1" class="#" id="addressline1"/></li>
        <li>Addressline2<input type="text" name="addressline2" class="#" id="addressline2"/></li>
        <li>City<input type="text" name="city" class="#"  id="city"/></li>
        <li>County<input type="text" name="county" class="#"  id="county"/></li>
        <li>Postcode<input type="text" name="postcode" class="#"  id="postcode"/></li>


        <input type="submit" id="textarea" name="submit" value="Submit" class="button"/>
    </form>

</body>
</html>



<?php

$host="localhost"; // Host name
$username="#####"; // Mysql username
$password="#####"; // Mysql password
$db_name="#####"; // Database name
$tbl_name="Register"; // Table name

// Connect to server and select database.
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");

// Get values from form
$username=$_POST['username'];
$title=$_POST['title'];
$firstname=$_POST['firstname'];
$surname=$_POST['surname'];
$password=$_POST['password'];
$email=$_POST['email'];
$addressline1=$_POST['addressline1'];
$addressline2=$_POST['addressline2'];
$city=$_POST['city'];
$county=$_POST['county'];
$postcode=$_POST['postcode'];

// Insert data into mysql
$sql="INSERT INTO $tbl_name(username, title, firstname, surname, password, email, addressline1, addressline2, city, county, postcode)
VALUES('$username', '$title', '$firstname','$surname','$password','$email','$addressline1','$addressline2','$city','$county','$postcode')";
$result=mysql_query($sql);


// if successfully insert data into database, displays message "Successful".
if($result){
echo "Successful";
echo "<BR>";
echo "<a href='index.php'>Back to main page</a>";
}

else {
echo "ERROR";
}
?>

<?php
// close connection
mysql_close();
?>
  • 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-18T07:18:09+00:00Added an answer on June 18, 2026 at 7:18 am

    You have an error in this line:

    <li>Title<select name="title" id="title"><option value="MR">MR</option><option value="MRS">MRS</option></option><option value="MISS">MISS</option></select></li>
    

    One too many </option> tags. Try:

    <li>Title<select name="title" id="title"><option value="MR">MR</option><option value="MRS">MRS</option><option value="MISS">MISS</option></select></li>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a registration form and now I am trying to put null
I am new to symfony. I have created a registration form using the code:
I have created Login forms and registration forms for a website. The form is
I have created custom registration form in drupal 6. i have used changed the
I have created a registration system that uses AJAX to process the form so
I have created a registration form in silverlight 4, where i have a large
I have a user registration form in my Django application which collects additional data
I have created a HTML5 Form and now on the click of the submit
I have a registration form that includes sfRegistration and sfProfile, which after completion, get's
I have created a Django app. I have a registration page(simple HTML form) in

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.