I am trying to put in a default value in a form (named test) using PHP, but am having problems.
The following Javascript worked, but the PHP that at the end did not work.... sigh
<script>
now = new Date();
var mmm = now.getMonth() + 1
var month = mmm.toString()
var day = now.getDate().toString()
var year = now.getYear().toString()
document.test.first.value = month + '/' + day + '/' + year
</script>
I thought, naively perhaps, that the following might work
<?php
$mmm = 12;
document.test.nickname.value = $mmm;
?>
thanks for any help
Michael