Results 1 to 2 of 2

Thread: Form Contents to HTML?

  1. #1

    Thread Starter
    Lively Member jonvantuyl's Avatar
    Join Date
    Nov 2000
    Location
    Michigan
    Posts
    75

    Question

    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?

  2. #2
    Addicted Member
    Join Date
    Mar 2000
    Location
    Gainesville, FL
    Posts
    131
    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!



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width