arkam chou
asked on
Keep Value after using POST PHP
Dear Expert,
I want to keep value with INPUT Element. When click submit, the INPUT Element keep last value. when first load, it get value from current date in code from php server.
I want to keep value with INPUT Element. When click submit, the INPUT Element keep last value. when first load, it get value from current date in code from php server.
<form role="form" method="post" id="myForm">
<div class="col-sm-2">
<input id="daterange" class="form-control" type="text" name="daterange" value="<?php
echo Date("Y-m-d");
echo " - ";
echo Date("Y-m-d")
?>" style="cursor: pointer"/>
</div>
<div class="form groups col-sm-1">
<input type="submit" name="submit" value="view" class="btn btn-primary btn-block">
</div>
</form>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.