PHP Variable for amount
Dwight_F
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Mar-16-2018
10:02 AM
I have set up an account that works ok until I try to send the 'amount' using a php variable. I have a radio button set and I retrieve the value from there as such: $am = $_POST['mem']; .. mem is the name given to the radio buttons. Then when I try to send this to PayPal it does not recognize it. I am sending : <input type="hidden" name="amount" value="<?php echo $am ?>"> If I test the variable $am it shows it to be '25'.
However, If I send with the value hard coded ( value="25") everything works ok.
Any ideas why this is not working?
0 REPLIES 0

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.