Form Handler - how do I install one?

Discussion in 'Web Design and Development' started by p0intblank, Feb 5, 2007.

  1. p0intblank macrumors 68030

    Joined:
    Sep 20, 2005
    Location:
    New Jersey
    #1
    I have a form for users to fill out and I want the information they input emailed to me after they click the "Submit" button. I did a little research and found out I need a form handler. How do I go about actually installing one of these? I'm using Dreamweaver 8.

    Thank you! :)
     
  2. jsm4182 macrumors 6502

    Joined:
    Apr 3, 2006
    Location:
    Beacon, NY
    #2
    I use php for that. A quick Google Search will find you may tutorials on it.
     
  3. nightelf macrumors 6502

    Joined:
    Mar 25, 2003
    #3
    You need a Mail Form PHP script. They are very easy to use and most are free.
     
  4. p0intblank thread starter macrumors 68030

    Joined:
    Sep 20, 2005
    Location:
    New Jersey
    #4
    Thanks for the help. I found this one: http://formtoemail.com/

    It seems to do what I want, but I'm not sure how to implement it into the HTML. I already have my forms built, so I don't need the forms already in the code the script provides.

    Is there a way I can set it up so it works with the forms I have already created?
     
  5. dreamfocused macrumors member

    dreamfocused

    Joined:
    Jan 14, 2007
    Location:
    Toronto
    #5
    you'll need a script in either PHP or ASP to handle the mail depending on what server you are using
     
  6. jsm4182 macrumors 6502

    Joined:
    Apr 3, 2006
    Location:
    Beacon, NY
    #6
    You can set up the php as its own file and have the action of you form set to that file. With the script that site uses you should also have the conformation message in the php file.
     
  7. p0intblank thread starter macrumors 68030

    Joined:
    Sep 20, 2005
    Location:
    New Jersey
    #7
    Thank you! That's the answer I was looking for. I'm in class now, but I'll try it when I get home and let you know how it goes.
     
  8. p0intblank thread starter macrumors 68030

    Joined:
    Sep 20, 2005
    Location:
    New Jersey
    #8
    Okay I don't get what I am doing wrong. I followed the instructions from http://formtoemail.com/ and the web page after I click "Submit" is giving me the following error:

    Method Not Allowed
    The requested method POST is not allowed for the URL /test_form.html.

    Anyone know how to do this? It's really confusing me. I edited the code to my liking to add in the extra forms I needed (their code only had Name and Email fields). I uploaded the .php file and everything.

    Please help. :( I'm new to this whole PHP thing.
     
  9. p0intblank thread starter macrumors 68030

    Joined:
    Sep 20, 2005
    Location:
    New Jersey
    #9
    Okay so I found out godaddy.com supplies a CGI script for what I need. I'm still having the same problem, though. The forms are done and I am pointing to the correct CGI file. It keeps giving me the "POST" error. If anyone is curious, I have a test page set up:

    http://www.photodvd.tv/test_form.html

    Also why are the email and continue codes showing up? Sorry for all the trouble... I just really want to get this working as quickly as possible.

    Edit: It turns out Go Daddy has a php file in the FTP server as opposed to a CGI file. So I pointed my form to the php file and it looks like I got one step further. Instead of giving me the error message, it takes me back to my homepage... but it doesn't email me. I'm putting these two codes in after form:

    $my_email="daviddifranco@gmail.com"
    $continue="/formsent.html"

    Is that correct? I'm following the instructions.

    Edit #8935: It works! I just five emails from myself. I fixed up the forms' titles and everything seems to be fine. Now for a more complex question...

    How do I enable the user to upload multiple files, in this case photos? Dreamweaver has the form available, but it only allows up to one file at a time. Help is much appreciated! Thank you. :)
     
  10. dazzer21 macrumors 6502

    Joined:
    Oct 18, 2005
    #10
    Found a mild alternative to PHP...

    I've gone from not being able to get around the workings of formscripts, PHP, PERL etc to getting a script up and working with all the retrievable results overnight. It's not the classiest or cleanest way of data retieval - but it works (for me, anyway).

    www.jotform.com is a form-design site where you build forms using a wysiwyg java application. Once done you submit the form data to them (they hold the form processing script on their server) and then you simply rip the HTML code into your web software (Dreamweaver etc) and then you're done - the form works. However...

    In order to access the form data, you have to log in to jotform to access your form and retrieve the results manually. If you set up a reminder to do this daily, shouldn't be a real chore.

    It's a good site, actually. As well as the actual form side, there is a community forum which has a lot to offer. It's probably not much of a deal to many of you out there but I'll sleep well tonight - anyone else having trouble with forms, go there!
     

Share This Page