Hi guys, I have a form that allows the user to enter a date:
I am wondering how to check that the user has input the correct DATE format and (YYYY-MM-DD) and nothing elseCode:<div id="addmovie_date"> <label for="date"><strong>Release Date (YYYY-MM-DD):</strong</Label><br/> <input type="text" name="date"/><br/>
closest thing I've used ot this is:
my little error include thing there messes my page up, but anyway! heheCode:if(strlen($moviename) > 80) { header("Location: /movies/addmovie.php?user=' . $username . "); include 'error.php'; $error = 'movie name must not exceed 80 characters.'; exit(); }
I'm sure there's something similar for me to use for the date?



Reply With Quote
Bookmarks