The issue I am having is the form submits data to a payment processing company.
the captcha I implemented is located here: http://www.php-help.ro/examples/math_captcha_image for this to work the form most submit to self or to a php page that I have access to instead here is the form code:
<form action="https://secure.bluepay.com/interfaces/bp10emu" method=POST>
<input type=hidden name=MERCHANT value="100105032970">
<tr><td>Zipcode:</td><td><input type=text name=ZIPCODE></td></tr>
<tr><td>Phone:</td><td><input type=text name=PHONE></td></tr>
<tr><td>Email:</td><td><input type=text name=EMAIL></td></tr>
<tr><td>Captcha:</td><td> <input type="text" name="secure" value="what's the result?" onClick="this.value=''" /><br><br>
<img src="image.php" alt="Click to reload image" title="Click to reload image" id="captcha" onClick="javascript:reloadCaptcha()" />
</td></tr>
<tr><td colspan=2><input type=SUBMIT value="Pay Now"></td></tr>
</table>
</form>
the script works perfectly when implentated on a form that submits to self. but since its posting to bluepay.com I am not sure on how to get it to verify captcha BEFORE submitting. any ideas?