This is a discussion on Get dates from a form and validate them within the PHP Language forums, part of the PHP Programming Forums category; Hi, I want to open a page where people will fill some date through a select statement. After they press ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
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 statement. Thanks for your help. |
|
|||
|
seb wrote:
> Hi, > > 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 ? Just do it as you say. > I would like a script which check the dates, and write the good sql > statement. $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/ |