SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jun 2011
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Please help a noob!

    Hi everyone, I'm very new to creating my own websites and I want to start out simple. I would like to create a very basic website that contains a static text box, an output text box and a button. No bells, no whistles, not even any colors.
    The function of the button would be to produce a random sentence (taken from a list I have) and then display it in the Output text box. Please see the attached image for a visual depiction. How do I go about doing this? Any help would be much appreciated.

    Thanks for the help in advance!
    Attached Images Attached Images
    Last edited by ralph.m; Jun 19, 2011 at 15:53. Reason: attached smaller version of the image to save page blowout

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,620
    Mentioned
    413 Post(s)
    Tagged
    7 Thread(s)
    Hi lucozade33. Welcome to SitePoint.

    It sound like you need some scripting for this, such as JavaScript. It would be good to know more about the requirements here, as it's not totally clear yet. It the static text something like a hard-coded title?

  3. #3
    SitePoint Member
    Join Date
    Jun 2011
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The steps (I would take)

    HTML- learn about html forms and you will probably use "<textarea>" for the two text boxes. (HTML Forms and Input)

    User clicks "submit" button.

    Some form of code (Javscript, PHP, etc.) puts a random sentence into the output text boxes' "value" attribute.

    Let me know if this helps/ Is confusing!


Tags for this Thread

Bookmarks

Posting Permissions

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