Jump to content

Multiply a value on submit


pmjm1

Recommended Posts

I don't have any php yet, just the html form, see below.

The field I need to multiply by 100 is the 'eWayTotalAmount', or just add 00 to the value when it is submitted. So far I can't find a solution without having an additional page.

 

<form method="post" action="https://www.eway.com.au/gateway/payment.asp">

<table>  <tr><td><p>Your last name:</p></td><td>  <input type="text" name="ewayCustomerLastName"/></td></tr>

<tr><td><p>Your first name:</p></td><td>  <input type="text"  name="ewayCustomerFirstName"/></td></tr>

<tr><td><p>Your email address:</p></td><td>  <input type="email" name="ewayCustomerEmail" /></td></tr>

<tr><td><p>Donation amount:</td><td>  AUD$ <input type="text" name="ewayTotalAmount" size="7"></p></td></tr></table>

 

        <input type="hidden" name="ewayCustomerID" value="13xxx563" />

<input type="hidden" name="ewayURL" value="http://www.nnn.com.au/register.php" />

 

<br />

<input type="image" name="submit" src="images/donate-off.png" alt="Join Now" width="191" height="69" border="0" id="Image2" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image2','','images/donate-on.png',1)">

 

</form>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.