Simple Javascript Form Submit
Posted: Tue Nov 18, 2008 6:49 am
~pickle | Please use [ code=html ], [ code=php ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:
Posting Code in the Forums to learn how to do it too.
Hu Guys,
Im doing a simple javascript form submission but I get an error:
This is the code:
the error is document.Citizen_Registration is undefined
Any sugggestions to ovecome this guys?
thanks
Arun
~pickle | Please use [ code=html ], [ code=php ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:
Posting Code in the Forums to learn how to do it too.
Hu Guys,
Im doing a simple javascript form submission but I get an error:
This is the code:
Code: Select all
<form action="https://select.worldpay.com/wcc/purchase" method="POST" name="Citizen_Registration">
<input type="hidden" name="instId" value="148271">
<input type="hidden" name="cartId" value="">
<input type="hidden" name="amount" value="10.00">
<input type="hidden" name="currency" value="USD">
<input type="hidden" name="desc" value="Global Village Citizen - Registration">
<input type="hidden" name="MC_joomlaid" value="">
<input type="hidden" name="MC_amountpaid" value="10.00">
<input type="hidden" name="MC_process" value="true">
<input type="hidden" name="MC_FromPage" value="Citizen Registration">
<input type="hidden" name="testMode" value="0">
</form>
<!-- transStatus = Y or C for transaction call back page -->
<script language="javascript">
document.Citizen_Registration.submit();
</script>Code: Select all
document.Citizen_Registration.submit(); thanks
Arun
~pickle | Please use [ code=html ], [ code=php ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: