<html>


<head>

<title>Applicant Login Page </title>

</head>

<center>
<body bgcolor = "#000000" text = "#70db93">
<h1> Passport System <hr> </h1>
</center>

<form>
<p> Fill in the form below.
</p>

Title <input type = "radio" name = "response" value = "Mr" checked = "checked"> Mr
      <input type = "radio" name = "response" value = "Mrs"> Mrs
      <input type = "radio" name = "response" value = "Ms"> Ms
      <input type = "radio" name = "response" value = "Dr"> Dr
      <input type = "radio" name = "response" value = "Sir"> Sir
<br>
</p>
<p>
First Name <input type = "text" name = "First Name" size = "30" maxlength = "30"> <br>
Last Name <input type = "text" name = "Last Name" size = "30" maxlength = "30"> <br>
Username <input type = "text" name = "Username" size = "30" maxlength = "30"> <br>
Password <input type = "password" name = "Password" size = "30" maxlength = "30"> <br>
Retype Password <input type = "password" name = "Retype Password" size = "30" maxlength = "30"> <br>
Fathers Name <input type = "text" name = "Fathers Name" size = "30" maxlength = "30"> <br>
Mothers Name <input type = "text" name = "Mothers Name" size = "30" maxlength = "30"> <br>
Place of Birth <input type = "text" name = "Place Of Birth" size = "30" maxlength = "30"> <br>
Address <input type = "text" name = "Address" size = "50" maxlength = "50"> <br>
Nationality <input type = "text" name = "Nationality" size = "20" maxlength = "20"> <br>
Gender? <input type = "radio" name = "response" value = "female" checked = "checked"> female
        <input type = "radio" name = "response" value = "male"> male <br>

<input type = "submit" name = "register" value = "Register">

</p>
</form>
</body>
</html>

Once a person has filled in the forms, i want the data to be stored in a database...i'm not exactly sure how to connect to a databse in either mysql or access..please help. only started doing html yesterday been at it for the past 10hours

One more thing, i have two radio button options..the first being one has to choose his/her title i.e Mrs,Mr or whtever and the other he/she has to choose his/her gender buh on this i can't manage to make each work. when the title is chosen the gender becomes blank..and vice versa

Member Avatar for Feemacbee

Hi eLu-sive,

Does the website already have an existing database set up for you to save your form results to, including all the database tables? If so, do you know your password to connect to the database? Do you definitely have MySQL or Access available on your hosting environment? What other information can you provide about your hosting environment, like does it have PHP or ASP enabled on it?

This could be done by passing your form into a php or any dynamic page which will store the data submitted into a database or csv or whatever.

Repeating Feemacbee's observations - where is the data supposed to go? The form needs both a method ('get' or 'post') and an action (the script that's going to double check and process it.) As in

<form method="post" action="../cgi-bin/monster.pl">

or

<form id="Form_Contact" action="contact.php" method="post">

And the reason your 'Mr/Mrs' section and gender are cancelling each other out - you're using the same name for both sets of elements, making them part of the same 'question'.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.