0

Hi all,
I have dropdown in html consisting value country name. Instead of entering country name one by one into the mysql table I want to transfer by php programming . Is it possible ?
If so ,any one can suggest.......
Thanks in advance.
Subrata

3
Contributors
3
Replies
10
Views
5 Years
Discussion Span
Last Post by subrata_ushasi
0

You want a table with all country names ? They are available for download. If you can't find any, you can have mine.

0

lets say this is your form:

<form action="insert.php" method="post">
<select name="country">
	<option></option>
	<option>Angola</option>
	<option>Andorra</option>
	<option>etc</option>
	</select>
username: <input type="text" name="username" />
age: <input type="text" name="age" />
<input type="submit" />
</form>
$sql="INSERT INTO tablename (country, username, password)
VALUES
('$_POST[country]','$_POST[username]','$_POST[password]')";

Edited by Aser Gado: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.