insert data into textfield using checkbox
Posted on 2009-05-20
what i have is a textfield which would have a date put in it. i also have a check box which will represent todays date <?php date("d/m/y "); ?>
what i would like is if the text field is blank and the checkbox is checked when the submit button is pressed, todays date is submitted to a mysql table. if the text field is blank and the check box is unchecked, i would like an error to appear.
any ideas where i can find something like this?
all advice is appreciated