Announcement

Collapse
No announcement yet.

Contact Us Form

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Contact Us Form

    DCox mentioned in another thread about problems with their contact us form not sending correctly.

    I messed with mine for a few days last week then gave up and went on to something else.

    I had mine set up for monstercommerce, but seems on 3DCart it needs to use the sendmail.asp. I've contacted Gonzalo twice and feel really stupid, because I still don't have it right.

    Anyone have any tips?

  • #2
    I am the same way. I think I have half a dozen messages from tech support and I cannot get it right. Not sure if its b/c I don't have the codeing knowledge necessary or if there is a misunderstanding about what I am looking for. It seems pretty simple, so I really think its something on the backend wrong. The reason I say that is I have tried every combination of inputs, names, ect. and none work as I hope.

    Also, this is off topic, but what are the rules for web addresses in our signature? I checked the terms of use and didn't see anything prohibiting it, but I don't want to cause any problems. I noticed no one else has theirs and obviously we all websites. Is there a rule I missed, or is it just a bad idea to have it there?
    www.totaloutdoorsman.com - Your Total Choice for the Outdoors

    Comment


    • #3
      On the signature question, no problems here, make it as you wish :).

      As far as your forms question. The default database came with a contact for which you can use. If you erased it overwrote it, the code is basically:

      HTML Code:
      <form action="aspsendmail.asp" method="post">
      <p>
      <input name="_recipients" type="hidden" value="[email protected]" />
      <input name="_subject" type=hidden value="Subject of email">
      <input name="_redirect" type=hidden value="http://example.com/thanks.html">
      
      Name: <input name="Name" type="text" /><br />
      Customer ID: <input name="Customer ID" type="text" /><br />
      Email Address: <input name="Email" type="text" /><br />
      Comments:<br />
      <textarea name="Comments" rows=5 cols=50></textarea>
      <input type="submit" value="Submit" />
      <input type="reset" value="Clear" />
      </p>
      </form>
      
      
      Notice the 3 hidden fields, these are very important, if you mis-name them, or do not have them at all, chances are your form is not going to work.

      Jean, last time i looked at your form you where missing the _redirect input, this is why when you submitted it wasnt going to your "thank you page"
      ----------------------------
      Gonzalo Gil
      3dCart Support
      800-828-6650 x111

      Comment


      • #4
        Lets start brainstorming!

        Hmm, that is the same code I am using. I can easily make it send the email to the same address, but I am hoping to have it split up depending on the inquiry. That is my preferred method, but I could also have them all sent to the same email address, but have different subject lines. The first would help keep things organized better, but the subject lines would be better than nothing. The page on my site is here:

        http://www.totaloutdoorsman.com/_ep_18-1.html

        Here is my code:

        HTML Code:
        <FORM name=fform action=aspsendmail.asp method=post>
        	  	<input name="_recipients" type="hidden" value=_recipients>
        	  	<INPUT type=hidden value="Question from Website" name= _subject>
        	    <INPUT type=hidden value= "Contact-Thank-You_ep_19-1.html" name=_redirect>
                <table width="141" border="0" cellspacing="0" cellpadding="2" align="center">
                  <tr> 
                    <td height="24" width="50%" nowrap> 
                      <div align="right"><font face="Arial, Helvetica, sans-serif" size="2">Title:</font></div>
                    </td>
                    <td width="50%" height="24"> 
                      <div align="left"> 
                        <select name="Prefix">
                          <option value="Mr.">Mr.</option>
                          <option value="Mrs.">Mrs.</option>
                          <option value="Ms.">Ms.</option>
                          <option value="Dr.">Dr.</option>
                        </select>
                      </div>
                    </td>
                  </tr>
                  <tr> 
                    <td width="50%" nowrap> 
                      <div align="right"><font face="Arial, Helvetica, sans-serif" size="2">First 
                        Name:</font></div>
                    </td>
                    <td width="50%"> 
                      <div align="left"> 
                        <input type="text" name="First Name" size="30">
                      </div>
                    </td>
                  </tr>
                  <tr> 
                    <td width="50%" nowrap> 
                      <div align="right"><font face="Arial, Helvetica, sans-serif" size="2">Last 
                        Name:</font></div>
                    </td>
                    <td width="50%"> 
                      <div align="left"> 
                        <input type="text" name="Last Name" size="30">
                      </div>
                    </td>
                  </tr>
                  <tr> 
                    <td width="50%" nowrap> 
                      <div align="right"><font face="Arial, Helvetica, sans-serif" size="2">Email 
                        Address:</font></div>
                    </td>
                    <td width="50%"> 
                      <div align="left"> 
                        <input type="text" name="Email Address" size="30">
                      </div>
                    </td>
                  </tr>
                  <tr> 
                    <td width="50%" nowrap> 
                      <div align="right"><font face="Arial, Helvetica, sans-serif" size="2">Inquire 
                        About:</font></div>
                    </td>
                    <td width="50%"> 
                      <div align="left"> 
                        <select name= _recipients>
                          <option value="[email protected]">A Product</option>
                          <option value="[email protected]">A Website Problem/Comment</option>
                        </select>
                      </div>
                    </td>
                  </tr>
                  <tr> 
                    <td nowrap valign="top"> 
                      <div align="right"><font face="Arial, Helvetica, sans-serif" size="2">Comments:</font></div>
                    </td>
                    <td> 
                      <div align="left"> 
                        <textarea name="Comments" cols="23" rows="6"></textarea>
                      </div>
                    </td>
                  </tr>
                  <tr> 
                    <td colspan="2" valign="top"> 
                      <div align="center"> </div>
                      <div align="center"><input type="submit" value="Submit Comments">   
        <input type="reset" value="Clear Form"> </div>
                    </td>
                  </tr>
                </table>
                <p> </p>
        		</FORM>
        Any ideas?
        www.totaloutdoorsman.com - Your Total Choice for the Outdoors

        Comment


        • #5
          This line of code )in dcox's form is what I got from Gonzalo too:
          <FORM name=fform action=aspsendmail.asp method=post>
          But I see that form "name" is not use in the one G posted. Is that important to have?

          Comment


          • #6
            dCox -

            It looks like you are trying to use a substitution variable for the recepients. Could it be that "_recepients" is a reserved word and can only be used in the hidden name field?

            Example:
            name="_recipients"
            value=_recipients

            Maybe you can change to: value="recp_email_address"
            Your select statement would be: <select name= recp_email_address>

            I may be totally wrong on my observation.

            dynoJean --

            My form email works and the code looks like this:

            <FORM name="Feedback Form" action=aspsendmail.asp method=post>
            <INPUT type=hidden [email protected] name=_recipients>
            <INPUT type=hidden value="Feedback from Website" name=_subject>
            <INPUT type=hidden value=example.html name=_redirect>

            Hope this helps.
            Breeze

            Comment


            • #7
              Originally posted by dcox
              I noticed no one else has theirs and obviously we all websites.
              In my early days, I listed my web address. However, while g**gling my site, I found that my thread comments were spidered. I didn't really want my comments available for all to see so easily.

              Just my 2 cents.

              Breeze

              Comment


              • #8
                Breeze,

                Thanks for the suggestion. It didn't work, but it did give me an idea... I changed the value "input name =" to my email address, which should eliminate the need for the form to do anything for the email address. Even after doing that, it still sent the email to my customer service address rather than my personal address... What do you make of that?
                www.totaloutdoorsman.com - Your Total Choice for the Outdoors

                Comment


                • #9
                  Originally posted by dcox View Post
                  Breeze,

                  Thanks for the suggestion. It didn't work, but it did give me an idea... I changed the value "input name =" to my email address, which should eliminate the need for the form to do anything for the email address. Even after doing that, it still sent the email to my customer service address rather than my personal address... What do you make of that?

                  Dcox,

                  I know it's been awhile since this post. But I'm having the same problem with my form. It's sending the information to my customer service email address instead of webmaster. Do you or anyone else have any ideas on what I should do to get the form to send info to the address that I've specified?

                  Comment


                  • #10
                    Originally posted by ScribeTime View Post
                    Dcox,

                    I know it's been awhile since this post. But I'm having the same problem with my form. It's sending the information to my customer service email address instead of webmaster. Do you or anyone else have any ideas on what I should do to get the form to send info to the address that I've specified?
                    Just got it to work....

                    Comment

                    Working...
                    X