Forum Moderators: coopster
im tryin to send some data from a form to a php script ( a basket) but im not sure whats going wrong.....
here my input script..:
{
$view_db = '<tr><td><img src=images/test-small-image.jpg></td><td class=bold>'.$row['productname'].'</td><input type=hidden name=id value='.$row['productID'].'>';
$view_db .= '<td align=center>'.$row['size'].'</td>';
$view_db .= '<td align=center class=bold>'.$row['price'].'</td><input type=hidden name=price value='.$row['price'].'>';
$view_db .= '<td align=center class=bold><input type=image src=images/addtocartup.jpg border=0 name=add></td></tr>';
echo $view_db;
}
and my output script
<?PHP
$prodID=$_POST['id'];
$qty="1";
$price=$_POST['price'];
print $prodID;
print $qty;
print $price;
?>
I think it isnt working because the variables have the same name.. but i dont have a clue how to change this... sorry for being a noob
PHP and HTML FAQ:
[php.net...]