i'm writing registration form when need print date page them sure gave right date says:
fatal error: function name must string in [address]
do have idea what's problem? here important part of form:
<form action='/register.php' method='post'> <input type='date' id='regdate' name='regdate'> </form> and here php print (in registration.php)
<?php $bdate = $_post("regdate"); $ebd = date("m-d-y",$bdate); echo $ebd; ?>
try code
<?php $bdate = $_post["regdate"]; $ebd = date("m-d-y",strtotime($bdate)); echo $ebd; ?>
Comments
Post a Comment