jquery post codeigniter validation
问题 We are using jquery to .load() a form into a div We then use jquery to .post() that form to a codeigniter controller ie /app/post We then want Codeigniter to perform validation but were not sure how to return to a page to display the validation errors? If re re .load() the controller wont it re-init the object and we lose the data? Are we approaching this in the wrong way? 回答1: Store the validation messages in sessions from your controller and then show them on the corresponding view/page but