SHOPPING CART HELL
I am working on my bothers website, he is a photographer, what he wanted on the site was a gallery to show off the pictures and then a shopping cart that people maybe able to purchase copies of there pictures.
so i have up the gallery and installed the shopping cart.
but here is the hell that i am having, i can not get the cart to work.
when you clikc on add to cart it will not load the cart page.
here is my code and a link to the site. http://www.twistedriver.com/gallery/HWGroup/4009002004_G
<?php
/* $Id: inline_photo.frame.default,v 1.5 2004/03/02 14:10:38 jenst Exp
$ */
?>
<?php
include (dirname(__FILE__) . '/inline_imagewrap.inc');
?>
<p>
<table width=100% bgcolor=#666666 border=0 cellpadding=0 cellspacing=0>
<tr align=center><td>
<FORM method=POST
action="http://www.twistedriver.com/cgi-bin/mcart/mof.cgi">
<INPUT type="hidden" name="postmode" value="QUANTITYBOXES">
<table width="400" bgcolor=#666666 border=0 cellpadding=2
cellspacing=2>
<tr align=center>
<td>Size</td><td>Price</td><td>Qty</td><td>Options</td></tr>
<tr align=center>
<td bgcolor=#666666>8x10</td>
<td bgcolor=#666666>$12.50</td>
<td bgcolor=#666666>
<INPUT type="hidden" name="order1" value="8x10----[a
href=http://www.twistedriver.com/gallery/<?php
print($gallery->session->albumName) ?>/<?php
print($gallery->album->getPhotoId($GLOBALS['index'])) ?>][img border=0
src=http://www.twistedriver.com/albums/<?php
print($gallery->session->albumName)
?>/<?php print($gallery->album->getPhotoId($GLOBALS['index']))
?>.thumb.jpg][/a][br][li]Image #:<?php
print($gallery->album->getPhotoId($GLOBALS['index']))
?>----12.50----0.005----1">
<INPUT type="text" name="quantity1" size="1">
</td>
<td bgcolor=#666666>
<SELECT name="Color" size="1">
<OPTION value="Color">Color
<OPTION value="B&W">Black & White
<OPTION value="Sepia">Sepia
</option>
</SELECT>
</td>
</tr>
<tr align=center>
<td bgcolor=#666666>2-5X7</td>
<td bgcolor=#666666>$12.50</td>
<td bgcolor=#666666><INPUT type="hidden" name="order2" value="5X7----[a
href=http://www.twistedriver.com/gallery/<?php
print($gallery->session->albumName) ?>/<?php
print($gallery->album->getPhotoId($GLOBALS['index'])) ?>][img border=0
src=http://www.twistedriver.com/albums/<?php
print($gallery->session->albumName)
?>/<?php print($gallery->album->getPhotoId($GLOBALS['index']))
?>.thumb.jpg][/a][br][li]Image #:<?php
print($gallery->album->getPhotoId($GLOBALS['index']))
?>----12.50----0.01----1">
<INPUT type="text" name="quantity2" size="1" >
</td>
<td bgcolor=#666666>
<SELECT name="Color" size="1">
<OPTION value="Color">Color
<OPTION value="B&W">Black & White
<OPTION value="Sepia">Sepia
</option>
</SELECT>
</td></tr>
<tr align=center>
<td bgcolor=#666666>4-4x5</td>
<td bgcolor=#666666>$12.50</td>
<td bgcolor=#666666>
<INPUT type="hidden" name="order3" value="4x5----[a
href=http://www.twisteriver.com/gallery/<?php
print($gallery->session->albumName) ?>/<?php
print($gallery->album->getPhotoId($GLOBALS['index'])) ?>][img border=0
src=http://www.twisterriver.com/albums/<?php
print($gallery->session->albumName)
?>/<?php print($gallery->album->getPhotoId($GLOBALS['index']))
?>.thumb.jpg][/a][br][li]Image #:<?php
print($gallery->album->getPhotoId($GLOBALS['index']))
?>----12.50----0.05----1">
<INPUT type="text" name="quantity3" size="1">
</td>
<td bgcolor=#666666>
<SELECT name="Color" size="1">
<OPTION value="Color">Color
<OPTION value="B&W">Black & White
<OPTION value="Sepia">Sepia
</option>
</SELECT>
</td></tr>
<tr align=center>
<td bgcolor=#666666>8-Wallets</td>
<td bgcolor=#666666>$12.50</td>
<td bgcolor=#666666>
<INPUT type="hidden" name="order4" value="8 Wallets----[a
href=http://www.twistedriver.com/gallery/<?php
print($gallery->session->albumName) ?>/<?php
print($gallery->album->getPhotoId($GLOBALS['index'])) ?>][img border=0
src=http://www.twistedriver.com/albums/<?php
print($gallery->session->albumName)
?>/<?php print($gallery->album->getPhotoId($GLOBALS['index']))
?>.thumb.jpg][/a][br][li]Image #:<?php
print($gallery->album->getPhotoId($GLOBALS['index']))
?>----12.50----0.05----1">
<INPUT type="text" name="quantity4" size="1">
</td>
<td bgcolor=#666666>
<SELECT name="Color" size="1">
<OPTION value="Color">Color
<OPTION value="B&W">Black & White
<OPTION value="Sepia">Sepia
</option>
</SELECT>
</td></tr>
<tr align=center>
<td bgcolor=#666666>11X14</td>
<td bgcolor=#666666>$40.00</td>
<td bgcolor=#666666>
<INPUT type="hidden" name="order5" value="11X14----[a
href=http://www.twistedriver.com/gallery/<?php
print($gallery->session->albumName) ?>/<?php
print($gallery->album->getPhotoId($GLOBALS['index'])) ?>][img border=0
src=http://www.twistedriver.com/albums/<?php
print($gallery->session->albumName)
?>/<?php print($gallery->album->getPhotoId($GLOBALS['index']))
?>.thumb.jpg][/a][br][li]Image #:<?php
print($gallery->album->getPhotoId($GLOBALS['index']))
?>----40.00----0.1----1">
<INPUT type="text" name="quantity5" size="1">
</td>
<td bgcolor=#666666>
<SELECT name="Color" size="1">
<OPTION value="Color">Color
<OPTION value="B&W">Black & White
<OPTION value="Sepia">Sepia
</option>
</SELECT>
</td></tr>
<tr align="center"><td colspan=4>
<table width=100%>
<tr align=center><td>
<input type="Submit" value="Add to Cart"></FORM>
</td><td>
<form method=POST
action="http://www.twistedriver.com/cgi-bin/mcart/mof.cgi?viewcart">
<input type="Submit" value="View Cart">
</form>
</td>
<td>
<form name="sendme" method="POST"
action="http://www.twistedriver.com/gallery/gallery_cards_send.php">
<INPUT TYPE=HIDDEN NAME=photo_name
VALUE="http://www.twistedriver.com/albums/<?php
print($gallery->session->albumName) ?>/<?php
print($gallery->album->getPhotoId($GLOBALS['index'])) ?>.jpg">
</form>
</td></tr>
</table>
</td></tr>
</table>
</td></tr>
</table>
if anyone can help me i would be very grateful.
EDIT * sorry the code will not behave for me so it is not showing on the page * code does not like me right now
