Hiya all,
Looked through the posts but nothing really close to what I'm looking for. Basically, I have a large form (actually a set of large form, part of an interview system) and I want to validate the forms to make sure a) data has been entered, and b) it is in proper forms (i.e. dates are dates etc). I do this checking with JavaScripts now and it works fine, but I want to do PHP checking as well in case people have turned JavaScript off or are using old browsers/Lynx for example.
Currently I pass the form data through a POST call, but is there any way of storing the form in a session_variable, and then use that? Main reason for this is, if there is an error, I want to return to the form, indicate there is an error, highlight those entries which are wrong (based on session variables) and also put the "correct" entries back into their fields as defaults.
If anyone has any code, or main ideas, I would appreciate that very much.
Cheers
TG