Jump to content

SERVER SIDE DATE VALIDATION IN PHP


smiley_kool

Recommended Posts

Hey all,

    i know how to do the client side validation for date in php but i dont know how to do the server side validation..

 

i have a field called date.. if the date selected less than today then it should print the message saying " date should  not be less than today".. i have done this in client side but i dont knw how to do in server side..

can someone help melida

 

Link to comment
https://forums.phpfreaks.com/topic/109846-server-side-date-validation-in-php/
Share on other sites

what is the format of the input date?

to which do you compare it?

how do you validate it?

 

if you want to validate a date in php, you may want to convert it into more like a timestamp using strtotime() or mktime(). from this you can compare it to other dates.

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.