POST then alter date post.

I have a form <label for="dayat" name="dayat">Date: <input name="dayat" id="dayat"> <input type="submit" value="Go!">

and I somehow if enter 2012-02-01. I want it to post 2012-01-02. +1 day.

[php]$dayat = $_POST[‘dayat’];

$dayat=strtotime(’+1 day’);//this doesnt work haha but it explains what I am after.

echo $dayat;[/php]

Come on I know someone wants to help me!!!

Sponsor our Newsletter | Privacy Policy | Terms of Service