Need some help
| From: | ReClMaples | Date: | Wed, 11 May 2005 19:14:58 +0000 |
| Subject: | Need some help | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-39408@lists.php.net to get a copy of this message | ||
Hello all,
I am having an issue with displaying a variable from another php script.
Can you help please?
Here is the code that Im using:
<?php
$item_ttlprice = $_POST[$ttl_price];
?>
<html>
<body>
Your price is: $
<?php
echo $item_ttlprice;
?>
<body>
</html>
pretty simple I would think but I cant figure out what Im doing wrong.
The above is the new script. Below is the script that the $ttl_price is
coming from:
td align=center>\$ $item_price <br></td>
<td align=center>$item_qty <br></td>
<td align=center>\$ $total_price</td>
<td align=center><a
href=\"removefromcart.php?id=$id\">remove</a></td>
</tr>";
$ttl_price = $ttl_price + $total_price;
Can anyone tell me what Im doing wrong?
I have tried changing this part:
<?php
$item_ttlprice = $_POST[$ttl_price];
?>
to $item_ttlprice = $_GET[ttl_price];
to $item_ttlprice = $_POST[$ttl_price];
nothing seems to work.
Thanks for your help
-Rich