Form losing data for invalid captcha
Moderator: General Moderators
Form losing data for invalid captcha
can anyone show any example to store the session value to a session variable?
Last edited by dt22 on Thu Jan 27, 2011 9:27 pm, edited 1 time in total.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: Form losing data for invalid captcha
<input id="security_code" name="security_code" type="text" />
to
You basically need to repopulate the value attribute.
to
Code: Select all
<input id="security_code" name="security_code" type="text" value="<?php echo isset($_POST['security_code']) ? htmlentities($_POST['security_code'], ENT_QUOTES) : ''; ?>" />