Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Get dates from a form and validate them
April 25, 2005, 11:50 pm
rate this thread
I want to open a page where people will fill some date through a select
statement. After they press the submit button, the table below will
updload itself with datas regardng the dates selected.
How can I do that ?
I would like a script which check the dates, and write the good sql
Thanks for your help.
- R. Rajesh Jeba Anbiah
April 26, 2005, 4:03 pm
Re: Get dates from a form and validate them
Just do it as you say.
$date_selected = sprintf('%04d-%02d-%02d', $_GET['f_y'],
$_GET['f_m'], $_GET['f_d']); //2005-01-31
Warning: this is just for logic; *never* use this as such--form
inputs certainly need sanitization.
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com /