Jump to content

Dependent on Server Side


Trizen

Recommended Posts

ok im curious why some people want to make they PHP do the validation when they can do it with Javascript and it will make your code less bulky and your site faster. cause i under the impression less communication with the server and more client side= faster.

 

Im just curious.

Link to comment
https://forums.phpfreaks.com/topic/182139-dependent-on-server-side/
Share on other sites

can you just detect if javascript is disabled and instead of doing validation on the app you just have it validate if javascript is working and if not redirect them to a page that says they cant view or use the site without it to reduce the amount of communication?

That's not a good idea either, because JavaScript can be easily edited. It's not really an issue of communication, when the form is submitted there's only 1 request to the server, and one response. The amount of time that some quick PHP validation will take is insignificant.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.