Forum Moderators: open
I have been using the CDate function in one of my scripts. And all had generally beengoing well. I have a form field posting the date to the code that contains the CDate function.
This works fine assuming that the user types in the date in xx/xx/xx format......which they are encouraged to do. Is there a way to alter the script so that if what is typed into the form is not in the above format, then the user is redirected. i.e. if they left it blank and posted, or if they missd some slashes etc.
Any ideas apprecaited.
Webboy
PS: You might still want to do a server-side edit if you're worried about savy users intentionally bypassing your client side edits. If isdate() fails on the server, I'd probably just abort since someone obviously cheated around the client edit.
Ross
- Day
- Month
- Year
After submitting these 3 values, concatenate them into a single string and assign the string to a variable.
fergy
<snip>
[edited by: engine at 9:20 pm (utc) on Mar. 3, 2003]
[edit reason] No sigs, thanks [/edit]