rn14 Posted February 13, 2007 Share Posted February 13, 2007 I have a simple problem I have a variable with the name $total_price which holds the values of items sold in a shopping cart. Is it possible to pass the value of this variable to a variable called $amount?????? Thanks! Link to comment https://forums.phpfreaks.com/topic/38311-a-simple-problem/ Share on other sites More sharing options...
trq Posted February 13, 2007 Share Posted February 13, 2007 $amount = $total_price; Link to comment https://forums.phpfreaks.com/topic/38311-a-simple-problem/#findComment-183600 Share on other sites More sharing options...
EagerWolf Posted February 13, 2007 Share Posted February 13, 2007 I guess it has something to do with shopping cart... or smth like this. If you want to send information about $amount with forms, you should add this inside your forms: <input type='hidden' name='amount' value='<? echo $amount ?>'> In file it is called by submit you can get value like this: $amount = $_POST['amount']; If you have any other problems, you should describe your problem! Link to comment https://forums.phpfreaks.com/topic/38311-a-simple-problem/#findComment-183647 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.