I have a js script which prints a value to innerText of a span. I am trying to take this value and pass it onto paypal as an amount.
The process goes:
form.php –> process.php –> PayPal
Because i am using a script i found online i cannot go directly to PayPal as the form action is already set to the send.php. Therefore i need to pull the value from span in form.php, into process.php and then into PayPal. I have tried using $_SESSION variables but it didn’t work and when i var_dumped the session it showed an array when i was expecting a simple integer.
Im not quite sure which code is useful/relevant
[CODE]<div class=’pcontainer’>
<label for=’words’ >Words:</label><br/>
<span id=”words”> </span><br/>
<span id=’contactus_email_errorloc’ class=’error’></span>
</div>
<div class=’pcontainer’>
<label for=’tprice’ >Price:</label><br/>
<span id=”tprice”> </span><br/>
<span id=’contactus_email_errorloc’ class=’error’></span>
</div>
Because the transition from form.php to proces.php is a re-direct and not a form action, could i still use POST/GET?
[CODE]<?PHP
session_start();
$_SESSION[“price”] = $_GET[“tprice”];
Any help would be greatly appreciated,
Thanks!