Page 1 of 3 123 LastLast
Results 1 to 15 of 43
  1. #1
    3 Star Lounger
    Join Date
    Mar 2009
    Location
    Somewhere Over the Rainbow
    Posts
    232
    Thanks
    0
    Thanked 1 Time in 1 Post
    Code:
    <head>
        <title></title>
    </head>
    <body>
        
    </body>
    </html>

    Lets say the above is my web page template.
    I would give it to my coworkers, who would then add there content without touching the html command tags.
    Then they would have to save the file with their added content as a .html file.

    I would like to create a form for my coworkers to fill out.
    Referencing to the above code example, this is what the form would look like:
    Web Page Title:
    Page Body Content:

    The user would input their answers into a text box to the right of the Colon.
    The form would also have a Submit button that the user would click once the user had completed entering all the fields.
    The Submit button would insert what the user entered in the fields into the html coding tags, then it would save it as a new html document.

    This way the user could make a web page using my template without knowing anything about html, and without ever seeing the html code.

    I am so desperate to figure out how to make such a form, but I don't know too much about making forms or how they work.

    Thanks,
    Andrew
    Time can fix anything.....even a broken clock. - Handy Andy

  2. #2
    New Lounger
    Join Date
    Dec 2009
    Location
    Bilston England
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I don't know directly of any code that can do this but if you do a search for PHP Codes you're almost certain to come across something, or if you use a free editing program such as NVU and get your coworkers to install it as well you can create a master template which they can add content to without any knowledge of HTML being required.

  3. #3
    3 Star Lounger
    Join Date
    Mar 2009
    Location
    Somewhere Over the Rainbow
    Posts
    232
    Thanks
    0
    Thanked 1 Time in 1 Post
    Thanks, but I know absolutely nothing when it comes to PHP.

    I have also used a free program called Evrsoft First Page.
    It can be found at: http://www.evrsoft.com/download.shtml

    If someone could attach a sample file that demonstrates what I am looking for, that would be great.
    Then I could dissect it and figure out how to customize it to my liking.
    Time can fix anything.....even a broken clock. - Handy Andy

  4. #4
    New Lounger
    Join Date
    Dec 2009
    Location
    UK
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Its possible to do this but you have to write an HTML form to do it. You dont mention if you have the knowledge to do that.
    Secondly you need a back-end service such as PHP or Perl to submit the form to and process the data. The PHP or Perl would then process the data by replacing the fields in your form with the data the user enters and saving the resultant string to a file with whatever filename you choose.
    This would be simple to write and test. If you have the knowledge to do it.

  5. #5
    3 Star Lounger
    Join Date
    Mar 2009
    Location
    Somewhere Over the Rainbow
    Posts
    232
    Thanks
    0
    Thanked 1 Time in 1 Post
    Unfortunately, I only know HTML, and have made some mailto forms in the past. I don't know much on PHP, but would I still need to use PHP for this?
    I thought the only reason I would need PHP is if I wanted the end result to be uploaded to the web. I really just want the output to be a text or html file that is saved on the local computer.

    Thanks for the reply.
    Time can fix anything.....even a broken clock. - Handy Andy

  6. #6
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts
    Quote Originally Posted by HandyAndy View Post
    I really just want the output to be a text or html file that is saved on the local computer.
    A long time ago, I wrote an HTML application (.hta, which runs only in IE) which would create a new HTML signature file for Outlook users based on a form they filled out. This was done with VBScript, which is a venerable (okay, "obsolete") proprietary language that someone in your organization might know. (I might be able to dredge it up as a code sample. Not sure where it is now.)

    == Edit ==

    Here is the application I mentioned, with a few changes to generalize the contact information. If you double-click the .hta, it should launch in IE, although there might be security issues in IE8 (I didn't test). To edit it, open in Wordpad or your favorite HTML editor.

    [attachment=87363:SigMaker-SAMPLE.zip]
    Attached Files Attached Files

  7. #7
    3 Star Lounger
    Join Date
    Mar 2009
    Location
    Somewhere Over the Rainbow
    Posts
    232
    Thanks
    0
    Thanked 1 Time in 1 Post
    Thanks, I wasn't aware that VBScript was obsolete, but then again I don't know much about programing.
    .hta? HTML Applications, you learn something new every day. I'll have to research that.

    Any kind of sample program you can send me would be great. Thanks again.
    Time can fix anything.....even a broken clock. - Handy Andy

  8. #8
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,572
    Thanks
    5
    Thanked 1,057 Times in 926 Posts
    Quote Originally Posted by HandyAndy View Post
    Thanks, I wasn't aware that VBScript was obsolete, but then again I don't know much about programing.
    .hta? HTML Applications, you learn something new every day. I'll have to research that.

    Any kind of sample program you can send me would be great. Thanks again.
    Since you now know that you are going to need some back end (i.e. server) code a description of your server envrionment would be helpful.

    What server operating system?

    What web server?

    Joe
    Joe

  9. #9
    3 Star Lounger
    Join Date
    Mar 2009
    Location
    Somewhere Over the Rainbow
    Posts
    232
    Thanks
    0
    Thanked 1 Time in 1 Post
    I use Apache for my Web Server, with Windows XP.
    Time can fix anything.....even a broken clock. - Handy Andy

  10. #10
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post
    Quote Originally Posted by HandyAndy View Post
    Code:
    <head>
     <title></title>
    </head>
    <body>
     
    </body>
    </html>

    Lets say the above is my web page template.
    I would give it to my coworkers, who would then add there content without touching the html command tags.
    Then they would have to save the file with their added content as a .html file.

    I would like to create a form for my coworkers to fill out.
    Referencing to the above code example, this is what the form would look like:
    Web Page Title:
    Page Body Content:

    The user would input their answers into a text box to the right of the Colon.
    The form would also have a Submit button that the user would click once the user had completed entering all the fields.
    The Submit button would insert what the user entered in the fields into the html coding tags, then it would save it as a new html document.

    This way the user could make a web page using my template without knowing anything about html, and without ever seeing the html code.

    I am so desperate to figure out how to make such a form, but I don't know too much about making forms or how they work.

    Thanks,
    Andrew
    Hi Andrew

    Find attached a simple Excel workbook that will create a basic HTML file; Add text to the two "fields" in the spreadsheet and run the Macro. It will create an index.htm file on your C drive
    Jerry

  11. #11
    3 Star Lounger
    Join Date
    Mar 2009
    Location
    Somewhere Over the Rainbow
    Posts
    232
    Thanks
    0
    Thanked 1 Time in 1 Post
    Awesome!!! I have just 2 questions on customizing the code though.

    1) Could you explain to me what this means / does?:

    fnum = FreeFile()
    Open MyFile For Output As fnum

    2) If it is not too difficult and if possible, could the spreadsheet contain
    a submit button that would start the macro? It is not important though.

    Thank you so so so very much!
    The spreadsheet form that you created seems very easy for me to
    customize the code, and is very easy for the end user to work.
    I feel like I received an early Christmas present!
    Time can fix anything.....even a broken clock. - Handy Andy

  12. #12
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post
    FreeFile is a function returns an Integer value representing the next file number available for use by the FileOpen function. The Open statement requires a filenumber argument in the range 1 to 511 and so FreeFile returns such a number that is not already in use.

    I have attached Version 2
    Jerry

  13. #13
    3 Star Lounger
    Join Date
    Mar 2009
    Location
    Somewhere Over the Rainbow
    Posts
    232
    Thanks
    0
    Thanked 1 Time in 1 Post
    So in other words, the form is creating / opening a file called index.html. If the program was dealing with more than one file than things could get confusing, so you use FreeFile to simplify / automate this. Tell me if what I just said makes any sense.

    Thank you. I certainly owe you one.
    Time can fix anything.....even a broken clock. - Handy Andy

  14. #14
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post
    Correct, It is assigning a number for the file so that it can open it then print a line of text (in this example we are writing tags that a browser can decode).

    If you want a number of files to be updated then using Excel we could put some simple logic into it as the FreeFile is closed at each session
    Jerry

  15. #15
    3 Star Lounger
    Join Date
    Mar 2009
    Location
    Somewhere Over the Rainbow
    Posts
    232
    Thanks
    0
    Thanked 1 Time in 1 Post
    Where could I learn more on this coding? Is it just VBasic?

    I see your wearing a Santa hat, so a very Merry Christmas to you.
    Time can fix anything.....even a broken clock. - Handy Andy

Page 1 of 3 123 LastLast

Posting Permissions

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