Posted by Brian on 03/22/07 00:59
Hi there
Just wondering if there is a better way of do this?
I have a form that has one of those PHP anti-spam random images. If the user
enters the incorrect
number when they submit they get a error message and have to click back to
re-enter it, the
trouble is when they do all the fields on the form are now blank so they
have to type it all in again.
So I was thinking, when the user submits the form it sets a cookie with all
the forms info,
it runs the tests to make sure the number is correct, if correct then
process the form and deletes the cookie.
If it's not correct when the user clicks back put some code at the bottom of
the form page that tests
that the cookie is set and if there reads the info in and using JavaScript
fills the form in.
This is the only way I can think of, but it there a better way?
Thanks
Brian
--------------------------------------------------------------------------------
I am using the free version of SPAMfighter for private users.
It has removed 1146 spam emails to date.
Paying users do not have this message in their emails.
Try SPAMfighter for free now!
[Back to original message]
|