Forums

Keep the form data after Image Validation mistake?

andrew222 12 Sep, 2007
Hi,

I did do a search for my query but to be honest I don't understand the solutions given.

Realized that the form data is lost if the image verification is incorrect. This will just wind up any site visitors that use it.

The following is mentioned in the FAQ

. . . name="field_name" value="<?php echo $_POST['field_name'] />" . . .


but I don't understand where to put this code in my script. (Made in Dreamweaver and pasted)


My code is as follows

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="105"> </td>
    <td width="302">Your Name:</td>
    <td colspan="2"><input type="text" name="name" size="30" /> 
      * </td>
  </tr>
  <tr>
    <td> </td>
    <td> Telephone:</td>
    <td colspan="2"><input name="telephone" type="text" id="telephone" size="30" />
      *</td>
  </tr>
  <tr>
    <td> </td>
    <td>E-mail: </td>
    <td colspan="2"><input type="text" name="email" size="30" />
      *</td>
  </tr>
  <tr>
    <td> </td>
    <td> </td>
    <td colspan="2"> </td>
  </tr>
  <tr>
    <td> </td>
    <td>Message:</td>
    <td colspan="2"><textarea name="message" cols="50" rows="12" id="message"></textarea></td>
  </tr>
  <tr>
    <td> </td>
    <td> </td>
    <td colspan="2"> </td>
  </tr>
  <tr>
    <td> </td>
    <td>Contact me by:</td>
    <td colspan="2"><input type="checkbox" name="contact2" value="phone" />
Telephone
<input type="checkbox" name="contact2" value="email" />
Email </td>
  </tr>
  <tr>
    <td> </td>
    <td> </td>
    <td colspan="2"> </td>
  </tr>
  <tr>
    <td> </td>
    <td colspan="2"><p>Please type the five 'dark' characters <br />
      you see in the picture.</p>    </td>
    <td>{imageverification}</td>
  </tr>
  <tr>
    <td> </td>
    <td> </td>
    <td colspan="2"> </td>
  </tr>
  <tr>
    <td> </td>
    <td> </td>
    <td colspan="2"> </td>
  </tr>
  <tr>
    <td> </td>
    <td> </td>
    <td colspan="2"><input type="submit" name="Submit" value="Send" /></td>
  </tr>
</table>
Any help would be really appreciated.

Thanks

Andrew

Edited to add code tags<br><br>Post edited by: GreyHead, at: 2007/09/12 09:09
GreyHead 12 Sep, 2007
Hi Andrew,

The FAQ spells it out as simply as I can write it but it does involve a code hack. If I can find time later I'll post the changed files for you, if not then I'm afraid that the best solution is to wait for Max to add it into t future release.

Bob
andrew222 12 Sep, 2007
Thanks for your reply Bob.

I look forward to seeing the changed files if you get the chance. I just thought it would have been standard on the Chronoforms to keep the data so will keep an eye out for any updated versions that include it.

All the best

Andrew
This topic is locked and no more replies can be posted.