...

View Full Version : Java+form+input data and output



idemonickitty
07-26-2009, 02:32 AM
ok im pretty new to this and getting confused sooooo easy
i want to make a form


O----------OO----------OO----------O
|text box 1||text box 2||text box 3|
O----------OO----------OO----------O
o-------------o
|submit button|
o-------------o
O---------------O
|output text area|
O---------------O

but when you press submit in the output text area this pops up with what you entered in this format

{url={text box 1}}{img}{text box 2}{/img}{text box 3}{/url}

i tryed google so many times but maybe this place can help {hopefully} :thumbsup:

venegal
07-26-2009, 03:39 AM
Are you working with some sort of templating engine, or why are you using that strange brace notation?

Anyway, you can just set the innerHTML property of the output text area to the desired output string in the onsubmit handler of the form and return false (using Javascript).

If you want a more detailed answer, you are going to have to show at least some HTML.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum