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

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

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]')";
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.