我要说一个表格:
<form ... >
<input type="text" name="date" /> //input here is 2013-06-14 09:00:00
</form>
我指定它说:
$log = new record();
var_dump($log->timein = $_POST['date']); // OUTPUT is string(0) ""
I tried using manual update:
var_dump($log->timein = '2013-06-14 09:00:00'); //string(19) "2013-06-14 06:00:00"
我将采取什么措施让$log->timein
获得价值2013-06-14 06:00:00而不只是空字符串?