So i'm creating a simple site which core function would be a visitor submitted random thought generator. The main page would have the thought generator (you'd just press "next" and the page would refresh itself showing a new random though submitted by some user). In the "submit" or "form" or whatever you call it page there would be a simple form with text fields for writing your name, location (country), e-mail (not shown in the main page) and your thought. By submitting the thought the user sends his or her message into the database (well i imagine it being like that), from which the random thoughts for the main page are generated (with the name and location of the author).

So that's the basic idea. I found a lot of codes that generate random "quotes" from the ones that are already in the code. But I need it to be connected to the form in which USERS write their thoughts, so that the generator would always be up to date and spreading. I don't want to write my own pre-selected quotes. Could anyone help me get on the right path? How do I do this? Maybe someone could throw some code in here..? Any help is appreciated.

Thank you very much for your answers
stungun Reviewed by stungun on . HTML/PHP/JAVA code for user submitted random thoughts? So i'm creating a simple site which core function would be a visitor submitted random thought generator. The main page would have the thought generator (you'd just press "next" and the page would refresh itself showing a new random though submitted by some user). In the "submit" or "form" or whatever you call it page there would be a simple form with text fields for writing your name, location (country), e-mail (not shown in the main page) and your thought. By submitting the thought the user Rating: 5