close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Undefined Index & Undefined Variable Error Messages

Thread began 2/21/2011 11:48 pm by lynny | Last modified 2/22/2011 9:43 am by Jason Byrnes | 1005 views | 1 replies |

lynny

Undefined Index & Undefined Variable Error Messages

Hi i created one updatable add to cart button for each page of my site, as i am selling each product individually from a separate page. Each page that i have tested the add to cart button on is throwing up the same error message below;

"Notice: Undefined index: cocolynnshoppingcart_1_ID_Add in C:\xampp\htdocs\specials1.php on line 56"

"Notice: Undefined variable: ATC_itemQuantity in C:\xampp\htdocs\specials1.php on line 73"

Any ideas how i can resolve these error messages and get the add to cart buttons to work?

I have zipped up one of the pages and attached.

Any help appreciated!

Cheers

Attached Files
specials1.zip
Sign in to reply to this post

Jason ByrnesWebAssist

looking at lines 204 -209:

php:
</form>

        </div>

<div style="width:86px; float:left;  #00ff00">
  <input type="hidden" name="cocolynnshoppingcart_1_ID_Add" value="<?php echo $row_Products["ProductID"]; ?>" />
  <input type="text" name="cocolynnshoppingcart_1_Quantity_Add" value="1" size="4" />




your ID and quantity elements have been moved outside of the form. change that to:

php:
<input type="hidden" name="cocolynnshoppingcart_1_ID_Add" value="<?php echo $row_Products["ProductID"]; ?>" />

  <input type="text" name="cocolynnshoppingcart_1_Quantity_Add" value="1" size="4" />
</form>
        </div>

<div style="width:86px; float:left;  #00ff00">
Sign in to reply to this post

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...