3 replies
Hey guys how would I add a page to my website that allowed people to post something to a list and show up in real-time. Just like a reply but on a nice list.

are there templates or should I just hire a coder?

Thanks

Mr Fauker
#fauker #lord
  • Profile picture of the author Brandon Tanner
    What's up with the thread title? lol

    Regarding your question, it depends on what you mean by "list", but if it's just plain text or HTML content, then you could do this...

    1) Get user data via POST form submit

    2) Sanitize data to prevent malicious attacks (XSS, etc).

    3) Write (or append) data to flat file via PHP.

    4) Use jQuery / Ajax to read data from file, then display it on page. Alternately, you could use pure PHP to display the updated data, but that would require a page reload. Using Ajax will allow you to display the data in "real time" (ie without having to reload the page).

    How long this would take to code would depend on your exact requirements, but if you keep it on the simple side, probably only 1-2 hrs for a competent coder. If you wanted to use a database in step #3 (instead of a flat file), then it would take longer.

    Also, for future reference, these types of questions belong in the 'Programming' section.
    Signature

    {{ DiscussionBoard.errors[8291322].message }}
    • Profile picture of the author Writer Gateway
      I think it's a reference to "Meet the Fockers"? Not sure.

      Originally Posted by Brandon Tanner View Post

      What's up with the thread title? lol

      Regarding your question, it depends on what you mean by "list", but if it's just plain text or HTML content, then you could do this...

      1) Get user data via POST form submit

      2) Sanitize data to prevent malicious attacks (XSS, etc).

      3) Write (or append) data to flat file via PHP.

      4) Use jQuery / Ajax to read data from file, then display it on page. Alternately, you could use pure PHP to display the updated data, but that would require a page reload. Using Ajax will allow you to display the data in "real time" (ie without having to reload the page).

      How long this would take to code would depend on your exact requirements, but if you keep it on the simple side, probably only 1-2 hrs for a competent coder. If you wanted to use a database in step #3 (instead of a flat file), then it would take longer.

      Also, for future reference, these types of questions belong in the 'Programming' section.
      {{ DiscussionBoard.errors[8291348].message }}
  • Profile picture of the author CondorIM
    Like the title!!!
    Signature
    {{ DiscussionBoard.errors[8291666].message }}

Trending Topics