I am working on a project, and have not yet created this form, but have done others. I'm wondering if it is possible to have info posted to a table on an HTML page, much like a guestbook, I suppose. If so, how? Thanks in advance!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It depends on your requirements.
1- you could have the form process.php just display the current form data
2- you could have the form process.php write to a database then finish by operating on the entire database to display all the results
3- you could have the form write to the database, with another page (similar to the admin page) display the database in any way you want
4-
5-
6-
etc...
Have you seen the admin page?
What are your requirements?
The possiblities with php are endless.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am working on a project, and have not yet created this form, but have done others. I'm wondering if it is possible to have info posted to a table on an HTML page, much like a guestbook, I suppose. If so, how? Thanks in advance!
It depends on your requirements.
1- you could have the form process.php just display the current form data
2- you could have the form process.php write to a database then finish by operating on the entire database to display all the results
3- you could have the form write to the database, with another page (similar to the admin page) display the database in any way you want
4-
5-
6-
etc...
Have you seen the admin page?
What are your requirements?
The possiblities with php are endless.
I've seen the admin page, and checked the source to figure out how they get the info onto it. Requirements are as follows:
Form will have 6 inputs:
Name
Date
Starting Weight
Water Intake
Steps Taken
Current Weight
This is where it gets tricky.
I would like it to display the records by name, perhaps with totals, though I haven't decided on that part yet. Basically:
|Total|Name| Date |StartWeight|Intake|Steps|CurrentWeight|
| N/A |Sue |Yesterday| 165 | 24oz | 312 |165|
| N/A |Sue | Today | 165 | 36oz | 432 |163|
| N/A |Sue | Today | 165 | 60oz | 744 | 2 |
And then another for Jane, Jill, etc.
Totals aren't totally necessary, but would be nice. Sorting by name is fairly important, as there will be several entries per person.