Don't know how to title this question but i can explain my situation here, I've the following code (this is not a real data I had to create this to show you guys what I want)
<!DOCTYPE html>
<html>
<head>
<title>Multiple form submit </title>
</head>
<body>
<form action="test.php" method="POST">
First Name : <input type="text" name="fname" /><br />
Last Name : <input type="text" name="lname" /><br />
Gender : <input type="text" name="gender" /><hr />
<select class="form-control input-sm" name="rta_address" id="rta_address">
<option value="2">5, Footer street, AA2 2KK</option>
<option value="23">44, Header street ZZ6 7FF</option>
<option value="28">56, Oak street, DD5 5LL</option>
<option value="33">5, (flat 5) Temple street, EE2 9HH</option>
</select>
<br />
Postcode : <input type="text" name="postcode" /><br />
House No : <input type="text" name="houseno" /><br />
Street : <input type="text" name="street" /><br />
<input type="submit" name="submit" value="Save" />
</form>
</body>
</html>
What I would like to know is... if user does not have any other address than those provided in drop-box, then user can select one value from drop-box and that value should fill those address text-fields otherwise user can type it manually
Please keep that in mind if form has about 40 items I only show you here 7 or 8 so submitting a form I don't think would be a good idea because at that point form is no fully filled..
Please also note that all the address are coming from database through a loop.
I hope you're getting my point
please feel free to ask anything if necessary to solve this...
Regards
5 Footer street AA2 2KKshould probably be5, Footer street, AA2 2KK. If the data can be formatted like that then yes it is possible.