Adding “ad lib” reports to a Wordpress-themed website

Discussion in 'Programming' started by Tim555, Apr 7, 2014.

  1. #1
    The solution seems fairly simple but I don't see a lot of websites making use of this type of functionality:

    I want one of my websites to allow users to input text into two input boxes, let them submit that information, and then have a report displayed on the page afterwards that shows the text they inputted with predetermined information around their text inputs.

    For example, the user inputs "Bob" and "Bill" into two separate text boxes.

    The report says:
    Bob invite Bill to the car show.

    If you user inputs "Jack" and "Jill," the report says:
    Jack invite Jill to the car show.

    Which programming language would be best to use to achieve this? What is the best way to accomplish this?
     
    Tim555, Apr 7, 2014 IP
  2. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #2
    Just make a WP-page with a form on it, and output the result from the form to the same page? It's a simple thing you can do mostly without knowing much coding at all. If you want it to display without reloading etc. you'll need to send the content from the input-boxes via Ajax to a processing script which can then send the data back to be output onto the same page the form is on. By the way, unless you're needing Ajax for this, PHP is your friend. If you need Ajax, PHP + javascript is your friend.
     
    PoPSiCLe, Apr 12, 2014 IP