Closed Thread Icon

Topic awaiting preservation: Q+A Forms (Page 1 of 1) Pages that link to <a href="" title="Pages that link to Topic awaiting preservation: Q+A Forms (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Q+A Forms <span class="small">(Page 1 of 1)</span>\

Nervous Wreck (II) Inmate

From: Trinidad
Insane since: Nov 2003

posted posted 11-17-2003 19:29

How can i create a question and answer form, i.e if i type hello in a text box and click a button it replies 'hello', but if i type goodbye in the same textbox i want it to reply 'goodbye' instead of 'hello' again.. Thanks

Nervous Wreck (II) Inmate

From: Sweden, Malmoe
Insane since: Jan 2003

posted posted 12-04-2003 00:21

If the button in question is pressed run a function that checks whether the word written in the textbox is "hello" or "goodbye". If the word is "hello" print "hello" to the screen, same thing with "goodbye".

« BackwardsOnwards »

Show Forum Drop Down Menu