as a novice I can't get this one figured out and would appreciate any advice or help you could offer.
am trying to pass a php derived total to a html form that passes the info to paypal. our form variable with the php looks like this ...
[code=html]
<input type="hidden" name="amount" value="<?php if(isset($_GET['tc'])) echo ($_GET['tc'] + 25.99 + rTXSTax) ; ?>">
[/code]
this works fine with one small problem - that is really hugh. we're running a php routine that generates the order form and allows the user to update quantities for the items they have selected. the value above is generated when the page is produced and if the user makes any changes the amount value is NOT updated when it is passed to paypal.
have tried POST GET and EXPLODE but cant get any of them to work. maybe we could define a variable that would recalculate the value when the form is SUBMIT ed to paypal?????????
please help ... thanks
am trying to pass a php derived total to a html form that passes the info to paypal. our form variable with the php looks like this ...
[code=html]
<input type="hidden" name="amount" value="<?php if(isset($_GET['tc'])) echo ($_GET['tc'] + 25.99 + rTXSTax) ; ?>">
[/code]
this works fine with one small problem - that is really hugh. we're running a php routine that generates the order form and allows the user to update quantities for the items they have selected. the value above is generated when the page is produced and if the user makes any changes the amount value is NOT updated when it is passed to paypal.
have tried POST GET and EXPLODE but cant get any of them to work. maybe we could define a variable that would recalculate the value when the form is SUBMIT ed to paypal?????????
please help ... thanks
Comment