lucozade33 — 2011-06-19T12:29:40-04:00 — #1
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!
ralphm — 2011-06-19T18:50:54-04:00 — #2
Hi lucozade33. Welcome to SitePoint.
daviddrees — 2011-06-26T17:51:43-04:00 — #3
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!