Server side validation while adding a post
Currently, there is no any server side validation while adding a post. The only validation is javascript.
I'd like to add that for my website and I am looking for some pointers here.
It seems like in step1 are all the fields retrieved and being built. step2 retrieves all submitted values from step1.
Now in step2 I would like to check for some values like post_title, post_content, cp_zipcode ,cp_city ,cp_state , and if these are empty return user to step1 and displays some error.
I know how to check values ,but how do I return user to step1 is my question ??
I appreciate any help. Other people could benefit from this as well.