Activity Stream
48,167 MEMBERS
6726 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 4 of 4

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1.     
    #1
    Member

    Default 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 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

  2.   Sponsored Links

  3.     
    #2
    Member
    Nice idea, it can be done with a few hours of work using PHP/MySQL, HTML and a bit of JS. I would also recommend you to display a captcha when user submits his thoughts, to prevent bots and spam.

  4.     
    #3
    Member
    Thanks for the suggestion of installing captcha, I'll keep that in mind

    But my level of programming is hardly even novice. I'm reading on HTML/CSS and JAVA, but still haven't got a slightest clue on how to even start generating such code.

    It seems I won't be able to move on without hiring a programmer?

  5.     
    #4
    Member
    If you want to learn all these things, write this script for yourself. If you want it fast, hire someone. Like me

    If you make it, start by looking up how to get data with php from html forms.
    http://www.tizag.com/phpT/examples/formex.php
    then how to add data to a mysql database, and how to display from that later, and so on...

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Ask wordpress user submitted post
    By warung giras in forum Tutorials and Guides
    Replies: 11
    Last Post: 20th Mar 2012, 02:57 PM
  2. Sectional gallery code(jquery/java)
    By mannNmeet in forum Web Development Area
    Replies: 0
    Last Post: 15th Nov 2011, 09:43 AM
  3. Random Helpful Code
    By JmZ in forum Webmaster Resources
    Replies: 5
    Last Post: 24th Feb 2011, 09:45 PM
  4. Need Help HTML/Java Script Twitter/Countdown fixing
    By Andy~s in forum Web Development Area
    Replies: 0
    Last Post: 19th Dec 2010, 06:29 PM
  5. Differentiate B/w Submitted/Non-submitted topics
    By champ_007_bond in forum Web Application/Script Support
    Replies: 9
    Last Post: 28th Aug 2010, 03:54 PM

Tags for this Thread

BE SOCIAL