Answer the question
In order to leave comments, you need to log in
How to encrypt the value passed through post?
Good day!
Checking for date matching (creation date and expiration date)
if($create_date < $expire_date){
$access = 'yes';
} else {
$access = 'no';
}
Answer the question
In order to leave comments, you need to log in
base64_encode()
base64_decode()
It makes no sense to encrypt. With the same success, you can immediately write 'yes' in the desired form field right in the browser.
And the visibility of the desired page elements can be switched.
All checks should be exclusively non-server side, the server should not give the client data that the client should not see.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question