Jump to content

isset() not working?


rockinaway

Recommended Posts

I am using this to set the expiry for a remember me:

 

The HTML is:

 

<input type="checkbox" name="remember" value="remember" checked="checked" /> Remember Me <br />

 

And the PHP used to set the expiry is:

 

$exp = isset($_POSTS['remember']) ? time() + (60*60*24*365) : 0;

 

But the isset() seems not to be checking if the 'remember' box was ticked or not... What could be the problem?

Link to comment
https://forums.phpfreaks.com/topic/68043-isset-not-working/
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.