chrometweaks.org

I've registered my domain with iPage. Now What? (Website Design)?

Click Here To View All Answers...


First of all I've registered my domain with iPage. Now What? (Website Design)? Looking forward for any comment. Another question... Instead of the form, I get this error:.

Parse error: parse error, expecting `','' or `';'' in /home/virtual/site48/fst/var/www/html/catalog/includes/modules/checkout_new_address.php on line 96.

This is the line:.

   if (tep_not_null(ENTRY_STATE_TEXT)) echo ' <span class="inputRequirement">'ENTRY_STATE_TEXT'</span>': ''); ?>    </td>.

Can anyone help?..

Comments (58)

That's a good question. I'm not sure what is the answer. I'll do some investigation and get back to you if I find an useful answer. You should email the people at iPage as they probably could give you an answer..

Comment #1

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

This is Line 96 on an unmodified includes/modules/checkout_new_address.php.

Hope this helps...

Comment #2

Thanks for trying, but I fixed that and it's still doing the same thing. This is line 96 now:.

 if (tep_not_null(ENTRY_STATE_TEXT)) echo ' <span class=\"inputRequirement\">'ENTRY_STATE_TEXT'</span>': ''); ?>    </td>..

Comment #3

Here is the entire file:.

<?php.

/*.

$Id: checkout_new_address.php,v 1.4 2003/06/09 22:49:57 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright (c) 2003 osCommerce.

Released under the GNU General Public License.

*/.

If (!isset($process)) $process = false;.

?>.

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

<?php.

If (ACCOUNT_GENDER == 'true') {.

If (isset($gender)) {.

$male = ($gender == 'm') ? true : false;.

$female = ($gender == 'f') ? true : false;.

} else {.

$male = false;.

$female = false;.

}.

?>.

<tr>.

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

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

</tr>.

<?php.

}.

?>.

<tr>.

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

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

</tr>.

<tr>.

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

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

</tr>.

<?php.

If (ACCOUNT_COMPANY == 'true') {.

?>.

<tr>.

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

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

</tr>.

<?php.

}.

?>.

<tr>.

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

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

</tr>.

<?php.

If (ACCOUNT_SUBURB == 'true') {.

?>.

<tr>.

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

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

</tr>.

<?php.

}.

?>.

<tr>.

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

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

</tr>.

<tr>.

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

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

</tr>.

<?php.

If (ACCOUNT_STATE == 'true') {.

?>.

<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 (tep_not_null(ENTRY_STATE_TEXT)) echo '&nbsp;<span class="inputRequirement">'ENTRY_STATE_TEXT;.

?>.

</td>.

</tr>.

<?php.

}.

?>.

<tr>.

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

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

</tr>.

</table>..

Comment #4

Replacing the entire file. I don't know how I messed it up but it works now!..

Comment #5

Instead of the form, I get this error:.

Parse error: parse error, expecting `','' or `';'' in /home/virtual/site48/fst/var/www/html/catalog/includes/modules/checkout_new_address.php on line 96.

This is the line:.

   if (tep_not_null(ENTRY_STATE_TEXT)) echo ' <span class="inputRequirement">'ENTRY_STATE_TEXT'</span>': ''); ?>    </td>.

Can anyone help?..

Comment #6

Needs to be:.

   if (tep_not_null(ENTRY_STATE_TEXT)) echo ' <span class=\"inputRequirement\">'ENTRY_STATE_TEXT'</span>': ''); ?>    </td>.

You didn't escape the quotes...

Comment #7


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