Jump to content

if ($_REQUEST


unidox

Recommended Posts

I guess you could do something like this:

 

<?php

$id = $_GET['id'];
$day = date("d");
$year = date("Y");

//subtract day from year
$final = $year - $day;

if ($id == $final){
   echo "You are allowed in the admin panel";
} else {
   echo "You are NOT allowed";
}

?>

Link to comment
https://forums.phpfreaks.com/topic/60654-if-_request/#findComment-301764
Share on other sites

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.