Hello,
How do I pass $POST variables to a popup window? payment_method.php appears in popup window. However the $POST['shipping_method'] is not getting passed. I tried to do the following:
shipping_method.php
<form action="" method="post">
<div style="position:relative; margin:40px;">
<div class="form_label2">Shipping Method: </div>
<div class="form_element" style="left:15%;">
<select name="shipping_method">
<?php
while ($row = mysql_fetch_array($result))
{ echo "<option value='".$row["shipping_method"]."'>".$row["shipping_method"]."</option>";
}
?>
</select>
</div>
<!--to display a small window containing shipping_details.php on top of shipping.php page-->
<div style="bottom:20%;left:5%;padding:4%; padding-left:2%">See details about <a href='#' onclick="window.open('shipping_details.php','win1','width=600,height=300')">shipping and handling charges</a>
<div style='position:absolute; bottom:30%; right:490px;'>
<input type='button' value='Continue' onclick="window.open('payment_method.php','popup', 'width=100, height=100, statusbar=0, location=0, menubar=0, toolbar=0')"/>
</div>
</div>
</form>
payment_method.php
echo "Shipping Method: ".$_POST['shipping_method'];
however I'm getting the following error.
Notice: Undefined index: shipping_method in C:\bookstore\payment_method.php on line 20
Shipping Method:
Thank you.