As the title suggests, I have a span that is automatically generated by SimpleCart (Javascript Cart) – I want to use that span with a different checkout gateway then they support. Therefore, I need to take some of their tags and “echo” them into PHP variables.
For example:
<input type="hidden" name="fltAmount" value="###">
<span class="simpleCart_finalTotal">
The SPAN needs to be able to be passed into the INPUT so I can send it off to Paypoint.net
Your code should look something like this:
And in the form, you will call a function (onsubmit) that looks like:
An the function: