close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Add to cart button doesn't submit

Thread began 4/12/2013 10:36 am by elewis93815 | Last modified 4/12/2013 11:22 am by Jason Byrnes | 477 views | 2 replies |

elewis93815

Add to cart button doesn't submit

I recently set up 2 new e comm pages. The products are there and everything looks good except when I try to add anything from these two new pages, it doesn't submit anywhere???? The pages are: www.cup-cake.com/internal.php and www.cup-cake.com/gluten_free.php

I'll attach the files as well.

Thanks for any help!

Attached Files
WA_NEW PAGES.zip
Sign in to reply to this post

Jason ByrnesWebAssist

on both pages, there is no form around the add to cart button code.

for example, on the internal.php page, the add add top cart form:

php:
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0">

                  <tr>
                    <td width="138" rowspan="2" align="left" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
                    <td width="462" align="left" valign="top" bgcolor="#FFFFFF"><p align="left"><?php echo $row_rsInternal['ITEM']; ?><br />
                      $<?php echo $row_rsInternal['PRICE']; ?> <br />
                      <input type="hidden" name="cupcake1_11_ID_Add" value="<?php echo $row_rsInternal["PRODUCT_ID"]; ?>" >
                      <input type="text" name="cupcake1_11_Quantity_Add" value="1" size="4" >
                      <input type="submit" class="eC_FormButton" value="Add to Cart" name="cupcake1_11_ATC"><br />
                    </p></td>
                  </tr>
                  <tr>
                    <td align="left" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
                  </tr>
                </table>




does not have a form tag around it, the form tag is missing. for a form to bale to submit, there must be a form tag:

php:
<form  action="<?php echo ($_SERVER["PHP_SELF"].(isset($_SERVER["QUERY_STRING"])?"?".htmlentities($_SERVER["QUERY_STRING"]):""));?>" method="post">

<table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="138" rowspan="2" align="left" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
                    <td width="462" align="left" valign="top" bgcolor="#FFFFFF"><p align="left"><?php echo $row_rsInternal['ITEM']; ?><br />
                      $<?php echo $row_rsInternal['PRICE']; ?> <br />
                      <input type="hidden" name="cupcake1_11_ID_Add" value="<?php echo $row_rsInternal["PRODUCT_ID"]; ?>" >
                      <input type="text" name="cupcake1_11_Quantity_Add" value="1" size="4" >
                      <input type="submit" class="eC_FormButton" value="Add to Cart" name="cupcake1_11_ATC"><br />
                    </p></td>
                  </tr>
                  <tr>
                    <td align="left" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
                  </tr>
                </table></form>
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...