PDA

Click to See Complete Forum and Search --> : Form Contents to HTML?


jonvantuyl
Nov 26th, 2000, 10:06 AM
Say that you have 4 textboxes on a form.

you want to take the text value of each text box and then input that data into a HTML.

You also need to have the value of Text1.Text, to be the name of the HTML page?

Anyone know how to do this?

Raydr
Nov 26th, 2000, 11:25 AM
Create a template page in your favorite HTML editor.
Then, in each spot where you want data to go, place a "marker". For example:


<html>
<head>
<title>
This is the name of my page: %title
</title>
</head>
<body>
Here is data 1: %text1<br>
Here is data 2: %text2<br>
Here is data 3: %text3<br>
Here is data 4: %text4<br>
</body>
</html>

And then, in your program do this:

open the file
input the data into a variable
then do this:

Variable = Replace(Variable, "%title", title.text)

etc...

then save it.
Voila!