471,881 Members | 1,346 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,881 software developers and data experts.

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 7950
<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
reply views Thread by YellowAndGreen | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.