I have several forms in one HTML page…
I have to filter these forms somewhere… (eg check if all or some form elements have values etc…)
I am using ajax to submit the forms, but i dont know if i should filter it before submitting it to my php file, or filtering it inside the php file?
I want the fastest way for the data to show up….
??????????????
Thanks
Filter in both places. You cannot trust anything the client sends to your server, so always check in a server side script that what they sent is good. But you don’t want your client to wait, so check using client side script as well.