View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Syntax error after doing coupon tutorial

Thread began 9/26/2009 9:17 pm by Timespider | Last modified 9/28/2009 4:03 pm by Timespider | 631 views | 2 replies

Timespider

Syntax error after doing coupon tutorial

Hello, I have done the tutorial located here & read the forum. It was easy to follow but I'm getting this syntax on my cart page.

  Parse error: syntax error, unexpected '<' in /home/onlinemo/public_html/olmc_viewcart.php on line 13  


Here is some of the code I think youll need to see, including line 13, & I can see that line 10 is incorrect in the way it's been inserted(no space between php tag & <waecdeletetemp>) I have changed it, but thought you will want to see what the wysiwyg is doing.

php:
<?php
//MX Widgets3 include
require_once('includes/wdg/WDG.php');
<
waecdeletetemp>?>
<?php
if (!session_id()) session_start();
if((((isset(
$_POST["txtPromoCode"]))?$_POST["txtPromoCode"]:"") != ""))     {
  
$_SESSION["PromoCode"] = "".((isset($_POST["txtPromoCode"]))?$_POST["txtPromoCode"]:"")  ."";
}
?>
<?php<waecdeletetemp>
?>
<?php
$cartOnlineMC
->GetContent();
?>
<?php



What is going on? I'm positive I've done it right, & I was only starting here to learn the technique, so I can move on to a dynamic discounts system that I have in the DB

Thanks for any help. Chris

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...