Click here to get back home

Converting HTML Form Data into Webpage Output ?

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Converting HTML Form Data into Webpage Output ? teknowbabble 01-17-2005
Get Chitika Premium
Posted by teknowbabble on January 17, 2005, 1:06 pm
Please log in for more thread options
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



Posted by Darin McGrew on January 17, 2005, 9:28 pm
Please log in for more thread options
> 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/Programs_and_Scripts/Perl/Editing_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


Similar ThreadsPosted
HTML problem. Converting a Webpage into Word- features are lost- Can anyone please help me as I need to reproduce the page more or less as it was. August 12, 2006, 11:53 am
HTML problem. Converting a Webpage into Word- features are lost- Can anyone please help me as I need to reproduce the page more or less as it was. August 12, 2006, 11:54 am
retrieving data from a form August 28, 2004, 6:21 pm
Adding Web form data to a new row of an excel file February 14, 2005, 8:51 am
tools for handling form to e-mail data June 10, 2005, 4:50 pm
How to sort form field data in E-mail? December 21, 2005, 9:03 am
Way to save form data locally w/o server? August 17, 2007, 7:23 pm
form data passed from an asp file to an aol e-mail account June 22, 2006, 9:28 am
Collect and store form data entered by site visitors November 22, 2005, 5:58 pm
I follow the following steps to converting from HTML to XHTML March 8, 2005, 12:17 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap