Menu

Post to a viewable table?

Help
Mercer
2006-01-23
2013-06-03
  • Mercer

    Mercer - 2006-01-23

    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!

     
    • TNTEverett

      TNTEverett - 2006-01-23

      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.

       
      • Mercer

        Mercer - 2006-01-24

        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.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.