Control period from $_POST

Control period from $_POST