Results 1 to 2 of 2

Thread: Simple Text from textarea to Text List

  1. #1
    Join Date
    Nov 2010

    Simple Text from textarea to Text List

    I want to have one textarea with a submit button on a SUBMIT page, such that when some one enters text in this area and hits the submit button, this same text is displayed elsewhere on the HOME page.

    The end result should be that when this page is online, person A can enter his text in the textarea and submit to display it. When one hour later person B is on the page, the content as submitted by person A should still be visible to person B.

    The HOME page would list each text coming from SUBMIT page in a list that would eventually (after 20 or so) begin a new page with the most current TEXT at the top of the list.

    I kinda understand most of it but am having problems especially in getting the list to work.

    If anyone could simply list the steps I might could fill in the blanks from there. Thank you very much!

  2. #2
    Join Date
    Apr 2005
    Bathurst, NSW, Australia
    POST your form to save into a database (remember to steralise the content) with the date/time. Look up information on "mysql_query INSERT"

    Your homepage can simply query the database for all entries, sorting them by date/time and looping through them to display on the page. Have it do this 20 times before it provides a link to "older posts" or similar. Look up information on "mysql_query SELECT" and on PHP while loops.

    Let us know your progress and we can aid in the process

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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