87.gif

Search (advanced search)
Use this Search form before posting, asking or make a new thread.
Tips: Use Quotation mark to search words (eg. "How To Make Money Online")

02-19-2019, 10:21 PM
Post: #1
i little infor please on a form
<form action="/default.php?cashier=1" method="POST">
<script
src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-key="pk_test_oTVUBFAEt2am1vCRo8NLVgnR"
data-name= <?=$prousername?>
data-amount= "2500"
data-description="Credit Charge"
data-proimage="https://stripe.com/img/documentation/checkout/marketplace.png"
data-locale="auto"
data-currency="gbp">
</script>
</form>

that my simple form above
how to i get data-amoun to read
data-amount="2500" i need this to read from a imput box
Amount: <input type="text" name="data-amoun" id="data-amoun">

my example code that dont work

<form action="/default.php?cashier=1" method="POST">
Amount: <input type="text" name="data-amoun" id="data-amoun">
<script
src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-key="pk_test_oTVUBFAEt2am1vCRo8NLVgnR"
data-name= <?=$prousername?>
data-description="Credit Charge"
data-proimage="https://stripe.com/img/documentation/checkout/marketplace.png"
data-locale="auto"
data-currency="gbp">
</script>
</form>

any help would be fab




83.gif