i have a form like that
- Code: Select all
<form action="" method="POST" id="form0">
<input type="text" name="date0" class="tcal" value="the_value_here" readonly="readonly" /><br />
<input type="image" src="/submit.png" onclick =" return displayv()" />
<input type="hidden" name="submit0" value="the value_here" />
</form>
the_value_here im wondering what it will be , so if the user selected date , then this value will be the date selected . I have used isset and $_POST but those are only when submitting the form and after it checks , but me i want to check it before submitting in javascript . to see if its null or not.
so what will be the value there please ?
i have so long this in my javascript
- Code: Select all
if ( "<?php $_POST['submit0']; ?>" == "" )
any help pls