krash11554 Posted August 15, 2012 Share Posted August 15, 2012 Okay, I have been wondering do you do front end validation with jquery php and ajax and back end validation with php only ? This also applies to all other php stuff like friend request systems and private messaging. The main Question is would i make the systems with jquery php ajax for the front end and just regular php in the backend just in case javascript is disabled? I know i didnt make this very clear but idk how to explain it any different. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/267136-php-jquery-ajax-q/ Share on other sites More sharing options...
xyph Posted August 15, 2012 Share Posted August 15, 2012 You should always have validation in place on the server-side. Ideally, your site should function without the use of JavaScript. Quote Link to comment https://forums.phpfreaks.com/topic/267136-php-jquery-ajax-q/#findComment-1369688 Share on other sites More sharing options...
krash11554 Posted August 15, 2012 Author Share Posted August 15, 2012 ik i should always have server side validation. Say javascript is enabled does the page still validate server side or just the front end?? Quote Link to comment https://forums.phpfreaks.com/topic/267136-php-jquery-ajax-q/#findComment-1369691 Share on other sites More sharing options...
Christian F. Posted August 15, 2012 Share Posted August 15, 2012 Remember that PHP has no idea what goes on with the client, all it knows is what the browser has sent to the server. So, yes, it will still validate server-side. Quote Link to comment https://forums.phpfreaks.com/topic/267136-php-jquery-ajax-q/#findComment-1369726 Share on other sites More sharing options...
krash11554 Posted August 15, 2012 Author Share Posted August 15, 2012 So your saying its gonna validate either way? Quote Link to comment https://forums.phpfreaks.com/topic/267136-php-jquery-ajax-q/#findComment-1369729 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.