I'm currently having a little trouble making this piece of html code to work:
(...)
<form action="/get">
<br>
<?php date_default_timezone_set("Europe/Budapest"); ?>
<input class="hidden" type="number" name="h" value="<?php echo date("H"); ?>" >
<input class="hidden" type="number" name="m" value="<?php echo date("i"); ?>" >
<input class="hidden" type="number" name="s" value="<?php echo date("s"); ?>" >
<input class="button" type="submit" value="Send time to server">
</form>
(...)
Basically, it should send the client's time to the server. (Like this: .../get?h=19?m=34?s=53 ) My problem is that it does not run the date() function at all, and breaks the input tag like this: hidden and with values shown
I don't have any idea why doesn't it work. Can somebody tell me why?