469,327 Members | 1,226 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,327 developers. It's quick & easy.

Converting HTML Form Data into Webpage Output ?

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
1 7853
<te**********@yahoo.com> wrote:
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.


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, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

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

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Krista Bailie | last post: by
1 post views Thread by Donald Firesmith | last post: by
4 posts views Thread by brett | last post: by
2 posts views Thread by meburke | last post: by
6 posts views Thread by Chris Fink | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.