I'm building a form in a custom Joomla component. It collects payment details and has a captcha image.
When the form is submitted and the captcha string is incorrect a message is displayed..."incorrect code please try again" and there's a button that takes the user back to re-enter the code.
<input type=button value="Go back to payment form" onClick="history.go(-1)">
when you click this the form appears a gain but all the fields are empty.
How can I make it so that the field retain the information previously entered.