hello,
from oscommerce
i have this code to test for login , if logged in then customer can fill out a form . so i am changing things like this
<?php echo $messageStack->output('contact'); ?>
to
'.php echo $messageStack->output('contact').'
i am stuck on this one getting this
<?php
if ($messageStack->size('contact') > 0) {
?>
when changed to
'.
if ($messageStack->size('contact') > 0) {
.'
error:
Parse error: syntax error, unexpected T_IF, expecting ',' or ';' in /home/comta3/public_html/store/buybacks.php on line 124 here is my login test.
<?php
if ( !tep_session_is_registered('customer_id') )
{
// code for NON-LOGGED-IN goes here
echo 'to use the buyback form you must be loggedin!';
}
else
{
// code for LOGGED-IN goes here
echo '
';
}
?>
if there is an easier way to handle this any suggestions welcome, becasue there are like 30 of these that need to be changed,
thanks craig