This project of mine is forcing me to dust off a lot of PHP skills I haven't had to use in a long time. Can someone tell me what's wrong, with this line:
It's probably obvious but, I'm not seeing it. Thanks in advance!
<input type="hidden" name="lastupdated" value="<? php date('m-d-y')?>" >
It's probably obvious but, I'm not seeing it. Thanks in advance!
Hi wcsconcierge,
The space between <? and php and you need an echo toshow the date results
The space between <? and php and you need an echo toshow the date results
<input type="hidden" name="lastupdated" value="<?php echo date('m-d-y'); ?>" />
Bob
This - only a little shorter - version should also work:
Only for "i-need-every-bit" junkies. In my opinion Bob's Code is better to read/understand for everyone. Depends on individual taste, i guess.🙂
<input type="hidden" name="lastupdated" value="<?= date('m-d-y'); ?>" />
Only for "i-need-every-bit" junkies. In my opinion Bob's Code is better to read/understand for everyone. Depends on individual taste, i guess.🙂
This topic is locked and no more replies can be posted.