364,036 Members | 5588 Browsing Online
Community for Developers & IT Professionals
Bytes IT Community

Converting HTML Form Data into Webpage Output ?

teknowbabble@yahoo.com
P: n/a
teknowbabble@yahoo.com
I would like to know how to convert HTML code that users input into a
TEXTAREA box on a HTML FORM into a separate WEBPAGE.

I have something like the diagram below on my webpage. The user is
prompted to input his/her HTML Code in the FORM TEXTAREA. By pushing
the Make Webpage Button, a new window opens with the output of the HTML
contents they inputted. This way people can see what their HTML looks
like.

HTML FORM TEXTAREA (Where user inputs their HTML Data)

*******************************************
* <html> *
* <head> *
* <title> Webpage Title </title> *
* </head> *
* <body> *
* *
* User Inputs Web Contents *
* *
* </body> *
* </html> *
*******************************************

***********************
* Make Webpage Button *
***********************

Ive looked on the web and in google groups and havent found anything
that I can comprehend to any reasonable degree.

I get that I have to save the TEXTAREA contents as a .html file and
then open a browser window with that file name.

Im guessing its somethings I should be able to do with JAVASCRIPT or
possibly a CGI Script. Im not really up on either except for real basic
stuff.

If you have any ideas or directions to point me to, Id be grateful.

Also, is it better to save the file via a server as opposed to the
users hard drive? Whats the best/quickest way?

TIA
Teknowbabble

Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


Darin McGrew
P: n/a
Darin McGrew
<teknowbabble@yahoo.com> wrote:[color=blue]
> I would like to know how to convert HTML code that users input into a
> TEXTAREA box on a HTML FORM into a separate WEBPAGE.[...]
>
> Im guessing its somethings I should be able to do with JAVASCRIPT or
> possibly a CGI Script. Im not really up on either except for real basic
> stuff.[/color]

You need a server-side (e.g., CGI) program to process the form data and
generate the HTML page.

One of the prewritten CGI page-editing programs listed at
http://cgi.resourceindex.com/Program...ing_Web_Pages/
may meet your needs.
--
Darin McGrew, mcgrew@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, darin@htmlhelp.com, http://www.HTMLHelp.com/

key ring /'kE 'ri[ng]/ n. device enabling simultaneous loss of multiple keys
Jul 23 '05 #2

Post your reply

Help answer this question



Didn't find the answer to your HTML / CSS question?

You can also browse similar questions: HTML / CSS