I'm going to claw my brain out soon. Is the onclick and/or popup function interfering with the form functioning? Because everything does what it's supposed to (child window closes, parent window reloads to show cart) except that the cart is empty when things should be getting added.
Here's my code (and I admit I have no idea what I'm doing):
<html>
<head>
<title>jewelery</title>
<body link="#000000" vlink="#000000" alink="#000000">
<STYLE type="text/css">
<!--
A { text-decoration:none }
-->
</STYLE>
<HEAD>
</head>
<body bgcolor="#000000" TEXT="000000">
<table border="0" bordercolor="" style="background-color:#000000" width="100%" cellpadding="" cellspacing="">
<tr>
<td><img src="1.jpg"></td>
<td> </td>
<td>
<form method=\"post\" action=\"ShoppingCart.php\" onclick="window.opener.location.href='ShoppingCart.php'; window.close();" >
Item Title: <strong><font color="E3E5CD">cool spiral pendant</font></strong><br />
Item Serial Number: <strong>pend01</strong><br />
<font color="E3E5CD">Icy turquoise glass wrapped in a steel spiral. 1.5 inches.</font><br />
<br />
Item Price: <strong><font color="E3E5CD">$30.00</font></strong><br />
Item Shipping: <strong>$5.00</strong><br />
Item Additional Shipping: <strong>$0.00</strong><br />
<input name="Title" type="hidden" value="cool spiral pendant" />
<input name="SerialNum" type="hidden" value="pend01" />
<input name="Price" type="hidden" value="30.00" />
<input name="Shipping1" type="hidden" value="5.00" />
<input name="Shipping2" type="hidden" value="0.00" />
<input name="cmd" type="hidden" id="cmd" value="1" />
<input type="submit" name="Submit" value="Add To Cart" / >
</form>
</td>
</tr>
</table>
<center>
</body>
</html>
Here's my code (and I admit I have no idea what I'm doing):
<html>
<head>
<title>jewelery</title>
<body link="#000000" vlink="#000000" alink="#000000">
<STYLE type="text/css">
<!--
A { text-decoration:none }
-->
</STYLE>
<HEAD>
</head>
<body bgcolor="#000000" TEXT="000000">
<table border="0" bordercolor="" style="background-color:#000000" width="100%" cellpadding="" cellspacing="">
<tr>
<td><img src="1.jpg"></td>
<td> </td>
<td>
<form method=\"post\" action=\"ShoppingCart.php\" onclick="window.opener.location.href='ShoppingCart.php'; window.close();" >
Item Title: <strong><font color="E3E5CD">cool spiral pendant</font></strong><br />
Item Serial Number: <strong>pend01</strong><br />
<font color="E3E5CD">Icy turquoise glass wrapped in a steel spiral. 1.5 inches.</font><br />
<br />
Item Price: <strong><font color="E3E5CD">$30.00</font></strong><br />
Item Shipping: <strong>$5.00</strong><br />
Item Additional Shipping: <strong>$0.00</strong><br />
<input name="Title" type="hidden" value="cool spiral pendant" />
<input name="SerialNum" type="hidden" value="pend01" />
<input name="Price" type="hidden" value="30.00" />
<input name="Shipping1" type="hidden" value="5.00" />
<input name="Shipping2" type="hidden" value="0.00" />
<input name="cmd" type="hidden" id="cmd" value="1" />
<input type="submit" name="Submit" value="Add To Cart" / >
</form>
</td>
</tr>
</table>
<center>
</body>
</html>