I need help on how to get the php variables from my shopping cart. I need to get the variables cartid and value into the html form before submitting.
The html is:
<input type="hidden" name="cartId" value="Merchant Test">
<input type="hidden" name="amount" value="10.00">
<input type="submit" value="Secure Online Payment">
Is there another way in html and how do I send the same info without a "submit" keystroke.
Any help would be appreciated.
variables to html form?
Moderator: General Moderators
well presumably you would do something like
<input type="hidden" name="cartId" value="<?php print($cartid); ?>">
<input type="hidden" name="amount" value="<?php print($value); ?>">
<input type="submit" value="Secure Online Payment">
you would need the variables available from somewhere .. maybe your session, depends how your cart works.
<input type="hidden" name="cartId" value="<?php print($cartid); ?>">
<input type="hidden" name="amount" value="<?php print($value); ?>">
<input type="submit" value="Secure Online Payment">
you would need the variables available from somewhere .. maybe your session, depends how your cart works.