potatozero
asked on
pop up window
hello, i just wanted to ask for help about my code. what i wanted to happen is that when i click the button "add to cart" a pop up window will appear. here's my code:
<form action="menu.php">
<?php
include ("db.php");
$data = mysql_query("SELECT price,prod_desc FROM product WHERE prod_no='1'") or die(mysql_error());
while($row= mysql_fetch_array( $data )){
echo"<tr><td>".$row['prod_ desc'] . "</td>";
echo"<td>"."<input type='number' name='qty' min='0' />"."</td>";
echo"<td>".$row['price'] . "</td>"; }
?>
<div id="cart">
<td><input type="submit" value="Add to cart" class="btnAddAction"/></td ></tr>
</div>
</form>
<form action="menu.php">
<?php
include ("db.php");
$data = mysql_query("SELECT price,prod_desc FROM product WHERE prod_no='1'") or die(mysql_error());
while($row= mysql_fetch_array( $data )){
echo"<tr><td>".$row['prod_
echo"<td>"."<input type='number' name='qty' min='0' />"."</td>";
echo"<td>".$row['price'] . "</td>"; }
?>
<div id="cart">
<td><input type="submit" value="Add to cart" class="btnAddAction"/></td
</div>
</form>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.