General discussion

  • Creator
    Topic
  • #2095618

    Setting up forms without CGI

    Locked

    by steve98 ·

    I would like to know how I can setup a tech support form that when filled out on my website, it is submitted to my e-mail and recieved in fields that I can understand without using CGI or any other other programming language.

All Comments

  • Author
    Replies
    • #3845509

      Setting up forms without CGI

      by daniel mcnamara ·

      In reply to Setting up forms without CGI

      It can be done but it’s kind of an ugly way of doing it and will ONLY work if the user has set up e-mail correctly on their browser.

      What you do is in the ACTION part of the

      tag you put someting like this:

      Basically when the user clicks submit it uses the browsers e-mail settings to send the form off.

      The ENCTYPE=”multipart/form-data” part of the tag is used to try and make the data that get’s mailed to you slighly more understandable but it’s still not all that great.

      Because it relies on the user’s e-mail settings this can result in a number of very intresting results for users, ranging from it complianing that it can’t send because the e-mail settings don’t exist to launching the user’s mail program with the form data all ready to go.

      For this reason I would really, really encourage you to use a simple Perl form parser – It saves a lot of headaches in the long run.

      • #3561202

        Setting up forms without CGI

        by steve98 ·

        In reply to Setting up forms without CGI

        Tried using the ENCTYPE=”multipart/form-data tag. Ended up sending an e-mail that couldn’t be interpreted. I found out the hard way that external scripts (such as cgi) are necessary to process forms with multiple fields. I posted the original question!

    • #3424340

      Setting up forms without CGI

      by steve98 ·

      In reply to Setting up forms without CGI

      This question was closed by the author

Viewing 1 reply thread