Closed Thread Icon

Topic awaiting preservation: Q+A Forms Pages that link to <a href="https://ozoneasylum.com/backlink?for=8946" title="Pages that link to Topic awaiting preservation: Q+A Forms" rel="nofollow" >Topic awaiting preservation: Q+A Forms\

 
Author Thread
coding_goat
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

Archonian
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