none
Trying to setup form mailer for a site hosted on godaddy.com

    Question

  • I am new to web hosting and I am using Expression web 3.0 to create a site.  I am trying my hand at forms and I am totally lost.  My site is hosted on godaddy and my url is www.ambroseparish.org/ambroseparish/calendar/event.html if you could take a look I am not sure that I placed the information that godaddy gave me in the right place.  Here is a sample of what they gave me

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

    <input type="hidden" name="subject" value="Submission" />
    <input type="hidden" name="redirect" value="thankyou.html" />
    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_interval" value="hourly"/>
    <input type="hidden" name="form_format" value="html"/>
    </form>


    Of course my input is different and I would think that I was to add the following to my code.

    <form action="_gdForm/webformmailer.asp" method="POST">
    <input type="hidden" name="subject" value="Submission" />
    <input type="hidden" name="redirect" value="thankyou.html" />

    <input type="submit" name="submit" value="submit"/>
    <input type="hidden" name="form_order" value="alpha"/>
    <input type="hidden" name="form_interval" value="hourly"/>
    <input type="hidden" name="form_format" value="html"/>
    </form>


    if you would be so kind to look, any suggestions that you could give me would be helpful.  Or if there are any sites that would help me figure this out I would be glad to look at them.

    thanks

    Jerry Fowler
    FowlerJ
    Thursday, March 11, 2010 2:37 AM

All replies

  • No, what you are suggesting is not going to work. The server code is expecting only specific name value pairs in the POST data. If you add your own to your form the server will not notice them or may just flush you for good measure. You need to get a copy of their server side code and add your new fields to it also.

    If it did what you suggested we could all be sending you crazy stuff with our own ideas of what a cute input form looks like.
    Thursday, March 11, 2010 4:20 AM
  • We have no idea what is in http://ambroseparish.org/_gdForm/webformmailer.asp

    You also haven't actually asked us a question: what are you trying to fix?

    I will point out the rather obvious situation that you have input variables on the page that are not inside the form and so won't be processed, if that is your question.
    Thursday, March 11, 2010 4:22 AM
  • "The server code is expecting only specific name value pairs in the POST data."

    Not true.  Any input fields in the form will be sent. (The form wouldn't be much use if it didn't.)  There are, of course some necessary ones.

    See webformmailer.asp at
    http://help.godaddy.com/article/512#webformmailer
    Thursday, March 11, 2010 4:35 AM
  • Of course they will be sent. Sent is up to the browser and doesn't mean anything. If the server responds/stores every item sent in a form that would get an F- for security.
    Thursday, March 11, 2010 4:42 AM
  • I have no idea how to interpret you saying that

    "No, what you are suggesting is not going to work. The server code is expecting only specific name value pairs in the POST data. If you add your own to your form the server will not notice them"

    and then agree that

    "Of course they will be sent." - which is of course what the OP wants

    and then talk about "If the server responds/stores every item sent in a form that would get an F- for security."  - which has nothing to do with the question of sending the inputs in a mail form, which is the topic.

    What exactly are you trying to say? If you are talking about the hidden values that determine how the form is processed, the OP didn't add anything that isn't in the form instructions.
    Thursday, March 11, 2010 5:02 AM
  • GoDaddy has their own forms processing script which he is sending his form to. There are instructions on the GoDaddy site on what you have to do to make it work which includes setting an address to receive the form results which I think is in their control panel. I don't use the GoDaddy form and haven't looked at it in a few years so that's all the help I can provide.

    I do remember thinking it was a pretty poorly implement form but that's from memory. As a result I always create my own for sites hosted on GoDaddy servers.
    MS MVP Expression Tutorials & Help http://by-expression.com
    Thursday, March 11, 2010 5:05 AM
  • The OP wants to send some information in his form that the server processor has not been previously made aware of. That would be of the type:

    <input type="text" name="someThingNew" value="whatEver"/>

    where the name "someThingNew" has only been coded in the web page and not yet in the server. The server should not not respond to it or pass it along if it was design responsibly.
    Thursday, March 11, 2010 7:23 AM
  • "<input type="text" name="someThingNew" value="whatEver"/>"

    Of course that will be passed along in the email.  It's a general script to process an email form that folks on GoDaddy create.  You can add any input fields you want, and they will be passed along in the email.

    Seriously, follow the GoDaddy link I posted and read their instructions.

    It's hardly irresponsible to design a script that will do this.  It would be rather limiting for a host to provide an email form processing script that only handled input fields they pre-defined.
    Thursday, March 11, 2010 5:11 PM
  • Plus if it becomes a problem, which would be slim and way in the future, the OP can switch.  This buys him time and probably a lot of time.
    --
    Chris Hanscom - Microsoft MVP
    On Facebook | On Twitter | Resource Center | Veign's Blog | Web Development Help

    Get a Complete Website Analysis by Veign
    Thursday, March 11, 2010 5:17 PM
  • Seriously, follow the GoDaddy link I posted and read their instructions.

    It's hardly irresponsible to design a script that will do this.  It would be rather limiting for a host to provide an email form processing script that only handled input fields they pre-defined.



    I took a look at the GoDaddy link and I agree that it will do as you say. I disagree that it is wise. On all of the contact forms that I've created, each input is qualified at the server using regular expression and any html special characters are removed. Phone numbers are actually phone numbers, email addresses are email addresses, and zip codes are zip codes. Inputs that are required must be filled out and if certain keywords are included the whole form is discarded. Nevertheless I still get nonsense sent by the spam bots. Using the GoDaddy form would be equivalent to a drunken sailor visiting a foreign port with no condoms. Who knows what they'll catch.
    Thursday, March 11, 2010 6:32 PM
  • Since we have no idea what is in GoDaddy's processing script, we can't say what they do, or do not do, to minimize dangerous entries.
    Thursday, March 11, 2010 7:10 PM
  • I could speculate what they don't do. If it is an input which our user just added to his page then the GoDaddy script has no idea what its purpose is. It will not be requiring that it's value be some minimum or maximum length. There will not be a regular expression check to insure that it conforms to some format. They are not going to reject it if it has a web site link in it. I would assume that the word "Viagra" or the phrase "$%#@ Enlargement" would come though unimpeded.
    Thursday, March 11, 2010 7:32 PM
  • I wasn't talking about spam checking, or required values.  If someone wants a form that does that, they'd have to use something beyond an html form with GoDaddy's processing script.

    Getting back to the OP's question:  He can certainly do what he wants to do.  If he wants to do more, that's a separate question.

    Thursday, March 11, 2010 7:45 PM
  • Your right as always Kathy. The OP can do exactly what he said he wanted to do. Whether he still wants to do that after he tries it for a couple of months remains to be seen. If he attaches that form to a back-water site that never shows up in a Google search then I'm sure he will be quite happy with it. I have pages exactly like that where the URL's are kept secret. However in those cases the people who use the page don't need a feedback form they just call me.
    Thursday, March 11, 2010 7:59 PM
  • thank you for the many responses, I did not mean to start a heated discussion.  I will take a look at the link that you sent and will see what I can do.  As I said I am new to coding and have done a fair job for a beginner, but this was and has been giving me fits.  We are not asking for any information that someone would normally give over the internet and we are keeping as simple as possible.  Again thanks

    Jerry
    FowlerJ
    • Proposed as answer by Polymanhk Friday, March 12, 2010 7:38 AM
    Friday, March 12, 2010 3:38 AM
  • "I did not mean to start a heated discussion."

    You do not need to apologize for discussions that start in a forum unless you started a nasty one yourself, which you certainly did not.  Discussions, some wandering off topic, are the nature of a forum.

    (And trust me, this one was not heated by forums' standards!  ;) )
    Friday, March 12, 2010 6:03 PM
  • Heh, what Kathy said. This is a social forum (look at the address bar), and although titularly dedicated specifically to EW, discussions here range all over the field of Web development, including tools, processes, and practices that have only the most tenuous connection to EW itself.

    It is far from uncommon for well-meaning developers to have genuine differences of opinion about one or more of these questions or topics, and to engage in... lively discussion of them. That is the nature of a forum format, and is to be expected. It provides for an airing of views on subjects both mundane and controversial, and permits those who either didn't know of or hadn't formed an opinion on the subject to read the opinions of others and make their own assessments.

    In other words, it's a healthy practice, and as long as the debates remain reasonably civilized (and for the most part we try to keep them that way) it contributes to the viability and usefulness of the forum.

    cheers,
    scott

    C'mon, folks. This isn't rocket science, nor neurosurgery. It's "Expression" (singular) "Web" (singular), in that order, followed by a version numeral if you wish to be specific. It is often abbreviated "EW." It is not "Web Expression," "Expressions Web," "Web Expressions," or plain "Expression" or "Expressions." Not using the correct name indicates either ignorance or laziness. Most folks would rather avoid the appearance of either.
    Friday, March 12, 2010 6:38 PM
  • Ok, I went to the link that you gave me and in my HTML page I entered (just before where my inputs start) the form action and the method post line they talked about I also did the lines that included the subject and the redirect, just as they had them.  then after my input lines I entered the four lines that had the submit, form_order, form_interval, and the Form_format.  Tried the form and waited a couple of hours and nothing.  So then just to try it I did a totally new page with just the example they give on their site and submitted that and still nothing.  I put a trouble ticket in to see if I did something wrong when I setup the form handler on the godaddy site.  but there I sit.  I would not think that this would be that difficult.  I know I am just doing something wrong and the littlest thing stops it from working.

    Jer

    FowlerJ
    Friday, March 12, 2010 10:48 PM
  • On thing I haven't noticed mentioned in this thread, did you set up Godaddy's Form Mail to tell it where to send the email? In the control panel for your hosting account under content, there is a Form Mail icon. Using that you will be asked to enter where you want the form mail to be sent. If that isn't done then Godaddy's script has no idea where to send the email. If/when you get to the point that you want to do some backend processing on the form results, you are better off using smtp-relay than the provided scripts.


    Sid
    Friday, March 12, 2010 11:13 PM
  • Did you follow the instructions to register the GoDaddy email account that the form will be sent to?
    Saturday, March 13, 2010 12:04 AM
  • Yes I did, I put in a ticket and have not heard back from them.  Question the email address I used was not the one that I have through godaddy does that matter?  I used one that I have that I test things with.  I did that just to see if I would get a bunch of junk mail along with the forms filled out.

    Jer
    FowlerJ
    Saturday, March 13, 2010 9:55 PM
  • It matters.  You must use a GoDaddy email address, not some other.
    Saturday, March 13, 2010 10:35 PM
  • I just went ahead and set it up using one of the email address that I created through godaddy.  I know that it takes some time to process so I will try it in the morning and let you know.  thanks for the info, I did not know and it never said that you had to use an email address that was through godaddy.

    again thanks for all your help.

    Jer
    FowlerJ
    Sunday, March 14, 2010 5:45 AM
  • It matters.  You must use a GoDaddy email address, not some other.

    One other question,  when I have this in my form

    <input type="hidden" name="redirect" value="thankyou.html" />

    Which directory is it looking for the thankyou.html file?  in the root directory or the directory that the form is in?

    Jer

    FowlerJ
    Sunday, March 14, 2010 5:53 AM