winterheat
Oct 13th 2007, 5:34 am
the sticky form is that if validation didn't pass, re-display the form with the value in the text input again (and for other input field as well...)
no book I read did it correctly so far. (just for the text input)
to reduce the problem, how about write a PHP program that will submit to itself, so that
typing in
foo "bar" foo
and click "Submit" and the form will re-display the form with
foo "bar" foo
already typed in, kind of like what Google will behave.
the program should also work with foo 'bar' foo
Of the few books I read, none of them has a correct solution. If you know which book has a correct solution to this, please point me to it.
no book I read did it correctly so far. (just for the text input)
to reduce the problem, how about write a PHP program that will submit to itself, so that
typing in
foo "bar" foo
and click "Submit" and the form will re-display the form with
foo "bar" foo
already typed in, kind of like what Google will behave.
the program should also work with foo 'bar' foo
Of the few books I read, none of them has a correct solution. If you know which book has a correct solution to this, please point me to it.