none
Using FrontPage Extensions (on GoDaddy.com windows hosting) for Form Handling

    Question

  • I'm working on a 3rd party template in EW1 which has a "contact us" form, but  I haven't been able to get it to work using .asp or .htm file (despite helpful advice on this forum) so decided to try the simple FrontPage extensions option. My host - GoDaddy.com - has a rather scary caution when you try and do this:
    "CAUTION!
    Microsoft Frontpage manages all of the directory and subdirectory permissions on your Web site. If you created custom directories on your Web site, or you are using another tool such as GoDaddy Hosting Connections to build and or manage your Web site, switching to FrontPage may cause some problems. It can overwrite all of your directory permissions and make your site unusable."

    I did not continue. Is my host being over-cautious or should I avoid FP extensions?

    My form is on http://test.hewitthome.net/contact.htm (and the same .asp file) and I have added my e-mail on Go-Daddy's form mailer. If anyone could be kind enough to have a look and see if there are any obvious errors in the code I'd be very grateful. I am not an expert at this, and don't know html etc.
    Many thanks!
    Thursday, November 20, 2008 11:24 AM

Answers

  •  My two cents worth and I may be way off base; however, having used GoDaddy for some time, the following may help.

    What support told you was to use their form handler. On my site the form handler is located at root but it appears that they are now installing it in a directory under root named _gdForm.  That directory contains their handler which is webformmailer.asp. You don't creat that file, it actually handles the results of your form and sends out the email. You can name your form anything you want. The key is to point the action componet of the form to "_gdForm/webformmailer.asp".

    Depending on how your site is organized you may have to preface that with the appropriate number of "../" for it to work. An easy fix for that and to enable you to reference the handler easier is to create a directory on your local site named _gdForm. Then copy the file from the directory on your live site to that local directory. Mark webformmailer.asp as "do not publish". Your form then can be created with any extension that is appropriate for your site (i.e. .htm, .html, etc.). If you don't have an FTP client to accomplish the transfer, you can use the cheezey FTP client that they have in your hosting account under content. It isn't great but it will accomplish the transfer of the file. As an alternative you can create a dummy file named webformmailer.asp in the _gdForm directory but you still have so mark it as do not publish.

    On thing you may want to check out is the FAQ under Help in your site control panel. Do a search for form mail and select webformmail.asp. It will outline how it is going to handle the fields submitted from your form. One thing I almost forgot is that you have to log into your hosting account and set up the email address that you want the form mail sent to before the thing will work. Also you won't be able to test this on your local site. It can only be tested on the server. I've had no issues using this method at all. Although I'm on a linux server using php for the bulk of my pages, my contact form page is html and it works. On linux servers the handler is gdform.php.


    Sid
    • Marked as answer by Steve home Sunday, November 30, 2008 2:49 PM
    Saturday, November 29, 2008 4:12 AM

All replies

  • Hey Steve, it looks like you are using the Lucky Marble templates.  Are you?  It looks familiar to me (in the code I mean) as I use one of their templates too.  Anyhoo, if so, they provide a php script for their form handler.  

    You should heed the warning from Godaddy, and stay away from the FP xtns.  Their only useful function is publishing, but even that is not worth having them in my opinion.

    I don't know what that .asp file does or who provided it.  In my own forms, I use a great PHP script from here: http://www.dbmasters.net/index.php?id=4   The php script from Lucky Marble was very lame and had few features.
    • Edited by nahc Thursday, November 20, 2008 5:08 PM
    Thursday, November 20, 2008 2:17 PM
  • nahc said:

    Hey Steve, it looks like you are using the Lucky Marble templates.  Are you?  It looks familiar to me (in the code I mean) as I use one of their templates too.  Anyhoo, if so, they provide a php script for their form handler.  

    You should heed the warning from Godaddy, and stay away from the FP xtns.  Their only useful function is publishing, but even that is not worth having them in my opinion.

    I don't know what that .asp file does or who provided it.  In my own forms, I use a great PHP script from here: http://www.dbmasters.net/index.php?id=4   The php script from Lucky Marble was very lame and had few features.


    Why use a paid solution (with a per domain licensing fee) when there are free solutions available? Veign (Chris Hanscom) has a number of php solutions available free here http://www.veign.com/development-category.php?type=web&catid=50. I have limited experience with php, but was able to implement his email form without issue.

    cheers,
    scott

    P.S. If you want to make your URLs live and clickable, use the Hyperlink Manager (second icon from the right, above).
    Thursday, November 20, 2008 2:39 PM
  • Thanx Scott.  The URL in the hyperlink got truncated, here it is:
    http://www.veign.com/development-category.php?type=web&catid=50

    Have to cut and paste as the forum software is failing when it comes to posting links.  Its alerting the URL when the post is submitted.

    --
    Chris Hanscom - Microsoft MVP
    Resource Center | Veign's Blog | Web Development Help
    Thursday, November 20, 2008 2:42 PM
  • Thanks for the responses. I use Windows hosting and I understand that PHP cannot be used under Windows (at least at GoDaddy) so I am hoping for a ASP solution.

    NAHC, you are right, I'm using a Lucky Marble Template (Gen 7, Epic) which I bought about a year ago when I had Frontpage.  Again, I don't think the PHP scripts will work, will they?

    http://test.hewitthome.net/contact.ASP

    Thanks again, Steve.


    Thursday, November 20, 2008 3:38 PM
  • PHP works fine on Windows servers.  I have websites at Goddady on Windows accounts that run PHP just fine.

    ASP Solutions for email can be found here also:
    http://www.veign.com/search.php?searchstr=email

    --
    Chris Hanscom - Microsoft MVP
    Resource Center | Veign's Blog | Web Development Help
    Thursday, November 20, 2008 3:47 PM
  • paladun said:

    nahc said:

    Hey Steve, it looks like you are using the Lucky Marble templates.  Are you?  It looks familiar to me (in the code I mean) as I use one of their templates too.  Anyhoo, if so, they provide a php script for their form handler.  

    You should heed the warning from Godaddy, and stay away from the FP xtns.  Their only useful function is publishing, but even that is not worth having them in my opinion.

    I don't know what that .asp file does or who provided it.  In my own forms, I use a great PHP script from here: http://www.dbmasters.net/index.php?id=4   The php script from Lucky Marble was very lame and had few features.


    Why use a paid solution (with a per domain licensing fee) when there are free solutions available? Veign (Chris Hanscom) has a number of php solutions available free here http://www.veign.com/development-category.php?type=web&catid=50. I have limited experience with php, but was able to implement his email form without issue.

    cheers,
    scott

    P.S. If you want to make your URLs live and clickable, use the Hyperlink Manager (second icon from the right, above).

    What are you talking about? It's always been free.   You can pay a tiny fee to remove the credit, if that matters to you.  Otherwise, the script is great and I have been using it for years.   The FormM@iler script has lots of very good options, very good security, and is simple to use. 

    Steve home: as was said above, any host can use PHP.  I used to use this same PHP script on FP03 with the FP extensions turned on, because the FP03 form handler was so lame.  Now I continue to use it in EW2, although I upgraded my FormM@iler PHP script to 4.5 which has a type of Captcha and even better server security if you value that sort of thing.  They also have a user Forum to help you get the code working or for other problems that might be driving you crazy.   I'm using a Lucky Marble generation 7 template too.  Mine's the Apex Vintage cars one.  I  really like their templates!  Here's my feedback form if you're interested: http://emblemagic.com/feedback.htm

    Thursday, November 20, 2008 4:50 PM
  •  I tried the PHP form mailer and it didn't work. I sent a support request to GoDaddy and they advised that I should not try PHP on Windows Hosting, and should use their ASP form mailer:

    <form action="_gdForm/webformmailer.asp" method="POST">

    I've set this up (code below) and added my e-mail address to the GoDaddy hosting set-up but it's not submitting the form and not finding the "thanks for your message" page. I've tried calling it .asp, .htm, .html but nothing is working and I don't know code. I'm fed up with it. Could anyone please check what I'm doing wrong?

    The site form itself is on http://test.hewitthome.net/contact.htm

    Thanks again for the advice. Regards, Steve.


          <hr />

          <h2><a name="form" id="form">Online Form:</a></h2>

            <p>&nbsp;</p>

    <form action="_gdForm/webformmailer.asp" method="POST">

    <input type="hidden" name="redirect" value="contact_confirmation.asp" />

    <input type="hidden" name="subject" value="Submission" />

    <br />

    First Name: <input type="text" name="FirstName" />

    Last Name :<input type="text" name="LastName" />

    Email: <input type="text" name="email" />

    Comments: <textarea name="comments" cols="40" rows="10">

    Type comments here.</textarea>

    <input type="submit" name="submit" value="submit"/>

    <input type="hidden" name="form_order" value="alpha"/> <input

    type="hidden" name="form_delivery" value="hourly"/> <input

    type="hidden" name="form_format" value="html"/> </form>

    </form>

    Friday, November 28, 2008 9:32 AM
  • Steve,  I don't understand the GoDaddy support saying that about PHP.  That is completely untrue.  What needs to be known is if you have PHP available on your server.  My hosting company has a control panel which allows me to turn PHP on and off myself (as well as Front Page extensions) and all sorts of other processes and options.  My hosting company's server is a Windows Server. (They also offer Linux)  Is GoDaddy free?  It seems like their service is pretty bad.   It sounds like even the asp idea they say you must use isn't working.

    I will say that with the PHP form handler, you would have a very simple form, none of that redirect or hidden stuff.

    Here's mine:
    <form id="Feedback" action="PHP/formmailer.php" onsubmit="return validateForm()" method="post" name="Feedback"

    Most of the settings (where the emails go, where the thank you page is etc. is all edited in the PHP script itself)
    The "onsubmit" thing is only there because I have some javascript validation also, or else even that would be unnecessary.

    You need to ask your GoDaddy people if they offer PHP or not, and what version number they are providing.  That has nothing to do with Windows.

    One last bit I would suggest is not to use the Lucky Marble  form template.  Use a blank page template and design a simple form yourself using the EW2 tools.
    Friday, November 28, 2008 2:39 PM
  • GoDaddy lists PHP as supported on all of their Windows hosting plans:
    http://www.godaddy.com/gdshop/hosting/shared.asp?ci=9009

    --
    Chris Hanscom - Microsoft MVP
    Resource Center | Veign's Blog | Web Development Help
    Friday, November 28, 2008 2:55 PM
  • Steve home said:

     I tried the PHP form mailer and it didn't work. I sent a support request to GoDaddy and they advised that I should not try PHP on Windows Hosting, and should use their ASP form mailer:

    <form action="_gdForm/webformmailer.asp" method="POST">

    I've set this up (code below) and added my e-mail address to the GoDaddy hosting set-up but it's not submitting the form and not finding the "thanks for your message" page. I've tried calling it .asp, .htm, .html but nothing is working and I don't know code. I'm fed up with it. Could anyone please check what I'm doing wrong?

    The site form itself is on http://test.hewitthome.net/contact.htm

    Thanks again for the advice. Regards, Steve.


          <hr />

          <h2><a name="form" id="form">Online Form:</a></h2>

            <p>&nbsp;</p>

    <form action="_gdForm/webformmailer.asp" method="POST">

    <input type="hidden" name="redirect" value="contact_confirmation.asp" />

    <input type="hidden" name="subject" value="Submission" />

    <br />

    First Name: <input type="text" name="FirstName" />

    Last Name :<input type="text" name="LastName" />

    Email: <input type="text" name="email" />

    Comments: <textarea name="comments" cols="40" rows="10">

    Type comments here.</textarea>

    <input type="submit" name="submit" value="submit"/>

    <input type="hidden" name="form_order" value="alpha"/> <input

    type="hidden" name="form_delivery" value="hourly"/> <input

    type="hidden" name="form_format" value="html"/> </form>

    </form>

    After submitting it says this page is not found:
    http://test.hewitthome.net/_gdForm/webformmailer.asp

    It not on your server, so thats why it won't work.

    Did you try any of the many samples I provided?


    --
    Chris Hanscom - Microsoft MVP
    Resource Center | Veign's Blog | Web Development Help
    Friday, November 28, 2008 2:58 PM
  • Chris,

    Thanks for your comments - I am going to work on this issue at the week-end and will check your forms - but according to GoDaddy I have "IIS6" (whatever that is!) and PHP is "Applicable to accounts set up with Windows IIS7 only".

    Regards, Steve.


    Friday, November 28, 2008 3:44 PM
  • GoDaddy support will only provide support if you use their form and even then it isn't particularly good. 

    From posts I have seen if you once use a GoDaddy form mailer on their hosting you can never use any other method. I have used asp.net and classic asp form processors on GoDaddy Windows plans. PHP forms processing on GoDaddy PHP plans.


    MS MVP Expression http://by-expression.com
    Friday, November 28, 2008 10:46 PM
  • Expression Web doesn't allow me to save http://test.hewitthome.net/_gdForm/webformmailer.asp as a file. I don't know what more I can do to get a simple form to work. It just seems to revert to "_gdForm.asp".
    Saturday, November 29, 2008 12:34 AM
  • Cheryl D Wise said:

    GoDaddy support will only provide support if you use their form and even then it isn't particularly good. 

    MS MVP Expression http://by-expression.com


    Do you mean the form, or the support?  ;-)

    cheers,
    scott
    Saturday, November 29, 2008 3:17 AM
  •  My two cents worth and I may be way off base; however, having used GoDaddy for some time, the following may help.

    What support told you was to use their form handler. On my site the form handler is located at root but it appears that they are now installing it in a directory under root named _gdForm.  That directory contains their handler which is webformmailer.asp. You don't creat that file, it actually handles the results of your form and sends out the email. You can name your form anything you want. The key is to point the action componet of the form to "_gdForm/webformmailer.asp".

    Depending on how your site is organized you may have to preface that with the appropriate number of "../" for it to work. An easy fix for that and to enable you to reference the handler easier is to create a directory on your local site named _gdForm. Then copy the file from the directory on your live site to that local directory. Mark webformmailer.asp as "do not publish". Your form then can be created with any extension that is appropriate for your site (i.e. .htm, .html, etc.). If you don't have an FTP client to accomplish the transfer, you can use the cheezey FTP client that they have in your hosting account under content. It isn't great but it will accomplish the transfer of the file. As an alternative you can create a dummy file named webformmailer.asp in the _gdForm directory but you still have so mark it as do not publish.

    On thing you may want to check out is the FAQ under Help in your site control panel. Do a search for form mail and select webformmail.asp. It will outline how it is going to handle the fields submitted from your form. One thing I almost forgot is that you have to log into your hosting account and set up the email address that you want the form mail sent to before the thing will work. Also you won't be able to test this on your local site. It can only be tested on the server. I've had no issues using this method at all. Although I'm on a linux server using php for the bulk of my pages, my contact form page is html and it works. On linux servers the handler is gdform.php.


    Sid
    • Marked as answer by Steve home Sunday, November 30, 2008 2:49 PM
    Saturday, November 29, 2008 4:12 AM
  • Scott,

    Both, the GoDaddy form is very limited and frequently misbehaves.
    MS MVP Expression http://by-expression.com
    Saturday, November 29, 2008 5:59 PM
  • Thanks oldvet - I thought you had solved the problem...but alas...I checked GoDaddy file manager and couldn't see a directory for _gdForm. I am aware that my site pages are under "test/hewitthome.net" so maybe there is something there, but having tried 101 combinations of //folders and files I am no closer getting it to work.

    I have sent another support request to GDaddy about their form, hoping to find out if they agree that the only part of their script which needs to be customised is the "redirect" to page.

    Veign, I checked your forms page but couldn't work out which would be appropriate for me to use and in any case I already have a form - my problem is getting it to send an e-mail to me and to redirect people to a "thanks" page on my site.

    FRONTPAGE I MISS YOU  ;(

    Thanks for your help, Regards, Steve.
    Saturday, November 29, 2008 9:05 PM
  • You can use the Basic email form.  Its a complete sample that shows you how to make a form to email working.
    --
    Chris Hanscom - Microsoft MVP
    Resource Center | Veign's Blog | Web Development Help
    Saturday, November 29, 2008 9:27 PM
  • Veign, please advise the direct link to the Basic form. I can't find it listed on http://www.veign.com/development-category.php?type=web&catid=50

    Maybe I just need to start afresh.
    Many thanks, Steve.
    Saturday, November 29, 2008 9:37 PM
  • Steve home said:

    Veign, please advise the direct link to the Basic form. I can't find it listed on http://www.veign.com/development-category.php?type=web&catid=50

    Maybe I just need to start afresh.
    Many thanks, Steve.


    Here's the one I used. Easy peasy, even with limited php experience.

    http://www.veign.com/code-view.php?type=web&codeid=48

    cheers,
    scott

    Saturday, November 29, 2008 9:52 PM
  • I can't use PHP (see above).
    Thanks anyway. Steve
    Saturday, November 29, 2008 10:03 PM
  • Steve home said:

    I can't use PHP (see above).
    Thanks anyway. Steve

    Aah, bummer. Forgot the "no IIS7" post.

    Ya got classic ASP (VBScript)? Pretty much everyone does by now, even Linux hosts. Anyway, if you do, I have a basic handler that uses CDOSYS that will probably work for you.

    Or, you could just tell GoDaddy to shove it and get a real host.  ;-)

    cheers,
    scott

    Saturday, November 29, 2008 10:12 PM
  • Link:
    http://www.veign.com/code-view.php?type=web&codeid=48

    The MS forums will strip the id= out of the link if I try and make it a hyperlink...

    --
    Chris Hanscom - Microsoft MVP
    Resource Center | Veign's Blog | Web Development Help
    Saturday, November 29, 2008 10:22 PM
  • With special thanks to oldvet Sid, I am please to draw this particular thread to a close. The reason my form mailer wasn't working was that my contact form and re-direct were in a sub directory of my domain (Test) whereas the form mailer was linked to the root directory/domain name! I am certainly learning from my mistakes, and really appreciate the help and advice my fellow forumistas give so readily.

    I promise not to bother you again. Really. For at least 24 hours.

    Thanks and regards, Steve.
    Sunday, November 30, 2008 2:47 PM
  • I also have many ASP samples for sending emails from most types: CDO, CDONTS, JMail and Mail Enable
    --
    Chris Hanscom - Microsoft MVP
    Resource Center | Veign's Blog | Web Development Help
    Sunday, November 30, 2008 4:33 PM
  • Scott, Keep in mind that the Forum is stripping out the IDs from posted URLs.  This 'new feature' makes it impossible to link to any URL containing the string id=

    Wish MS would fix this bug and you think they would since you can longer create a hyperlink to their own downloads (and yes I submitted a bug to their bug forum but that does no good).

    --
    Chris Hanscom - Microsoft MVP
    Resource Center | Veign's Blog | Web Development Help
    Sunday, November 30, 2008 4:35 PM