php shopping cart
free shopping cart   shopping cart software

Free Shopping Cart PHP Software

afc_build_countries_drop_down_menu

Back to Functions List
This Function Has Been Available Since:
(AFCommerce v 2.1,     Functions v 1.1)

Builds the list of countries for the countries drop down menu used throughout the software.

Description

afc_build_countries_drop_down_menu (varname, mode, emptystring, selectedvalue)

The drop down menus for country and state can be controled inside the admin area. Based on which countries are enabled for your store, a drop down menu of countries is generated.


Parameters

varname (string) - name of the variable used for the html form on the current page.

mode(string) - Which type of values the drop down menu will create for each country's name. Can be "id", which is the country's id number (in the database, most commonly used), or "code", which is the country's 2 digit iso code.

emptystring (string) - This will become the first field in the menu. It is named "empty string" because this field will not have a value at all, it is used for a text string like "Please Select A Country".

selectedvalue (string) - This is the menu's field that has already be selected. For example, if a member has already selected their country as the "United States", then the next time they see this field the United States will be the selected value.

Return Values

This function does not have a return value.

Open Source: No

Paul's Examples


afc_build_countries_drop_down_menu ("zone_country_id", "id", "Select A Country", $country);



Back to Functions List




afc_build_countries_drop_down_menu

There are currently no posts for this topic.











AFCommerce Documentation


High End Website DevelopmentCompletely Free
Dating Service
Copyright 2004 - 2006
www.afcommerce.com
AFCommerce Website
And Cart Builder