chrometweaks.org

Launchbuilder with iPage for my web site will not open. Please send a an answer?

Click Here To View All Answers...


Got a question, hope someone can answer... Launchbuilder with iPage for my web site will not open. Please send a an answer? Many thanks for any response. 2nd question I got is.. I am using Guest Account 2.0, and had been having no problems with cycling through my test environment. I have recently installed XP SP3, if that matters.

The code I have is this;.

<?php.

/*.

$Id: create_account.php 1739 2007-12-20 00:52:16Z hpdl $.

OsCommerce, Open Source E-Commerce Solutions.

[url="http://www.oscommerce.com"]http://www.oscommerce.com[/url].

Copyright © 2003 osCommerce.

Released under the GNU General Public License.

*/.

Require('includes/application_top.php');.

// needs to be included earlier to set the success message in the messageStack.

Require(DIR_WS_LANGUAGES$language'/'FILENAME_CREATE_ACCOUNT);.

// guest account.

If (isset($HTTP_GET_VARS['guest_account'])) $guest_account = true;.

// guest account end.

$process = false;.

If (isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process')) {.

$process = true;.

// Guest account start.

If (isset($HTTP_POST_VARS['guest_account']) && ($HTTP_POST_VARS['guest_account'] == true)) {.

Tep_session_register('guest_account');.

Global $guest_account;.

$guest_account = true;.

}.

// Guest account end.

// start Required Customer Details - Zappo - Added Checking for Details to display (true, false or optional).

If (ACCOUNT_GENDER == 'true') {.

If (isset($HTTP_POST_VARS['gender'])) {.

$gender = tep_db_prepare_input($HTTP_POST_VARS['gender']);.

} else {.

$gender = false;.

}.

}.

If (ACCOUNT_FIRST_NAME != 'false') $firstname = tep_db_prepare_input($HTTP_POST_VARS['firstname']);.

If (ACCOUNT_LAST_NAME != 'false') $lastname = tep_db_prepare_input($HTTP_POST_VARS['lastname']);.

If (ACCOUNT_DOB != 'false') $dob = tep_db_prepare_input($HTTP_POST_VARS['dob']);.

If (ACCOUNT_EMAIL != 'false') $email_address = tep_db_prepare_input($HTTP_POST_VARS['email_address']);.

If (ACCOUNT_COMPANY != 'false') $company = tep_db_prepare_input($HTTP_POST_VARS['company']);.

If (ACCOUNT_STREET != 'false') $street_address = tep_db_prepare_input($HTTP_POST_VARS['street_address']);.

If (ACCOUNT_SUBURB != 'false') $suburb = tep_db_prepare_input($HTTP_POST_VARS['suburb']);.

If (ACCOUNT_CITY != 'false') $city = tep_db_prepare_input($HTTP_POST_VARS['city']);.

If (ACCOUNT_STATE != 'false') {.

$state = tep_db_prepare_input($HTTP_POST_VARS['state']);.

If (isset($HTTP_POST_VARS['zone_id'])) {.

$zone_id = tep_db_prepare_input($HTTP_POST_VARS['zone_id']);.

} else {.

$zone_id = false;.

}.

}.

If (ACCOUNT_POSTCODE != 'false') $postcode = tep_db_prepare_input($HTTP_POST_VARS['postcode']);.

If (ACCOUNT_COUNTRY != 'false') $country = tep_db_prepare_input($HTTP_POST_VARS['country']);.

If (ACCOUNT_TEL != 'false') $telephone = tep_db_prepare_input($HTTP_POST_VARS['telephone']);.

If (ACCOUNT_FAX != 'false') $fax = tep_db_prepare_input($HTTP_POST_VARS['fax']);.

If (ACCOUNT_NEWSLETTER != 'false' && isset($HTTP_POST_VARS['newsletter'])) {.

// end Required Customer Details - Zappo - Added Checking for Details to display (true, false or optional).

$newsletter = tep_db_prepare_input($HTTP_POST_VARS['newsletter']);.

} else {.

$newsletter = false;.

}.

$password = tep_db_prepare_input($HTTP_POST_VARS['password']);.

$confirmation = tep_db_prepare_input($HTTP_POST_VARS['confirmation']);.

// Guest Account Start.

If ($guest_account) {.

$guest_pass = tep_create_random_value(ENTRY_PASSWORD_MIN_LENGTH, 'mixed');.

$password = tep_db_prepare_input($guest_pass);.

}.

// Guest Account End.

$error = false;.

If (ACCOUNT_GENDER == 'true') {.

If ( ($gender != 'm') && ($gender != 'f') ) {.

$error = true;.

$messageStack->add('create_account', ENTRY_GENDER_ERROR);.

}.

}.

// start Required Customer Details - Zappo - Added Checking for Required fields (For Form-Checking).

If ((ACCOUNT_FIRST_NAME == 'true') && (strlen($firstname) < ENTRY_FIRST_NAME_MIN_LENGTH)) {.

$error = true;.

$messageStack->add('create_account', ENTRY_FIRST_NAME_ERROR);.

}.

If ((ACCOUNT_LAST_NAME == 'true') && (strlen($lastname) < ENTRY_LAST_NAME_MIN_LENGTH)) {.

$error = true;.

$messageStack->add('create_account', ENTRY_LAST_NAME_ERROR);.

}.

If (ACCOUNT_DOB == 'true') {.

If (checkdate(substr(tep_date_raw($dob), 4, 2), substr(tep_date_raw($dob), 6, 2), substr(tep_date_raw($dob), 0, 4)) == false) {.

$error = true;.

$messageStack->add('create_account', ENTRY_DATE_OF_BIRTH_ERROR);.

}.

}.

If (ACCOUNT_EMAIL == 'true') {.

If (strlen($email_address) < ENTRY_EMAIL_ADDRESS_MIN_LENGTH) {.

$error = true;.

$messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_ERROR);.

} elseif (tep_validate_email($email_address) == false) {.

$error = true;.

$messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);.

} else {.

// Guest Account added guest_flag.

$check_email_query = tep_db_query("select count(*) as total from "TABLE_CUSTOMERS" where customers_email_address = '"tep_db_input($email_address)"' and guest_flag != '1'");.

$check_email = tep_db_fetch_array($check_email_query);.

If ($check_email['total'] > 0) {.

$error = true;.

$messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_ERROR_EXISTS);.

}.

}.

}.

If ((ACCOUNT_STREET == 'true') && (strlen($street_address) < ENTRY_STREET_ADDRESS_MIN_LENGTH)) {.

$error = true;.

$messageStack->add('create_account', ENTRY_STREET_ADDRESS_ERROR);.

}.

If ((ACCOUNT_POSTCODE == 'true') && (strlen($postcode) < ENTRY_POSTCODE_MIN_LENGTH)) {.

$error = true;.

$messageStack->add('create_account', ENTRY_POST_CODE_ERROR);.

}.

If ((ACCOUNT_CITY == 'true') && (strlen($city) < ENTRY_CITY_MIN_LENGTH)) {.

$error = true;.

$messageStack->add('create_account', ENTRY_CITY_ERROR);.

}.

If ((ACCOUNT_COUNTRY == 'true') && (is_numeric($country) == false)) {.

$error = true;.

$messageStack->add('create_account', ENTRY_COUNTRY_ERROR);.

}.

If (ACCOUNT_STATE == 'true') {.

$zone_id = 0;.

$check_query = tep_db_query("select count(*) as total from "TABLE_ZONES" where zone_country_id = '"(int)$country"'");.

$check = tep_db_fetch_array($check_query);.

$entry_state_has_zones = ($check['total'] > 0);.

If ($entry_state_has_zones == true) {.

$zone_query = tep_db_query("select distinct zone_id from "TABLE_ZONES" where zone_country_id = '"(int)$country"' and (zone_name = '"tep_db_input($state)"' or zone_code = '"tep_db_input($state)"')");.

If (tep_db_num_rows($zone_query) == 1) {.

$zone = tep_db_fetch_array($zone_query);.

$zone_id = $zone['zone_id'];.

} else {.

$error = true;.

$messageStack->add('create_account', ENTRY_STATE_ERROR_SELECT);.

}.

} else {.

If (strlen($state) < ENTRY_STATE_MIN_LENGTH) {.

$error = true;.

$messageStack->add('create_account', ENTRY_STATE_ERROR);.

}.

}.

}.

If ((ACCOUNT_TEL == 'true') && (strlen($telephone) < ENTRY_TELEPHONE_MIN_LENGTH)) {.

$error = true;.

$messageStack->add('create_account', ENTRY_TELEPHONE_NUMBER_ERROR);.

}.

// Guest Account Start.

If (guest_account == false) {.

If (strlen($password) < ENTRY_PASSWORD_MIN_LENGTH) {.

$error = true;.

$messageStack->add('create_account', ENTRY_PASSWORD_ERROR);.

} elseif ($password != $confirmation) {.

$error = true;.

$messageStack->add('create_account', ENTRY_PASSWORD_ERROR_NOT_MATCHING);.

}.

} // guest account end.

If ($error == false) {.

$sql_data_array = array('customers_firstname' => $firstname,.

'customers_lastname' => $lastname,.

'customers_email_address' => $email_address,.

'customers_telephone' => $telephone,.

'customers_fax' => $fax,.

'customers_newsletter' => $newsletter,.

'customers_password' => tep_encrypt_password($password));.

If (ACCOUNT_GENDER != 'false') $sql_data_array['customers_gender'] = $gender;.

If (ACCOUNT_DOB != 'false') $sql_data_array['customers_dob'] = tep_date_raw($dob);.

// Guest Account Start.

If ($guest_account) $sql_data_array['guest_flag'] = '1'; .

Tep_db_query("update "TABLE_CUSTOMERS" set customers_email_address = '@_"$email_address"' where customers_email_address = '"$email_address"' and guest_flag = '1'");.

Tep_db_query("update "TABLE_CUSTOMERS" set customers_lastname = '@_"$lastname"' where customers_email_address = '@_"$email_address"'");.

// Guest Account End.

Tep_db_perform(TABLE_CUSTOMERS, $sql_data_array);.

$customer_id = tep_db_insert_id();.

$sql_data_array = array('customers_id' => $customer_id,.

'entry_firstname' => $firstname,.

'entry_lastname' => $lastname,.

'entry_street_address' => $street_address,.

'entry_postcode' => $postcode,.

'entry_city' => $city,.

'entry_country_id' => $country);.

If (ACCOUNT_GENDER != 'false') $sql_data_array['entry_gender'] = $gender;.

If (ACCOUNT_COMPANY != 'false') $sql_data_array['entry_company'] = $company;.

If (ACCOUNT_SUBURB != 'false') $sql_data_array['entry_suburb'] = $suburb;.

If (ACCOUNT_STATE != 'false') {.

If ($zone_id > 0) {.

$sql_data_array['entry_zone_id'] = $zone_id;.

$sql_data_array['entry_state'] = '';.

} else {.

$sql_data_array['entry_zone_id'] = '0';.

$sql_data_array['entry_state'] = $state;.

}.

}.

Tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array);.

$address_id = tep_db_insert_id();.

Tep_db_query("update "TABLE_CUSTOMERS" set customers_default_address_id = '"(int)$address_id"' where customers_id = '"(int)$customer_id"'");.

// Guest Account Start.

If (!$guest_account) {.

Tep_db_query("insert into "TABLE_CUSTOMERS_INFO" (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values ('"tep_db_input($customer_id)"', '0', now())");.

} else {.

Tep_db_query("insert into "TABLE_CUSTOMERS_INFO" (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values ('"tep_db_input($customer_id)"', '-1', now())");.

}.

// Guest Account End.

If (SESSION_RECREATE == 'True') {.

Tep_session_recreate();.

}.

$customer_first_name = $firstname;.

$customer_default_address_id = $address_id;.

$customer_country_id = $country;.

$customer_zone_id = $zone_id;.

Tep_session_register('customer_id');.

Tep_session_register('customer_first_name');.

Tep_session_register('customer_default_address_id');.

Tep_session_register('customer_country_id');.

Tep_session_register('customer_zone_id');.

// restore cart contents.

$cart->restore_contents();.

// build the message content.

$name = $firstname' '$lastname;.

If (ACCOUNT_GENDER != 'false') {.

If ($gender == 'm') {.

$email_text = sprintf(EMAIL_GREET_MR, $lastname);.

} elseif ($gender == 'f') {.

$email_text = sprintf(EMAIL_GREET_MS, $lastname);.

} else {.

$email_text = sprintf(EMAIL_GREET_NONE, $firstname);.

// end Required Customer Details - Zappo - Added Checking for Details to display (true, false or optional).

}.

} else {.

$email_text = sprintf(EMAIL_GREET_NONE, $firstname);.

}.

// Guest Account Start.

If ($guest_account == true) {.

Tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));.

} else {.

$email_text .= EMAIL_WELCOMEEMAIL_TEXTEMAIL_CONTACTEMAIL_WARNING;.

Tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_/img/avatar3.jpg, STORE_/img/avatar3.jpg_EMAIL_ADDRESS);.

Tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL'));.

}.

// Guest Account End.

}.

}.

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));.

?>.

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">.

<html <?php echo HTML_PARAMS; ?>>.

<head>.

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">.

<title><?php echo TITLE; ?></title>.

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER)DIR_WS_CATALOG; ?>">.

<link rel="stylesheet" type="text/css" href="stylesheet.css">.

<?php require('includes/form_check.js.php'); ?>.

</head>.

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">.

<! header //>.

<?php require(DIR_WS_INCLUDES'header.php'); ?>.

<! header_eof //>.

<! body //>.

<table border="0" width="100%" cellspacing="3" cellpadding="3">.

<tr>.

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">.

<! left_navigation //>.

<?php require(DIR_WS_INCLUDES'column_left.php'); ?>.

<! left_navigation_eof //>.

</table></td>.

<! body_text Guest Account added in the form-tag below//>.

<td width="100%" valign="top"><?php echo tep_draw_form('create_account', tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'), 'post', 'onSubmit="return check_form(create_account);"')tep_draw_hidden_field('action', 'process')tep_draw_hidden_field('guest_account', $guest_account); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td class="pageHeading"><?php // Added Guest Account.

If ($guest_account) {.

Echo HEADING_TITLE_GUEST;.

} else {.

Echo HEADING_TITLE;.

}.

?></td>.

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES'table_background_account.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>.

</tr>.

</table></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td class="smallText"><br><?php echo sprintf(TEXT_ORIGIN_LOGIN, tep_href_link(FILENAME_LOGIN, tep_get_all_get_params(), 'SSL')); ?></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<?php.

If ($messageStack->size('create_account') > 0) {.

?>.

<tr>.

<td><?php echo $messageStack->output('create_account'); ?></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<?php.

}.

?>.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td class="main"><b><?php echo CATEGORY_PERSONAL; ?></b></td>.

<td class="inputRequirement" align="right"><?php echo FORM_REQUIRED_INFORMATION; ?></td>.

</tr>.

</table></td>.

</tr>.

<tr>.

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">.

<tr class="infoBoxContents">.

<td><table border="0" cellspacing="2" cellpadding="2">.

<?php.

// start Required Customer Details - Zappo - Added Checking for fields 2 B Displayed.

If (ACCOUNT_GENDER != 'false') {.

?>.

<tr>.

<td class="main"><?php echo ENTRY_GENDER; ?></td>.

<td class="main"><?php echo tep_draw_radio_field('gender', 'm')'&nbsp;&nbsp;'MALE'&nbsp;&nbsp;'tep_draw_radio_field('gender', 'f')'&nbsp;&nbsp;'FEMALE'&nbsp;'(ACCOUNT_GENDER == 'true' && tep_not_null(ENTRY_GENDER_TEXT) ? '<span class="inputRequirement">'ENTRY_GENDER_TEXT'</span>': ''); ?></td>.

</tr>.

<?php.

}.

If (ACCOUNT_FIRST_NAME != 'false') {.

?>.

<tr>.

<td class="main"><?php echo ENTRY_FIRST_NAME; ?></td>.

<td class="main"><?php echo tep_draw_input_field('firstname')'&nbsp;'(ACCOUNT_FIRST_NAME == 'true' && tep_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="inputRequirement">'ENTRY_FIRST_NAME_TEXT'</span>': ''); ?></td>.

</tr>.

<?php.

}.

If (ACCOUNT_LAST_NAME != 'false') {.

?>.

<tr>.

<td class="main"><?php echo ENTRY_LAST_NAME; ?></td>.

<td class="main"><?php echo tep_draw_input_field('lastname')'&nbsp;'(ACCOUNT_LAST_NAME == 'true' && tep_not_null(ENTRY_LAST_NAME_TEXT) ? '<span class="inputRequirement">'ENTRY_LAST_NAME_TEXT'</span>': ''); ?></td>.

</tr>.

<?php.

}.

If (ACCOUNT_DOB != 'false') {.

?>.

<tr>.

<td class="main"><?php echo ENTRY_DATE_OF_BIRTH; ?></td>.

<td class="main"><?php echo tep_draw_input_field('dob')'&nbsp;'(ACCOUNT_DOB == 'true' && tep_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="inputRequirement">'ENTRY_DATE_OF_BIRTH_TEXT'</span>': ''); ?></td>.

</tr>.

<?php.

}.

If (ACCOUNT_EMAIL != 'false') {.

?>.

<tr>.

<td class="main"><?php echo ENTRY_EMAIL_ADDRESS; ?></td>.

<td class="main"><?php echo tep_draw_input_field('email_address')'&nbsp;'(ACCOUNT_EMAIL == 'true' && tep_not_null(ENTRY_EMAIL_ADDRESS_TEXT) ? '<span class="inputRequirement">'ENTRY_EMAIL_ADDRESS_TEXT'</span>': ''); ?></td>.

</tr>.

<?php.

}.

?>.

</table></td>.

</tr>.

</table></td>.

</tr>.

<?php.

If (ACCOUNT_COMPANY != 'false') {.

?>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td class="main"><b><?php echo CATEGORY_COMPANY; ?></b></td>.

</tr>.

<tr>.

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">.

<tr class="infoBoxContents">.

<td><table border="0" cellspacing="2" cellpadding="2">.

<tr>.

<td class="main"><?php echo ENTRY_COMPANY; ?></td>.

<td class="main"><?php echo tep_draw_input_field('company')'&nbsp;'(ACCOUNT_COMPANY == 'true' && tep_not_null(ENTRY_COMPANY_TEXT) ? '<span class="inputRequirement">'ENTRY_COMPANY_TEXT'</span>': ''); ?></td>.

<?php // end Required Customer Details - Zappo - Added Checking for fields 2 B Displayed ?>.

</tr>.

</table></td>.

</tr>.

</table></td>.

</tr>.

<?php.

}.

// start Required Customer Details - Zappo - Added Checking for Address Details (Hide all if no address entry is found).

If (ACCOUNT_STREET == 'false' && ACCOUNT_SUBURB == 'false' && ACCOUNT_POSTCODE == 'false' && ACCOUNT_CITY == 'false' && ACCOUNT_STATE == 'false' && ACCOUNT_COUNTRY == 'false') {.

} else {.

?>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td class="main"><b><?php echo CATEGORY_ADDRESS; ?></b></td>.

</tr>.

<tr>.

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">.

<tr class="infoBoxContents">.

<td><table border="0" cellspacing="2" cellpadding="2">.

<?php.

If (ACCOUNT_STREET != 'false') {.

?>.

<tr>.

<td class="main"><?php echo ENTRY_STREET_ADDRESS; ?></td>.

<td class="main"><?php echo tep_draw_input_field('street_address')'&nbsp;'(ACCOUNT_STREET == 'true' && tep_not_null(ENTRY_STREET_ADDRESS_TEXT) ? '<span class="inputRequirement">'ENTRY_STREET_ADDRESS_TEXT'</span>': ''); ?></td>.

</tr>.

<?php.

}.

If (ACCOUNT_SUBURB != 'false') {.

?>.

<tr>.

<td class="main"><?php echo ENTRY_SUBURB; ?></td>.

<td class="main"><?php echo tep_draw_input_field('suburb')'&nbsp;'(ACCOUNT_SUBURB == 'true' && tep_not_null(ENTRY_SUBURB_TEXT) ? '<span class="inputRequirement">'ENTRY_SUBURB_TEXT'</span>': ''); ?></td>.

</tr>.

<?php.

}.

If (ACCOUNT_CITY != 'false') {.

?>.

<tr>.

<td class="main"><?php echo ENTRY_CITY; ?></td>.

<td class="main"><?php echo tep_draw_input_field('city')'&nbsp;'(ACCOUNT_CITY == 'true' && tep_not_null(ENTRY_CITY_TEXT) ? '<span class="inputRequirement">'ENTRY_CITY_TEXT'</span>': ''); ?></td>.

</tr>.

<?php.

}.

If (ACCOUNT_STATE != 'false') {.

?>.

<tr>.

<td class="main"><?php echo ENTRY_STATE; ?></td>.

<td class="main">.

<?php.

If ($process == true) {.

If ($entry_state_has_zones == true) {.

$zones_array = array();.

$zones_query = tep_db_query("select zone_name from "TABLE_ZONES" where zone_country_id = '"(int)$country"' order by zone_name");.

While ($zones_values = tep_db_fetch_array($zones_query)) {.

$zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);.

}.

Echo tep_draw_pull_down_menu('state', $zones_array);.

} else {.

Echo tep_draw_input_field('state');.

}.

} else {.

Echo tep_draw_input_field('state');.

}.

If ((ACCOUNT_STATE != 'optional') && tep_not_null(ENTRY_STATE_TEXT)) echo '&nbsp;<span class="inputRequirement">'ENTRY_STATE_TEXT;.

?>.

</td>.

</tr>.

<?php.

}.

If (ACCOUNT_POSTCODE != 'false') {.

?>.

<tr>.

<td class="main"><?php echo ENTRY_POST_CODE; ?></td>.

<td class="main"><?php echo tep_draw_input_field('postcode')'&nbsp;'(ACCOUNT_POSTCODE == 'true' && tep_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement">'ENTRY_POST_CODE_TEXT'</span>': ''); ?></td>.

</tr>.

<?php.

}.

If (ACCOUNT_COUNTRY != 'false') {.

?>.

<tr>.

<td class="main"><?php echo ENTRY_COUNTRY; ?></td>.

<td class="main"><?php echo tep_get_country_list('country')'&nbsp;'(ACCOUNT_COUNTRY == 'true' && tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">'ENTRY_COUNTRY_TEXT'</span>': ''); ?></td>.

</tr>.

<?php.

}.

?>.

<?php // start Required Customer Details - Zappo - Added Checking for Address Details (Hide all if no address entry is found) ?>.

</table></td>.

</tr>.

</table></td>.

</tr>.

<?php.

}.

// start Required Customer Details - Zappo - Added Checking for Contact Details (Hide all if no Number entry is found).

If (ACCOUNT_TEL == 'false' && ACCOUNT_FAX == 'false') {.

} else {.

?>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td class="main"><b><?php echo CATEGORY_CONTACT; ?></b></td>.

</tr>.

<tr>.

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">.

<tr class="infoBoxContents">.

<td><table border="0" cellspacing="2" cellpadding="2">.

<?php.

If (ACCOUNT_TEL != 'false') {.

?>.

<tr>.

<td class="main"><?php echo ENTRY_TELEPHONE_NUMBER; ?></td>.

<td class="main"><?php echo tep_draw_input_field('telephone')'&nbsp;'(ACCOUNT_TEL == 'true' && tep_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="inputRequirement">'ENTRY_TELEPHONE_NUMBER_TEXT'</span>': ''); ?></td>.

</tr>.

<?php.

}.

If (ACCOUNT_FAX != 'false') {.

?>.

<tr>.

<td class="main"><?php echo ENTRY_FAX_NUMBER; ?></td>.

<td class="main"><?php echo tep_draw_input_field('fax')'&nbsp;'(ACCOUNT_FAX == 'true' && tep_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span class="inputRequirement">'ENTRY_FAX_NUMBER_TEXT'</span>': ''); ?></td>.

</tr>.

<?php.

}.

?>.

</table></td>.

</tr>.

</table></td>.

</tr>.

<?php.

}.

// - Zappo - Added Checking for Options Details (Hide all if no Newsletter entry is found).

If (ACCOUNT_NEWSLETTER != 'false') {.

?>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<?php.

If ($guest_account == false) { // Not a Guest Account.

?>.

<tr>.

<td class="main"><b><?php echo CATEGORY_OPTIONS; ?></b></td>.

</tr>.

<tr>.

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">.

<tr class="infoBoxContents">.

<td><table border="0" cellspacing="2" cellpadding="2">.

<tr>.

<td class="main"><?php echo ENTRY_NEWSLETTER; ?></td>.

<td class="main"><?php echo tep_draw_checkbox_field('newsletter', '1')'&nbsp;'(ACCOUNT_NEWSLETTER == 'true' && tep_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="inputRequirement">'ENTRY_NEWSLETTER_TEXT'</span>': ''); ?></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

</tr>.

<?php.

}.

?>.

<?php // start Required Customer Details - Zappo - Added Checking for Contact Details (Hide all if no Number entry is found) ?>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td class="main"><b><?php echo CATEGORY_PASSWORD; ?></b></td>.

</tr>.

<tr>.

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">.

<tr class="infoBoxContents">.

<td><table border="0" cellspacing="2" cellpadding="2">.

<tr>.

<td class="main"><?php echo ENTRY_PASSWORD; ?></td>.

<td class="main"><?php echo tep_draw_password_field('password')'&nbsp;'(tep_not_null(ENTRY_PASSWORD_TEXT) ? '<span class="inputRequirement">'ENTRY_PASSWORD_TEXT'</span>': ''); ?></td>.

</tr>.

<tr>.

<td class="main"><?php echo ENTRY_PASSWORD_CONFIRMATION; ?></td>.

<td class="main"><?php echo tep_draw_password_field('confirmation')'&nbsp;'(tep_not_null(ENTRY_PASSWORD_CONFIRMATION_TEXT) ? '<span class="inputRequirement">'ENTRY_PASSWORD_CONFIRMATION_TEXT'</span>': ''); ?></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<?php.

} // Guest Account end.

?>.

<tr>.

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">.

<tr class="infoBoxContents">.

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

<td><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

</tr>.

</table></form></td>.

<! body_text_eof //>.

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">.

<! right_navigation //>.

<?php //include(DIR_WS_INCLUDES'column_right.php'); ?>.

<! right_navigation_eof //>.

</table></td>.

</tr>.

</table>.

<! body_eof //>.

<! footer //>.

<?php include(DIR_WS_INCLUDES'footer.php'); ?>.

<! footer_eof //>.

<br>.

</body>.

</html>.

<?php require(DIR_WS_INCLUDES'application_bottom.php'); ?>.

Can anyone spot what is going on, or tell me where else to look? Thanks,.

Bruce..

Comments (14)

Hmm... I need to find out myself. I don't know what is the answer. I'll do some research in Google and get back to you if I find an good answer. You should email the people at iPage as they probably could give you an answer..

Comment #1

Not sure I am looking in the right place. The last two lines when I look at the HTML source are.

</body>.

</html>.

Afraid I am too green to make much of that. Any other guidance I might try? Thanks in advance. Bruce..

Comment #2

Click Me.

That post contains info on how to change the error level reporting..

But from what you posted there may be no "error" (in that sense of thw word) causing the problem...

Comment #3

I'll try the error reporting next, but meantime, here is the HTML source code from the page causing the problem. Maybe another set of eyes (in a head that knows this stuff a lot better than me!) can see something obvious. Thanks for all the help so far, and I will let you know what error reporting shows me. Bruce.

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">.

<html dir="LTR" lang="en">.

<head>.

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">.

<title>KardKase</title>.

<base href="http://localhost/catalog/">.

<link rel="stylesheet" type="text/css" href="stylesheet.css">.

<script language="javascript"><!.

Function check_form() {.

Var error = 0;.

Var error_message = "Errors have occured during the process of your form.\n\nPlease make the following corrections:\n\n";.

Var first_name = document.account_edit.firstname.value;.

Var last_name = document.account_edit.lastname.value;.

Var email_address = document.account_edit.email_address.value;.

Var company = document.account_edit.company.value;.

Var street_address = document.account_edit.street_address.value;.

Var postcode = document.account_edit.postcode.value;.

Var city = document.account_edit.city.value;.

Var telephone = document.account_edit.telephone.value;.

Var fax = document.account_edit.fax.value;.

Var password = document.account_edit.password.value;.

Var confirmation = document.account_edit.confirmation.value;.

If (document.account_edit.elements['email_address'].type != "hidden") {.

If (email_address == '' || email_address.length < 6) {.

Error_message = error_message + "JS_EMAIL_ADDRESS";.

Error = 1;.

}.

}.

If (document.account_edit.elements['street_address'].type != "hidden") {.

If (street_address == '' || street_address.length < 5) {.

Error_message = error_message + "JS_ADDRESS";.

Error = 1;.

}.

}.

If (document.account_edit.elements['postcode'].type != "hidden") {.

If (postcode == '' || postcode.length < 4) {.

Error_message = error_message + "JS_POST_CODE";.

Error = 1;.

}.

}.

If (document.account_edit.elements['city'].type != "hidden") {.

If (city == '' || city.length < 3) {.

Error_message = error_message + "JS_CITY";.

Error = 1;.

}.

}.

If (document.account_edit.elements['zone_id'].type != "hidden") {.

If (document.account_edit.zone_id.options.length <= 1) {.

If (document.account_edit.state.value == '' || document.account_edit.state.value.length < 2 ) {.

Error_message = error_message + "JS_STATE";.

Error = 1;.

}.

} else {.

Document.account_edit.state.value = '';.

If (document.account_edit.zone_id.selectedIndex == 0) {.

Error_message = error_message + "JS_ZONE";.

Error = 1;.

}.

}.

}.

</head>.

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">.

<! header //>.

<table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr class="header">.

<td valign="middle"><a href="http://localhost/catalog/index.php?osCsid=88be574cd5dce4bf0fbc3dd2f80807f0"><img src="images/Logo.png" border="0" alt="KardKase" title=" KardKase " width="500" height="90"></a></td>.

<!.

<td align="right" valign="bottom"><a href="http://localhost/catalog/account.php?osCsid=88be574cd5dce4bf0fbc3dd2f80807f0"><img src="images/header_account.gif" border="0" alt="" width="30" height="30"></a>&nbsp;&nbsp;<a href="http://localhost/catalog/shopping_cart.php?osCsid=88be574cd5dce4bf0fbc3dd2f80807f0"><img src="images/header_cart.gif" border="0" alt="Cart Contents" title=" Cart Contents " width="30" height="30"></a>&nbsp;&nbsp;<a href="http://localhost/catalog/checkout_shipping.php?osCsid=88be574cd5dce4bf0fbc3dd2f80807f0"><img src="images/header_checkout.gif" border="0" alt="Checkout" title=" Checkout " width="30" height="30"></a>&nbsp;&nbsp;</td>.

>.

</tr>.

</table>.

<table border="0" width="100%" cellspacing="0" cellpadding="1">.

<tr class="headerNavigation">.

<td class="headerNavigation">&nbsp;&nbsp;<a href="http://localhost" class="headerNavigation">KardKase Home</a> &raquo; <a href="http://localhost/catalog/index.php?osCsid=88be574cd5dce4bf0fbc3dd2f80807f0" class="headerNavigation">KardKase Store</a> &raquo; <a href="http://localhost/catalog/create_account.php?osCsid=88be574cd5dce4bf0fbc3dd2f80807f0" class="headerNavigation">Create an Account</a></td>.

<td align="right" class="headerNavigation">.

<a href="http://localhost/catalog/shopping_cart.php?osCsid=88be574cd5dce4bf0fbc3dd2f80807f0" class="headerNavigation">Cart Contents</a>.

&nbsp;|&nbsp;.

<a href="http://localhost/catalog/checkout_shipping.php?osCsid=88be574cd5dce4bf0fbc3dd2f80807f0" class="headerNavigation">Checkout</a>.

&nbsp;&nbsp;</td>.

</tr>.

</table>.

<! header_eof //>.

<! body //>.

<table border="0" width="100%" cellspacing="3" cellpadding="3">.

<tr>.

<td width="125" valign="top"><table border="0" width="125" cellspacing="0" cellpadding="2">.

<! left_navigation //>.

<! categories //>.

<tr>.

<td>.

<table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td>.

<td width="100%" height="14" class="infoBoxHeading">Categories</td>.

<td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>.

</tr>.

</table>.

<table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">.

<tr>.

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>.

</tr>.

<tr>.

<td class="boxText"><a href="http://localhost/catalog/index.php?cPath=1&osCsid=88be574cd5dce4bf0fbc3dd2f80807f0">Shop for Kases</a><br><a href="http://localhost/catalog/index.php?cPath=2&osCsid=88be574cd5dce4bf0fbc3dd2f80807f0">Pay an Invoice</a><br></td>.

</tr>.

<tr>.

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>.

</tr>.

</table>.

</td>.

</tr>.

</table>.

</td>.

</tr>.

<! categories_eof //>.

<! shopping_cart //>.

<tr>.

<td>.

<table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td>.

<td width="100%" height="14" class="infoBoxHeading">Shopping Cart</td>.

<td height="14" class="infoBoxHeading" nowrap><a href="http://localhost/catalog/shopping_cart.php?osCsid=88be574cd5dce4bf0fbc3dd2f80807f0"><img src="images/infobox/arrow_right.gif" border="0" alt="more" title=" more " width="27" height="12"></a><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>.

</tr>.

</table>.

<table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">.

<tr>.

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>.

</tr>.

<tr>.

<td class="boxText">0 items</td>.

</tr>.

<tr>.

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>.

</tr>.

</table>.

</td>.

</tr>.

</table>.

</td>.

</tr>.

<! shopping_cart_eof //>.

<! information //>.

<tr>.

<td>.

<table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td>.

<td width="100%" height="14" class="infoBoxHeading">Information</td>.

<td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>.

</tr>.

</table>.

<table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">.

<tr>.

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>.

</tr>.

<tr>.

<td class="boxText"><a href="http://localhost/catalog/shipping.php?osCsid=88be574cd5dce4bf0fbc3dd2f80807f0">Shipping & Returns</a><br><a href="http://localhost/catalog/contact_us.php?osCsid=88be574cd5dce4bf0fbc3dd2f80807f0">Contact Us</a><br><a href="http://www.kardkase.com/home33.htm" TARGET="_top" TITLE="KardKase Selector">KardKase Selector</a><br><a href="http://kardkase.com/index.htm" TARGET="_top" TITLE="KardKase"><U><B>KardKase Home</B></U></a></td>.

</tr>.

<tr>.

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>.

</tr>.

</table>.

</td>.

</tr>.

</table>.

</td>.

</tr>.

<! information_eof //>.

<! left_navigation_eof //>.

</table></td>.

<! body_text Guest Account added in the form-tag below//>.

<td width="100%" valign="top"><form name="create_account" action="http://localhost/catalog/create_account.php?osCsid=88be574cd5dce4bf0fbc3dd2f80807f0" method="post" onSubmit="return check_form(create_account);"><input type="hidden" name="action" value="process"><input type="hidden" name="guest_account" value="1"><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td class="pageHeading">Please Enter your Billing Address</td>.

<td class="pageHeading" align="right"><img src="images/table_background_account.gif" border="0" alt="My Account Information" title=" My Account Information " width="57" height="40"></td>.

</tr>.

</table></td>.

</tr>.

<tr>.

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>.

</tr>.

<tr>.

<td class="smallText"><br></td>.

</tr>.

<tr>.

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>.

</tr>.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td class="main"><b>Your Personal Details</b></td>.

<td class="inputRequirement" align="right">* Required information</td>.

</tr>.

</table></td>.

</tr>.

<tr>.

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">.

<tr class="infoBoxContents">.

<td><table border="0" cellspacing="2" cellpadding="2">.

<tr>.

<td class="main">First Name:</td>.

<td class="main"><input type="text" name="firstname">&nbsp;<span class="inputRequirement">*</span></td>.

</tr>.

<tr>.

<td class="main">Last Name:</td>.

<td class="main"><input type="text" name="lastname">&nbsp;<span class="inputRequirement">*</span></td>.

</tr>.

<tr>.

<td class="main">E-Mail Address:</td>.

<td class="main"><input type="text" name="email_address">&nbsp;<span class="inputRequirement">*</span></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

</tr>.

<tr>.

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>.

</tr>.

<tr>.

<td class="main"><b>Company Details</b></td>.

</tr>.

<tr>.

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">.

<tr class="infoBoxContents">.

<td><table border="0" cellspacing="2" cellpadding="2">.

<tr>.

<td class="main">Company Name:</td>.

<td class="main"><input type="text" name="company">&nbsp;</td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

</tr>.

<tr>.

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>.

</tr>.

<tr>.

<td class="main"><b>Your Address</b></td>.

</tr>.

<tr>.

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">.

<tr class="infoBoxContents">.

<td><table border="0" cellspacing="2" cellpadding="2">.

<tr>.

<td class="main">Street Address:</td>.

<td class="main"><input type="text" name="street_address">&nbsp;<span class="inputRequirement">*</span></td>.

</tr>.

<tr>.

<td class="main">Address 2:</td>.

<td class="main"><input type="text" name="suburb">&nbsp;</td>.

</tr>.

<tr>.

<td class="main">City:</td>.

<td class="main"><input type="text" name="city">&nbsp;<span class="inputRequirement">*</span></td>.

</tr>.

<tr>.

<td class="main">State/Province:</td>.

<td class="main">.

<input type="text" name="state">&nbsp;<span class="inputRequirement">* </td>.

</tr>.

<tr>.

<td class="main">Zip Code:</td>.

<td class="main"><input type="text" name="postcode">&nbsp;<span class="inputRequirement">*</span></td>.

</tr>.

<tr>.

<td class="main">Country:</td>.

<td class="main"><select name="country"><option value="223">United States</option><option value="1">Afghanistan</option><option value="2">Albania</option><option value="3">Algeria</option><option value="4">American Samoa</option><option value="5">Andorra</option><option value="6">Angola</option><option value="7">Anguilla</option><option value="8">Antarctica</option><option value="9">Antigua and Barbuda</option><option value="10">Argentina</option><option value="11">Armenia</option><option value="12">Aruba</option><option value="13">Australia</option><option value="14">Austria</option><option value="15">Azerbaijan</option><option value="16">Bahamas</option><option value="17">Bahrain</option><option value="18">Bangladesh</option><option value="19">Barbados</option><option value="20">Belarus</option><option value="21">Belgium</option><option value="22">Belize</option><option value="23">Benin</option><option value="24">Bermuda</option><option value="25">Bhutan</option><option value="26">Bolivia</option><option value="27">Bosnia Herzegowina</option><option value="28">Botswana</option><option value="29">Bouvet Island</option><option value="30">Brazil</option><option value="31">British Indian Ocean</option><option value="32">Brunei Darussalam</option><option value="33">Bulgaria</option><option value="34">Burkina Faso</option><option value="35">Burundi</option><option value="36">Cambodia</option><option value="37">Cameroon</option><option value="38">Canada</option><option value="39">Cape Verde</option><option value="40">Cayman Islands</option><option value="41">Central African Rep.</option><option value="42">Chad</option><option value="43">Chile</option><option value="44">China</option><option value="45">Christmas Island</option><option value="46">Cocos (Keeling) Is.</option><option value="47">Colombia</option><option value="48">Comoros</option><option value="49">Congo</option><option value="50">Cook Islands</option><option value="51">Costa Rica</option><option value="52">Cote D'Ivoire</option><option value="53">Croatia</option><option value="54">Cuba</option><option value="55">Cyprus</option><option value="56">Czech Republic</option><option value="57">Denmark</option><option value="58">Djibouti</option><option value="59">Dominica</option><option value="60">Dominican Republic</option><option value="61">East Timor</option><option value="62">Ecuador</option><option value="63">Egypt</option><option value="64">El Salvador</option><option value="65">Equatorial Guinea</option><option value="66">Eritrea</option><option value="67">Estonia</option><option value="68">Ethiopia</option><option value="69">Falkland Islands</option><option value="70">Faroe Islands</option><option value="71">Fiji</option><option value="72">Finland</option><option value="73">France</option><option value="74">France, Metropolitan</option><option value="75">French Guiana</option><option value="76">French Polynesia</option><option value="77">French Southern Ter.</option><option value="78">Gabon</option><option value="79">Gambia</option><option value="80">Georgia</option><option value="81">Germany</option><option value="82">Ghana</option><option value="83">Gibraltar</option><option value="84">Greece</option><option value="85">Greenland</option><option value="86">Grenada</option><option value="87">Guadeloupe</option><option value="88">Guam</option><option value="89">Guatemala</option><option value="90">Guinea</option><option value="91">Guinea-bissau</option><option value="92">Guyana</option><option value="93">Haiti</option><option value="94">Heard & Mc Donald</option><option value="95">Honduras</option><option value="96">Hong Kong</option><option value="97">Hungary</option><option value="98">Iceland</option><option value="99">India</option><option value="100">Indonesia</option><option value="101">Iran</option><option value="102">Iraq</option><option value="103">Ireland</option><option value="104">Israel</option><option value="105">Italy</option><option value="106">Jamaica</option><option value="107">Japan</option><option value="108">Jordan</option><option value="109">Kazakhstan</option><option value="110">Kenya</option><option value="111">Kiribati</option><option value="113">Korea, Republic of</option><option value="114">Kuwait</option><option value="115">Kyrgyzstan</option><option value="117">Latvia</option><option value="118">Lebanon</option><option value="119">Lesotho</option><option value="120">Liberia</option><option value="121">Libya</option><option value="122">Liechtenstein</option><option value="123">Lithuania</option><option value="124">Luxembourg</option><option value="125">Macau</option><option value="126">Macedonia</option><option value="127">Madagascar</option><option value="128">Malawi</option><option value="129">Malaysia</option><option value="130">Maldives</option><option value="131">Mali</option><option value="132">Malta</option><option value="133">Marshall Islands</option><option value="134">Martinique</option><option value="135">Mauritania</option><option value="136">Mauritius</option><option value="137">Mayotte</option><option value="138">Mexico</option><option value="139">Micronesia</option><option value="140">Moldova, Republic of</option><option value="141">Monaco</option><option value="142">Mongolia</option><option value="143">Montserrat</option><option value="144">Morocco</option><option value="145">Mozambique</option><option value="146">Myanmar</option><option value="147">Namibia</option><option value="148">Nauru</option><option value="149">Nepal</option><option value="150">Netherlands</option><option value="151">Netherlands Antilles</option><option value="152">New Caledonia</option><option value="153">New Zealand</option><option value="154">Nicaragua</option><option value="155">Niger</option><option value="156">Nigeria</option><option value="157">Niue</option><option value="158">Norfolk Island</option><option value="159">Northern Mariana Is.</option><option value="160">Norway</option><option value="161">Oman</option><option value="162">Pakistan</option><option value="163">Palau</option><option value="164">Panama</option><option value="165">Papua New Guinea</option><option value="166">Paraguay</option><option value="167">Peru</option><option value="168">Philippines</option><option value="169">Pitcairn</option><option value="170">Poland</option><option value="171">Portugal</option><option value="172">Puerto Rico</option><option value="173">Qatar</option><option value="174">Reunion</option><option value="175">Romania</option><option value="176">Russian Federation</option><option value="177">Rwanda</option><option value="178">Saint Kitts and Nevis</option><option value="179">Saint Lucia</option><option value="181">Samoa</option><option value="182">San Marino</option><option value="183">Sao Tome & Principe</option><option value="184">Saudi Arabia</option><option value="185">Senegal</option><option value="186">Seychelles</option><option value="187">Sierra Leone</option><option value="188">Singapore</option><option value="201">SJ</option><option value="189">Slovakia</option><option value="190">Slovenia</option><option value="191">Solomon Islands</option><option value="192">Somalia</option><option value="193">South Africa</option><option value="195">Spain</option><option value="196">Sri Lanka</option><option value="197">St. Helena</option><option value="198">St. Pierre & Miquelon</option><option value="199">Sudan</option><option value="200">Suriname</option><option value="202">Swaziland</option><option value="203">Sweden</option><option value="204">Switzerland</option><option value="205">Syrian Arab Republic</option><option value="206">Taiwan</option><option value="207">Tajikistan</option><option value="208">Tanzania</option><option value="209">Thailand</option><option value="210">Togo</option><option value="211">Tokelau</option><option value="212">Tonga</option><option value="213">Trinidad and Tobago</option><option value="214">Tunisia</option><option value="215">Turkey</option><option value="216">Turkmenistan</option><option value="217">Turks and Caicos</option><option value="218">Tuvalu</option><option value="219">Uganda</option><option value="220">Ukraine</option><option value="221">United Arab Emirates</option><option value="222">United Kingdom</option><option value="223">United States</option><option value="225">Uruguay</option><option value="224">US Minor Outlying Is.</option><option value="226">Uzbekistan</option><option value="227">Vanuatu</option><option value="228">Vatican City</option><option value="180">VC</option><option value="229">Venezuela</option><option value="230">Viet Nam</option><option value="231">Virgin Islands (Br.)</option><option value="232">Virgin Islands (U.S.)</option><option value="233">Wallis and Futuna Is.</option><option value="234">Western Sahara</option><option value="235">Yemen</option><option value="236">Yugoslavia</option><option value="237">Zaire</option><option value="238">Zambia</option><option value="239">Zimbabwe</option></select>&nbsp;</td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

</tr>.

<tr>.

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>.

</tr>.

<tr>.

<td class="main"><b>Your Contact Information</b></td>.

</tr>.

<tr>.

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">.

<tr class="infoBoxContents">.

<td><table border="0" cellspacing="2" cellpadding="2">.

<tr>.

<td class="main">Telephone Number:</td>.

<td class="main"><input type="text" name="telephone">&nbsp;</td>.

</tr>.

<tr>.

<td class="main">Fax Number:</td>.

<td class="main"><input type="text" name="fax">&nbsp;</td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

</tr>.

<tr>.

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">.

<tr class="infoBoxContents">.

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td width="10"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td>.

<td><input type="image" src="includes/languages/english/images/buttons/button_continue.gif" border="0" alt="Continue" title=" Continue "></td>.

<td width="10"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

</tr>.

</table></form></td>.

<! body_text_eof //>.

<td width="125" valign="top"><table border="0" width="125" cellspacing="0" cellpadding="2">.

<! right_navigation //>.

<! right_navigation_eof //>.

</table></td>.

</tr>.

</table>.

<! body_eof //>.

<! footer //>.

<table border="0" width="100%" cellspacing="0" cellpadding="1">.

<tr class="footer">.

<td class="footer">&nbsp;&nbsp;Wednesday 17 September, 2008&nbsp;&nbsp;</td>.

<td align="right" class="footer">&nbsp;&nbsp;991 requests since Wednesday 21 May, 2008&nbsp;&nbsp;</td>.

</tr>.

</table>.

<br>.

<table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td align="center" class="smallText">Copyright &copy; 2008 <a href="http://localhost/catalog/index.php?osCsid=88be574cd5dce4bf0fbc3dd2f80807f0" style="color: White;">KardKase</a></td>.

</tr>.

</table>.

<br>.

<table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td align="center"><a href="http://localhost/catalog/redirect.php?action=banner&goto=1&osCsid=88be574cd5dce4bf0fbc3dd2f80807f0" target="_blank"><img src="images/banners/oscommerce.gif" border="0" alt="osCommerce" title=" osCommerce " width="400" height="59"></a></td>.

</tr>.

</table>.

<! footer_eof //>.

<br>.

</body>.

</html>..

Comment #4

Here are some of the errors that may play in this:.

On index.php (and other pages where header loads).

Notice: Undefined variable: guest_account in C:\Program Files\xampplite\htdocs\catalog\includes\header.php on line 67.

On the create_account.php (this is the only error that shows up).

Notice: Undefined variable: guest_account in C:\Program Files\xampplite\htdocs\catalog\includes\languages\english\create_account.php on line 14.

Looks like I need to go back and reinstall the guest account contribution?..

Comment #5

Further on this, I looked at the Guest Account Default modification as a possible source of problems. Here is what it does:.

This small change makes it so that your customers are never asked to choose between creating an account or not, and assumes your visitors want to use Guest Account..

The download is empty..

After installing the Guest Account mod, change line 20 in 'checkout_shipping.php' from this:.

Tep_redirect(tep_href_link(FILENAME_LOGIN, 'origin='FILENAME_CHECKOUT_SHIPPING, 'SSL'));.

To this:.

//Assumes visitor wants to use guest account.

Tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT, 'guest_account=true', 'SSL'));.

When I went back to the original code in checkout_shipping, I get the correct (for the guest account mod) create account page. Don't even get any errors on the create account page! So it is buried in here someplace..

Thanks,.

Bruce..

Comment #6

Spoke too soon! I get the correct login page, but if I click "Continue" to buy without an account, same problem on the create account page where the customer is supposed to enter their information...

Comment #7

I am using Guest Account 2.0, and had been having no problems with cycling through my test environment. I have recently installed XP SP3, if that matters. Anyway, now when I select "Checkout" in the catalog, I end up at the Create Account page with nothing but the background of the left column. The code I have is this;.

<?php.

/*.

$Id: create_account.php 1739 2007-12-20 00:52:16Z hpdl $.

OsCommerce, Open Source E-Commerce Solutions.

[url="http://www.oscommerce.com"]http://www.oscommerce.com[/url].

Copyright © 2003 osCommerce.

Released under the GNU General Public License.

*/.

Require('includes/application_top.php');.

// needs to be included earlier to set the success message in the messageStack.

Require(DIR_WS_LANGUAGES$language'/'FILENAME_CREATE_ACCOUNT);.

// guest account.

If (isset($HTTP_GET_VARS['guest_account'])) $guest_account = true;.

// guest account end.

$process = false;.

If (isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process')) {.

$process = true;.

// Guest account start.

If (isset($HTTP_POST_VARS['guest_account']) && ($HTTP_POST_VARS['guest_account'] == true)) {.

Tep_session_register('guest_account');.

Global $guest_account;.

$guest_account = true;.

}.

// Guest account end.

// start Required Customer Details - Zappo - Added Checking for Details to display (true, false or optional).

If (ACCOUNT_GENDER == 'true') {.

If (isset($HTTP_POST_VARS['gender'])) {.

$gender = tep_db_prepare_input($HTTP_POST_VARS['gender']);.

} else {.

$gender = false;.

}.

}.

If (ACCOUNT_FIRST_NAME != 'false') $firstname = tep_db_prepare_input($HTTP_POST_VARS['firstname']);.

If (ACCOUNT_LAST_NAME != 'false') $lastname = tep_db_prepare_input($HTTP_POST_VARS['lastname']);.

If (ACCOUNT_DOB != 'false') $dob = tep_db_prepare_input($HTTP_POST_VARS['dob']);.

If (ACCOUNT_EMAIL != 'false') $email_address = tep_db_prepare_input($HTTP_POST_VARS['email_address']);.

If (ACCOUNT_COMPANY != 'false') $company = tep_db_prepare_input($HTTP_POST_VARS['company']);.

If (ACCOUNT_STREET != 'false') $street_address = tep_db_prepare_input($HTTP_POST_VARS['street_address']);.

If (ACCOUNT_SUBURB != 'false') $suburb = tep_db_prepare_input($HTTP_POST_VARS['suburb']);.

If (ACCOUNT_CITY != 'false') $city = tep_db_prepare_input($HTTP_POST_VARS['city']);.

If (ACCOUNT_STATE != 'false') {.

$state = tep_db_prepare_input($HTTP_POST_VARS['state']);.

If (isset($HTTP_POST_VARS['zone_id'])) {.

$zone_id = tep_db_prepare_input($HTTP_POST_VARS['zone_id']);.

} else {.

$zone_id = false;.

}.

}.

If (ACCOUNT_POSTCODE != 'false') $postcode = tep_db_prepare_input($HTTP_POST_VARS['postcode']);.

If (ACCOUNT_COUNTRY != 'false') $country = tep_db_prepare_input($HTTP_POST_VARS['country']);.

If (ACCOUNT_TEL != 'false') $telephone = tep_db_prepare_input($HTTP_POST_VARS['telephone']);.

If (ACCOUNT_FAX != 'false') $fax = tep_db_prepare_input($HTTP_POST_VARS['fax']);.

If (ACCOUNT_NEWSLETTER != 'false' && isset($HTTP_POST_VARS['newsletter'])) {.

// end Required Customer Details - Zappo - Added Checking for Details to display (true, false or optional).

$newsletter = tep_db_prepare_input($HTTP_POST_VARS['newsletter']);.

} else {.

$newsletter = false;.

}.

$password = tep_db_prepare_input($HTTP_POST_VARS['password']);.

$confirmation = tep_db_prepare_input($HTTP_POST_VARS['confirmation']);.

// Guest Account Start.

If ($guest_account) {.

$guest_pass = tep_create_random_value(ENTRY_PASSWORD_MIN_LENGTH, 'mixed');.

$password = tep_db_prepare_input($guest_pass);.

}.

// Guest Account End.

$error = false;.

If (ACCOUNT_GENDER == 'true') {.

If ( ($gender != 'm') && ($gender != 'f') ) {.

$error = true;.

$messageStack->add('create_account', ENTRY_GENDER_ERROR);.

}.

}.

// start Required Customer Details - Zappo - Added Checking for Required fields (For Form-Checking).

If ((ACCOUNT_FIRST_NAME == 'true') && (strlen($firstname) < ENTRY_FIRST_NAME_MIN_LENGTH)) {.

$error = true;.

$messageStack->add('create_account', ENTRY_FIRST_NAME_ERROR);.

}.

If ((ACCOUNT_LAST_NAME == 'true') && (strlen($lastname) < ENTRY_LAST_NAME_MIN_LENGTH)) {.

$error = true;.

$messageStack->add('create_account', ENTRY_LAST_NAME_ERROR);.

}.

If (ACCOUNT_DOB == 'true') {.

If (checkdate(substr(tep_date_raw($dob), 4, 2), substr(tep_date_raw($dob), 6, 2), substr(tep_date_raw($dob), 0, 4)) == false) {.

$error = true;.

$messageStack->add('create_account', ENTRY_DATE_OF_BIRTH_ERROR);.

}.

}.

If (ACCOUNT_EMAIL == 'true') {.

If (strlen($email_address) < ENTRY_EMAIL_ADDRESS_MIN_LENGTH) {.

$error = true;.

$messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_ERROR);.

} elseif (tep_validate_email($email_address) == false) {.

$error = true;.

$messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);.

} else {.

// Guest Account added guest_flag.

$check_email_query = tep_db_query("select count(*) as total from "TABLE_CUSTOMERS" where customers_email_address = '"tep_db_input($email_address)"' and guest_flag != '1'");.

$check_email = tep_db_fetch_array($check_email_query);.

If ($check_email['total'] > 0) {.

$error = true;.

$messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_ERROR_EXISTS);.

}.

}.

}.

If ((ACCOUNT_STREET == 'true') && (strlen($street_address) < ENTRY_STREET_ADDRESS_MIN_LENGTH)) {.

$error = true;.

$messageStack->add('create_account', ENTRY_STREET_ADDRESS_ERROR);.

}.

If ((ACCOUNT_POSTCODE == 'true') && (strlen($postcode) < ENTRY_POSTCODE_MIN_LENGTH)) {.

$error = true;.

$messageStack->add('create_account', ENTRY_POST_CODE_ERROR);.

}.

If ((ACCOUNT_CITY == 'true') && (strlen($city) < ENTRY_CITY_MIN_LENGTH)) {.

$error = true;.

$messageStack->add('create_account', ENTRY_CITY_ERROR);.

}.

If ((ACCOUNT_COUNTRY == 'true') && (is_numeric($country) == false)) {.

$error = true;.

$messageStack->add('create_account', ENTRY_COUNTRY_ERROR);.

}.

If (ACCOUNT_STATE == 'true') {.

$zone_id = 0;.

$check_query = tep_db_query("select count(*) as total from "TABLE_ZONES" where zone_country_id = '"(int)$country"'");.

$check = tep_db_fetch_array($check_query);.

$entry_state_has_zones = ($check['total'] > 0);.

If ($entry_state_has_zones == true) {.

$zone_query = tep_db_query("select distinct zone_id from "TABLE_ZONES" where zone_country_id = '"(int)$country"' and (zone_name = '"tep_db_input($state)"' or zone_code = '"tep_db_input($state)"')");.

If (tep_db_num_rows($zone_query) == 1) {.

$zone = tep_db_fetch_array($zone_query);.

$zone_id = $zone['zone_id'];.

} else {.

$error = true;.

$messageStack->add('create_account', ENTRY_STATE_ERROR_SELECT);.

}.

} else {.

If (strlen($state) < ENTRY_STATE_MIN_LENGTH) {.

$error = true;.

$messageStack->add('create_account', ENTRY_STATE_ERROR);.

}.

}.

}.

If ((ACCOUNT_TEL == 'true') && (strlen($telephone) < ENTRY_TELEPHONE_MIN_LENGTH)) {.

$error = true;.

$messageStack->add('create_account', ENTRY_TELEPHONE_NUMBER_ERROR);.

}.

// Guest Account Start.

If (guest_account == false) {.

If (strlen($password) < ENTRY_PASSWORD_MIN_LENGTH) {.

$error = true;.

$messageStack->add('create_account', ENTRY_PASSWORD_ERROR);.

} elseif ($password != $confirmation) {.

$error = true;.

$messageStack->add('create_account', ENTRY_PASSWORD_ERROR_NOT_MATCHING);.

}.

} // guest account end.

If ($error == false) {.

$sql_data_array = array('customers_firstname' => $firstname,.

'customers_lastname' => $lastname,.

'customers_email_address' => $email_address,.

'customers_telephone' => $telephone,.

'customers_fax' => $fax,.

'customers_newsletter' => $newsletter,.

'customers_password' => tep_encrypt_password($password));.

If (ACCOUNT_GENDER != 'false') $sql_data_array['customers_gender'] = $gender;.

If (ACCOUNT_DOB != 'false') $sql_data_array['customers_dob'] = tep_date_raw($dob);.

// Guest Account Start.

If ($guest_account) $sql_data_array['guest_flag'] = '1'; .

Tep_db_query("update "TABLE_CUSTOMERS" set customers_email_address = '@_"$email_address"' where customers_email_address = '"$email_address"' and guest_flag = '1'");.

Tep_db_query("update "TABLE_CUSTOMERS" set customers_lastname = '@_"$lastname"' where customers_email_address = '@_"$email_address"'");.

// Guest Account End.

Tep_db_perform(TABLE_CUSTOMERS, $sql_data_array);.

$customer_id = tep_db_insert_id();.

$sql_data_array = array('customers_id' => $customer_id,.

'entry_firstname' => $firstname,.

'entry_lastname' => $lastname,.

'entry_street_address' => $street_address,.

'entry_postcode' => $postcode,.

'entry_city' => $city,.

'entry_country_id' => $country);.

If (ACCOUNT_GENDER != 'false') $sql_data_array['entry_gender'] = $gender;.

If (ACCOUNT_COMPANY != 'false') $sql_data_array['entry_company'] = $company;.

If (ACCOUNT_SUBURB != 'false') $sql_data_array['entry_suburb'] = $suburb;.

If (ACCOUNT_STATE != 'false') {.

If ($zone_id > 0) {.

$sql_data_array['entry_zone_id'] = $zone_id;.

$sql_data_array['entry_state'] = '';.

} else {.

$sql_data_array['entry_zone_id'] = '0';.

$sql_data_array['entry_state'] = $state;.

}.

}.

Tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array);.

$address_id = tep_db_insert_id();.

Tep_db_query("update "TABLE_CUSTOMERS" set customers_default_address_id = '"(int)$address_id"' where customers_id = '"(int)$customer_id"'");.

// Guest Account Start.

If (!$guest_account) {.

Tep_db_query("insert into "TABLE_CUSTOMERS_INFO" (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values ('"tep_db_input($customer_id)"', '0', now())");.

} else {.

Tep_db_query("insert into "TABLE_CUSTOMERS_INFO" (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values ('"tep_db_input($customer_id)"', '-1', now())");.

}.

// Guest Account End.

If (SESSION_RECREATE == 'True') {.

Tep_session_recreate();.

}.

$customer_first_name = $firstname;.

$customer_default_address_id = $address_id;.

$customer_country_id = $country;.

$customer_zone_id = $zone_id;.

Tep_session_register('customer_id');.

Tep_session_register('customer_first_name');.

Tep_session_register('customer_default_address_id');.

Tep_session_register('customer_country_id');.

Tep_session_register('customer_zone_id');.

// restore cart contents.

$cart->restore_contents();.

// build the message content.

$name = $firstname' '$lastname;.

If (ACCOUNT_GENDER != 'false') {.

If ($gender == 'm') {.

$email_text = sprintf(EMAIL_GREET_MR, $lastname);.

} elseif ($gender == 'f') {.

$email_text = sprintf(EMAIL_GREET_MS, $lastname);.

} else {.

$email_text = sprintf(EMAIL_GREET_NONE, $firstname);.

// end Required Customer Details - Zappo - Added Checking for Details to display (true, false or optional).

}.

} else {.

$email_text = sprintf(EMAIL_GREET_NONE, $firstname);.

}.

// Guest Account Start.

If ($guest_account == true) {.

Tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));.

} else {.

$email_text .= EMAIL_WELCOMEEMAIL_TEXTEMAIL_CONTACTEMAIL_WARNING;.

Tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);.

Tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL'));.

}.

// Guest Account End.

}.

}.

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));.

?>.

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">.

<html <?php echo HTML_PARAMS; ?>>.

<head>.

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">.

<title><?php echo TITLE; ?></title>.

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER)DIR_WS_CATALOG; ?>">.

<link rel="stylesheet" type="text/css" href="stylesheet.css">.

<?php require('includes/form_check.js.php'); ?>.

</head>.

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">.

<! header //>.

<?php require(DIR_WS_INCLUDES'header.php'); ?>.

<! header_eof //>.

<! body //>.

<table border="0" width="100%" cellspacing="3" cellpadding="3">.

<tr>.

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">.

<! left_navigation //>.

<?php require(DIR_WS_INCLUDES'column_left.php'); ?>.

<! left_navigation_eof //>.

</table></td>.

<! body_text Guest Account added in the form-tag below//>.

<td width="100%" valign="top"><?php echo tep_draw_form('create_account', tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'), 'post', 'onSubmit="return check_form(create_account);"')tep_draw_hidden_field('action', 'process')tep_draw_hidden_field('guest_account', $guest_account); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td class="pageHeading"><?php // Added Guest Account.

If ($guest_account) {.

Echo HEADING_TITLE_GUEST;.

} else {.

Echo HEADING_TITLE;.

}.

?></td>.

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES'table_background_account.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>.

</tr>.

</table></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td class="smallText"><br><?php echo sprintf(TEXT_ORIGIN_LOGIN, tep_href_link(FILENAME_LOGIN, tep_get_all_get_params(), 'SSL')); ?></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<?php.

If ($messageStack->size('create_account') > 0) {.

?>.

<tr>.

<td><?php echo $messageStack->output('create_account'); ?></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<?php.

}.

?>.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td class="main"><b><?php echo CATEGORY_PERSONAL; ?></b></td>.

<td class="inputRequirement" align="right"><?php echo FORM_REQUIRED_INFORMATION; ?></td>.

</tr>.

</table></td>.

</tr>.

<tr>.

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">.

<tr class="infoBoxContents">.

<td><table border="0" cellspacing="2" cellpadding="2">.

<?php.

// start Required Customer Details - Zappo - Added Checking for fields 2 B Displayed.

If (ACCOUNT_GENDER != 'false') {.

?>.

<tr>.

<td class="main"><?php echo ENTRY_GENDER; ?></td>.

<td class="main"><?php echo tep_draw_radio_field('gender', 'm')'&nbsp;&nbsp;'MALE'&nbsp;&nbsp;'tep_draw_radio_field('gender', 'f')'&nbsp;&nbsp;'FEMALE'&nbsp;'(ACCOUNT_GENDER == 'true' && tep_not_null(ENTRY_GENDER_TEXT) ? '<span class="inputRequirement">'ENTRY_GENDER_TEXT'</span>': ''); ?></td>.

</tr>.

<?php.

}.

If (ACCOUNT_FIRST_NAME != 'false') {.

?>.

<tr>.

<td class="main"><?php echo ENTRY_FIRST_NAME; ?></td>.

<td class="main"><?php echo tep_draw_input_field('firstname')'&nbsp;'(ACCOUNT_FIRST_NAME == 'true' && tep_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="inputRequirement">'ENTRY_FIRST_NAME_TEXT'</span>': ''); ?></td>.

</tr>.

<?php.

}.

If (ACCOUNT_LAST_NAME != 'false') {.

?>.

<tr>.

<td class="main"><?php echo ENTRY_LAST_NAME; ?></td>.

<td class="main"><?php echo tep_draw_input_field('lastname')'&nbsp;'(ACCOUNT_LAST_NAME == 'true' && tep_not_null(ENTRY_LAST_NAME_TEXT) ? '<span class="inputRequirement">'ENTRY_LAST_NAME_TEXT'</span>': ''); ?></td>.

</tr>.

<?php.

}.

If (ACCOUNT_DOB != 'false') {.

?>.

<tr>.

<td class="main"><?php echo ENTRY_DATE_OF_BIRTH; ?></td>.

<td class="main"><?php echo tep_draw_input_field('dob')'&nbsp;'(ACCOUNT_DOB == 'true' && tep_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="inputRequirement">'ENTRY_DATE_OF_BIRTH_TEXT'</span>': ''); ?></td>.

</tr>.

<?php.

}.

If (ACCOUNT_EMAIL != 'false') {.

?>.

<tr>.

<td class="main"><?php echo ENTRY_EMAIL_ADDRESS; ?></td>.

<td class="main"><?php echo tep_draw_input_field('email_address')'&nbsp;'(ACCOUNT_EMAIL == 'true' && tep_not_null(ENTRY_EMAIL_ADDRESS_TEXT) ? '<span class="inputRequirement">'ENTRY_EMAIL_ADDRESS_TEXT'</span>': ''); ?></td>.

</tr>.

<?php.

}.

?>.

</table></td>.

</tr>.

</table></td>.

</tr>.

<?php.

If (ACCOUNT_COMPANY != 'false') {.

?>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td class="main"><b><?php echo CATEGORY_COMPANY; ?></b></td>.

</tr>.

<tr>.

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">.

<tr class="infoBoxContents">.

<td><table border="0" cellspacing="2" cellpadding="2">.

<tr>.

<td class="main"><?php echo ENTRY_COMPANY; ?></td>.

<td class="main"><?php echo tep_draw_input_field('company')'&nbsp;'(ACCOUNT_COMPANY == 'true' && tep_not_null(ENTRY_COMPANY_TEXT) ? '<span class="inputRequirement">'ENTRY_COMPANY_TEXT'</span>': ''); ?></td>.

<?php // end Required Customer Details - Zappo - Added Checking for fields 2 B Displayed ?>.

</tr>.

</table></td>.

</tr>.

</table></td>.

</tr>.

<?php.

}.

// start Required Customer Details - Zappo - Added Checking for Address Details (Hide all if no address entry is found).

If (ACCOUNT_STREET == 'false' && ACCOUNT_SUBURB == 'false' && ACCOUNT_POSTCODE == 'false' && ACCOUNT_CITY == 'false' && ACCOUNT_STATE == 'false' && ACCOUNT_COUNTRY == 'false') {.

} else {.

?>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td class="main"><b><?php echo CATEGORY_ADDRESS; ?></b></td>.

</tr>.

<tr>.

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">.

<tr class="infoBoxContents">.

<td><table border="0" cellspacing="2" cellpadding="2">.

<?php.

If (ACCOUNT_STREET != 'false') {.

?>.

<tr>.

<td class="main"><?php echo ENTRY_STREET_ADDRESS; ?></td>.

<td class="main"><?php echo tep_draw_input_field('street_address')'&nbsp;'(ACCOUNT_STREET == 'true' && tep_not_null(ENTRY_STREET_ADDRESS_TEXT) ? '<span class="inputRequirement">'ENTRY_STREET_ADDRESS_TEXT'</span>': ''); ?></td>.

</tr>.

<?php.

}.

If (ACCOUNT_SUBURB != 'false') {.

?>.

<tr>.

<td class="main"><?php echo ENTRY_SUBURB; ?></td>.

<td class="main"><?php echo tep_draw_input_field('suburb')'&nbsp;'(ACCOUNT_SUBURB == 'true' && tep_not_null(ENTRY_SUBURB_TEXT) ? '<span class="inputRequirement">'ENTRY_SUBURB_TEXT'</span>': ''); ?></td>.

</tr>.

<?php.

}.

If (ACCOUNT_CITY != 'false') {.

?>.

<tr>.

<td class="main"><?php echo ENTRY_CITY; ?></td>.

<td class="main"><?php echo tep_draw_input_field('city')'&nbsp;'(ACCOUNT_CITY == 'true' && tep_not_null(ENTRY_CITY_TEXT) ? '<span class="inputRequirement">'ENTRY_CITY_TEXT'</span>': ''); ?></td>.

</tr>.

<?php.

}.

If (ACCOUNT_STATE != 'false') {.

?>.

<tr>.

<td class="main"><?php echo ENTRY_STATE; ?></td>.

<td class="main">.

<?php.

If ($process == true) {.

If ($entry_state_has_zones == true) {.

$zones_array = array();.

$zones_query = tep_db_query("select zone_name from "TABLE_ZONES" where zone_country_id = '"(int)$country"' order by zone_name");.

While ($zones_values = tep_db_fetch_array($zones_query)) {.

$zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);.

}.

Echo tep_draw_pull_down_menu('state', $zones_array);.

} else {.

Echo tep_draw_input_field('state');.

}.

} else {.

Echo tep_draw_input_field('state');.

}.

If ((ACCOUNT_STATE != 'optional') && tep_not_null(ENTRY_STATE_TEXT)) echo '&nbsp;<span class="inputRequirement">'ENTRY_STATE_TEXT;.

?>.

</td>.

</tr>.

<?php.

}.

If (ACCOUNT_POSTCODE != 'false') {.

?>.

<tr>.

<td class="main"><?php echo ENTRY_POST_CODE; ?></td>.

<td class="main"><?php echo tep_draw_input_field('postcode')'&nbsp;'(ACCOUNT_POSTCODE == 'true' && tep_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement">'ENTRY_POST_CODE_TEXT'</span>': ''); ?></td>.

</tr>.

<?php.

}.

If (ACCOUNT_COUNTRY != 'false') {.

?>.

<tr>.

<td class="main"><?php echo ENTRY_COUNTRY; ?></td>.

<td class="main"><?php echo tep_get_country_list('country')'&nbsp;'(ACCOUNT_COUNTRY == 'true' && tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">'ENTRY_COUNTRY_TEXT'</span>': ''); ?></td>.

</tr>.

<?php.

}.

?>.

<?php // start Required Customer Details - Zappo - Added Checking for Address Details (Hide all if no address entry is found) ?>.

</table></td>.

</tr>.

</table></td>.

</tr>.

<?php.

}.

// start Required Customer Details - Zappo - Added Checking for Contact Details (Hide all if no Number entry is found).

If (ACCOUNT_TEL == 'false' && ACCOUNT_FAX == 'false') {.

} else {.

?>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td class="main"><b><?php echo CATEGORY_CONTACT; ?></b></td>.

</tr>.

<tr>.

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">.

<tr class="infoBoxContents">.

<td><table border="0" cellspacing="2" cellpadding="2">.

<?php.

If (ACCOUNT_TEL != 'false') {.

?>.

<tr>.

<td class="main"><?php echo ENTRY_TELEPHONE_NUMBER; ?></td>.

<td class="main"><?php echo tep_draw_input_field('telephone')'&nbsp;'(ACCOUNT_TEL == 'true' && tep_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="inputRequirement">'ENTRY_TELEPHONE_NUMBER_TEXT'</span>': ''); ?></td>.

</tr>.

<?php.

}.

If (ACCOUNT_FAX != 'false') {.

?>.

<tr>.

<td class="main"><?php echo ENTRY_FAX_NUMBER; ?></td>.

<td class="main"><?php echo tep_draw_input_field('fax')'&nbsp;'(ACCOUNT_FAX == 'true' && tep_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span class="inputRequirement">'ENTRY_FAX_NUMBER_TEXT'</span>': ''); ?></td>.

</tr>.

<?php.

}.

?>.

</table></td>.

</tr>.

</table></td>.

</tr>.

<?php.

}.

// - Zappo - Added Checking for Options Details (Hide all if no Newsletter entry is found).

If (ACCOUNT_NEWSLETTER != 'false') {.

?>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<?php.

If ($guest_account == false) { // Not a Guest Account.

?>.

<tr>.

<td class="main"><b><?php echo CATEGORY_OPTIONS; ?></b></td>.

</tr>.

<tr>.

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">.

<tr class="infoBoxContents">.

<td><table border="0" cellspacing="2" cellpadding="2">.

<tr>.

<td class="main"><?php echo ENTRY_NEWSLETTER; ?></td>.

<td class="main"><?php echo tep_draw_checkbox_field('newsletter', '1')'&nbsp;'(ACCOUNT_NEWSLETTER == 'true' && tep_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="inputRequirement">'ENTRY_NEWSLETTER_TEXT'</span>': ''); ?></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

</tr>.

<?php.

}.

?>.

<?php // start Required Customer Details - Zappo - Added Checking for Contact Details (Hide all if no Number entry is found) ?>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td class="main"><b><?php echo CATEGORY_PASSWORD; ?></b></td>.

</tr>.

<tr>.

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">.

<tr class="infoBoxContents">.

<td><table border="0" cellspacing="2" cellpadding="2">.

<tr>.

<td class="main"><?php echo ENTRY_PASSWORD; ?></td>.

<td class="main"><?php echo tep_draw_password_field('password')'&nbsp;'(tep_not_null(ENTRY_PASSWORD_TEXT) ? '<span class="inputRequirement">'ENTRY_PASSWORD_TEXT'</span>': ''); ?></td>.

</tr>.

<tr>.

<td class="main"><?php echo ENTRY_PASSWORD_CONFIRMATION; ?></td>.

<td class="main"><?php echo tep_draw_password_field('confirmation')'&nbsp;'(tep_not_null(ENTRY_PASSWORD_CONFIRMATION_TEXT) ? '<span class="inputRequirement">'ENTRY_PASSWORD_CONFIRMATION_TEXT'</span>': ''); ?></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<?php.

} // Guest Account end.

?>.

<tr>.

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">.

<tr class="infoBoxContents">.

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

<td><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

</tr>.

</table></form></td>.

<! body_text_eof //>.

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">.

<! right_navigation //>.

<?php //include(DIR_WS_INCLUDES'column_right.php'); ?>.

<! right_navigation_eof //>.

</table></td>.

</tr>.

</table>.

<! body_eof //>.

<! footer //>.

<?php include(DIR_WS_INCLUDES'footer.php'); ?>.

<! footer_eof //>.

<br>.

</body>.

</html>.

<?php require(DIR_WS_INCLUDES'application_bottom.php'); ?>.

Can anyone spot what is going on, or tell me where else to look? Thanks,.

Bruce..

Comment #8

<right-click> and "View source" on the page..

Look at the last line in the HTML source..

That should give you a clue where to look...

Comment #9


This question was taken from a support group/message board and re-posted here so others can learn from it.