|
Hi everyone,
I created a form using six drop down boxes to let people specify a time frame when pulling their data from my database (start year, start month, start day, end year, end month, end day). When people adjust their drop down menus and click submit, my page reloads, checks the variables for security, enters them into the MySQL query, and executes the query, and drops the data into the page.
It works well, but here's the problem:
When people load the page initially, no data appears. They have to click the submit button on my time frame form in order for the page to reload and data to appear.
It makes sense why this happens, but does anyone know how to get data to initially appear, such as year-to-date or all time data to show when they first visit the page?
Any suggestions would be great. Thanks!
|