|
|
|
| Title : |
Country Codes: Database driven drop-down menu with all 241 ISO-3166 countries diaplayed and the relevant ISO codes as values. May be trivially modified to take any data set to provide any drop-down menus desired. |
| Categories : |
PHP, HTML and PHP |
 Simon Booth |
| Date : |
Oct 07th 2000 |
| Grade : |
4 of 5 (graded 2 times) |
| Viewed : |
5990 |
| File : |
cc.tar.gz
|
| Images : |
No Images for this code example. |
|
| Search : |
More code by Simon Booth |
|
| Action : |
Grade This Code Example
|
|
| Tools : |
My Examples List |
|
|
|
|
|
|
This MySQL-driven drop-down menu allows you to easily add a country selection option to a form.
Comes with all 241 of the ISO-3166 country codes. It displays the country name and sets a variable
available to the next page with the country code in it.
This function can be easily be modified to provide general purpose MySQL-driven drop-down menus.
Included is a script which creates the required table and populates it from a text file (a *little*
tinkering will be required to make this a general purpose script - but it's a no-brainer).
The text file which populates the table used as the data source is very simple, see the included one
for an example and not the 3 ***END*** lines at the bottom of the file. It, basically looks like
this...
Description
Code
<blank line>
.
. - Repeat as many times as desired
.
***END***
***END***
***END***
|
|
| PHP3: Formmail. Just a cgi formmail, but than in PHP. It is easy to use! Categories : HTML and PHP, Email, PHP, Perl, HTML and PHP | | | a function that builds an HTML select list from any mysql table. Categories : PHP, MySQL, HTML and PHP | | | Tag content retrieval from websites with preg_match Categories : PHP, Regexps, Arrays, HTML and PHP | | | Message of the Day - Random Message (Needs MySQL!) Categories : Databases, HTML and PHP, PHP, MySQL | | | Check parameters validity. Paranoia was designed to check the validity of the parameters that a php page will receive after a form submission. It can be used to check the variables sent by POST or GET Categories : Algorithms, HTML and PHP, PHP, Variables | | | Alternating background color for HTML table rows Categories : PHP, Databases, MySQL, HTML and PHP | | | Constantly refresh your PHP/HTML page data. Categories : PHP, HTML and PHP, Sybase | | | background music script for random notes in a frame Categories : PHP, Content Management, HTML and PHP | | | A very simple way to build and do a hierarchical html categories browser without javascript , just using html php and mySql
Categories : HTML and PHP, Databases, Algorithms, PHP, MySQL | | | Random Image Display Categories : PHP, Filesystem, Graphics, HTML and PHP | | | PhpView 0.1 - simple php viewer, using temporary files and frames.
Categories : PHP, PHP Options and Info, Debugging, HTML and PHP | | | Automatically printing the contents of an sql table in MySQL. Categories : MySQL, PHP, HTML and PHP, Databases | | | PHP template processing Categories : PHP, Templates, HTML and PHP | | | XDT Topsite (Gold v1.0) Categories : Databases, CSS, PHP, HTML and PHP, Sessions | | | function textwrap will wrap text to any desired width using <BR>\n as the default line break.
Default wrap width is 80 columns.
Categories : Strings, HTML and PHP, PHP | |
|
|
|