468,247 Members | 1,293 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,247 developers. It's quick & easy.

Get dates from a form and validate them

seb
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.
Jul 17 '05 #1
1 1219
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/

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Thomas W | last post: by
10 posts views Thread by Colin Steadman | last post: by
2 posts views Thread by Mike N. | last post: by
7 posts views Thread by Bambero | last post: by
8 posts views Thread by netsurfer | last post: by
22 posts views Thread by mike | last post: by
9 posts views Thread by Rimuen | last post: by
5 posts views Thread by Steve | last post: by
11 posts views Thread by tshad | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.