Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Jan 2005
    Posts
    189
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Page for non-technical users to update

    I haven't coded anything in PHP in a long while and whenever I do, I don't again for so long I forget everything! What I'm looking to do is make a page where a user can login, then have a page after that with a bunch of fields that anyone can update by filling it in, hitting submit and have those changes be made on the live webpage. Kind of like updating a table with stats.

    If anyone can point me to a script or help get me started that would be awesome. Thanks.

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Just make a form that submits info to a db secured by sessions or something.

  • #3
    Regular Coder
    Join Date
    Mar 2006
    Location
    Connecticut, USA
    Posts
    400
    Thanks
    1
    Thanked 0 Times in 0 Posts
    snarky coment deleted
    for the greater good
    Last edited by bustamelon; 04-28-2006 at 02:52 PM.

  • #4
    Regular Coder
    Join Date
    Mar 2006
    Posts
    121
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Its actually not terribly hard. Easiest way to do it would be to pick up an open source WYSIWYG library such as FCKEditor, plug it into a form/php combo to update it and write the resultant HTML to the database.

    [edit]

    *reads the post*

    If its just a table of stats or something, then it should be a simple matter of building a form, populating it with the current data from the database, allowing it to be changed then writing it back in.
    Last edited by khendar; 04-28-2006 at 08:16 AM.

  • #5
    Regular Coder
    Join Date
    Jan 2005
    Posts
    189
    Thanks
    6
    Thanked 0 Times in 0 Posts
    I was thinking of having it pull from a text file or something (I suppose I was curious as to the different ways it could be done), but I guess I could figure it out with mySQL and just update a simple table.
    Thanks for the help.

    snarky coment deleted
    for the greater good
    That's a shame, I probably would've enjoyed the jab.

  • #6
    Regular Coder
    Join Date
    Mar 2006
    Location
    Connecticut, USA
    Posts
    400
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by a4udi
    That's a shame, I probably would've enjoyed the jab.
    Heheh. I think it was something like, "Hey can someone show me real quick how to write a content management system?" Certainly it was nothing useful in any way, and I thought better of it afterward -- if you don't have anything nice to say... But I'm glad you have a sense of humor.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •