SHIP TO:
First Name: *
Last Name: *
Company Name:
Address Line 1: *
Address Line 2:
City: *
State/Province/Region:
*
$strSQL = "SELECT * FROM tblRegions";
$sclRegResultID = 0;
$g_objDB->GetAllRows($strSQL, &$ascRegResult, &$blnMoreRows, SQL_GET_ROW_COUNT, &$sclRegResultID, "Get All Regions");
$intRegionRows = $g_objDB->GetRowCount($sclRegResultID);
if($g_objDB->HasError() || ($intRegionRows == 0))
{
$g_objDB->DisplayError(__FILE__, __LINE__, "Get All Regions Failed");
include "bottom.phtml";
exit;
}
$intCurRegion = 0;
$blnSelected = false;
while($intCurRegion < $intRegionRows)
{
if($f_strRegion == $ascRegResult[$intCurRegion]['fldRegionShort'])
{
$strSelected = "SELECTED";
$blnSelected = true;
}
else
$strSelected = "";
$strShort = $ascRegResult[$intCurRegion]['fldRegionShort'];
$strLong = $ascRegResult[$intCurRegion]['fldRegionLong'];
?>
> print htmlentities($strLong) ?>
$intCurRegion++;
}
if($blnSelected == false)
{
$strSelected = "SELECTED";
$strOtherValue = $f_strRegion;
}
else
{
$strOtherValue = "";
$strSelected = "";
}
?>
> -- International --
International State/Province/Region:
ZIP/Postal Code: *
Country: *
$strSQL = "SELECT * FROM tblCountry";
$sclCountryResultID = 0;
$g_objDB->GetAllRows($strSQL, &$ascCountryResult, &$blnMoreRows, SQL_GET_ROW_COUNT, &$sclCountryResultID, "Get Country data");
if($g_objDB->HasError())
{
$g_objDB->DisplayError(__FILE__, __LINE__, "Get Country Listing Failed");
}
$intCountryRows = $g_objDB->GetRowCount($sclCountryResultID);
$intCurRow = 0;
$blnSelected = false;
if(!isset($f_strCountry))
{
$f_strCountry = "";
}
while($intCurRow < $intCountryRows)
{
if(($blnSelected == false) &&
($f_strCountry == $ascCountryResult[$intCurRow]['fldCountry']))
{
$strSelected = "SELECTED";
$blnSelected = true;
}
elseif(($blnSelected == false) && ($f_strCountry == "") &&
($ascCountryResult[$intCurRow]['fldCountry2'] == "US"))
{
$strSelected = "SELECTED";
$blnSelected = true;
}
else
$strSelected = "";
$strValue = $ascCountryResult[$intCurRow]['fldCountry2'].":".$ascCountryResult[$intCurRow]['fldCountry'];
?>
> print htmlentities($ascCountryResult[$intCurRow]['fldCountry']) ?>
$intCurRow++;
}
?>
Phone:
if(isset($fldRequirePhone) && ($fldRequirePhone == "YES"))
{
?> *
}
else
{
?>
}
?>
/*
Fax:
*/
?>
Email: *