+ Reply to Thread
Results 1 to 10 of 10

Thread: How to submit a form to email (Contact Us Page)

  1. #1
    Yet another F-S member jpruss's Avatar
    Join Date
    Aug 2008
    Location
    Canada
    Posts
    66
    Thanks
    3
    Thanked 3 Times in 3 Posts

    How to submit a form to email (Contact Us Page)

    Hi,

    I've noticed several threads around here; with everyone asking the same question.

    Basically, you have a page with a "Contact US" form and when you try hitting submit you are not getting any email messages.

    This maybe because the free-space is not doing SMTP, it is turned off, or your email system thinks the message is SPAM.

    Whatever, the reason I have put together simple form to email program - FREE for all users of FREE-SPACE.

    Here's how to use it:


    Step #1) Go Here and Register
    http://www.bwebcentral.com/utils/form-email-setup.php

    **Be sure to put the exact page that your contact us page will be called in the "Website Form" field. Otherwise it will not work

    Step #2) After sign-up you will get an email with a secret key


    Step #3) Add the code below to your contact us page (remember to replace YOUR-SECRET-KEY below with the secret key you get in the email
    HTML Code:
    <H1>Contact Us</H1>
    
    <P>
    
    Please fill out the form below to send us a message.
    
    </P>
    
    <TABLE BORDER=0>
    <FORM ACTION="http://www.bwebcentral.com/utils/auto-form.php" METHOD="POST">
    <INPUT TYPE="hidden" Name="SecretKey" Value="YOUR-SECRET-KEY">
    
    <TD>Your Name: </TD><TD ALIGN="LEFT"><INPUT TYPE="text" Name="YourName" Value=""></TD><TR>
    
    <TD>Your Email:</TD><TD ALIGN="LEFT"> <INPUT TYPE="text" Name="FromAddr"></INPUT></TD><TR>
    
    <TD COLSPAN="2">
    <B>Your Message</B><BR>
    <TEXTAREA ROWS=5 COLS=80 Name="TheBody"></TEXTAREA>
    <P><BR>
    Verification:<INPUT Type="Text" Name="VerifyCode" Size=8>
    <script><!--
    a = Math.random();
    document.writeln("<IMG Width='100' Height='100' SRC=\"http://www.bwebcentral.com/randimg.php?var=sss&dummy=" + a + "\">");
    --></script>
    Type the letters you see in the box to the left. <A TARGET="_new" 
    HREF="http://en.wikipedia.org/wiki/Captcha">What's This?</A>
    
    <P ALIGN="CENTER">
    <INPUT TYPE="Submit" Name="Submit" Value="Send Message">
    </P>
    </FORM>
    That's it, go to the page you just created and try to submit a message!
    All of the items contained on the form will be emailed to the page you setup when you registered. You can have multiple form pages, but each will require a separate registration and thus a separate secret key

    You can add as many form fields as you like, but you cannot remove the CAPTCHA (Spam prevention tool)



    If you want an autoresponse sent when submit submits the form you will have to create a text file on your server containing the autoresponding text you would like to have emailed back to your users.

    Hope you enjoy it !
    I have studied many philosophers and many cats. The wisdom of cats is infinitely superior. -> http://blog.bwebcentral.com

  2. #2
    I am a newbie!
    Join Date
    Sep 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Still confused

    Hi, thanks for your info, but I'm not sure how to insert the secret code I received after I registered on the site you mention.

    My form is at http://mrgrau.xf-s.com/Online-Form.php



    Quote Originally Posted by jpruss View Post
    Hi,

    I've noticed several threads around here; with everyone asking the same question.

    Basically, you have a page with a "Contact US" form and when you try hitting submit you are not getting any email messages.

    This maybe because the free-space is not doing SMTP, it is turned off, or your email system thinks the message is SPAM.

    Whatever, the reason I have put together simple form to email program - FREE for all users of FREE-SPACE.

    Here's how to use it:


    Step #1) Go Here and Register
    http://www.bwebcentral.com/utils/form-email-setup.php

    **Be sure to put the exact page that your contact us page will be called in the "Website Form" field. Otherwise it will not work

    Step #2) After sign-up you will get an email with a secret key


    Step #3) Add the code below to your contact us page (remember to replace YOUR-SECRET-KEY below with the secret key you get in the email
    HTML Code:
    <H1>Contact Us</H1>
    
    <P>
    
    Please fill out the form below to send us a message.
    
    </P>
    
    <TABLE BORDER=0>
    <FORM ACTION="http://www.bwebcentral.com/utils/auto-form.php" METHOD="POST">
    <INPUT TYPE="hidden" Name="SecretKey" Value="YOUR-SECRET-KEY">
    
    <TD>Your Name: </TD><TD ALIGN="LEFT"><INPUT TYPE="text" Name="YourName" Value=""></TD><TR>
    
    <TD>Your Email:</TD><TD ALIGN="LEFT"> <INPUT TYPE="text" Name="FromAddr"></INPUT></TD><TR>
    
    <TD COLSPAN="2">
    <B>Your Message</B><BR>
    <TEXTAREA ROWS=5 COLS=80 Name="TheBody"></TEXTAREA>
    <P><BR>
    Verification:<INPUT Type="Text" Name="VerifyCode" Size=8>
    <script><!--
    a = Math.random();
    document.writeln("<IMG Width='100' Height='100' SRC=\"http://www.bwebcentral.com/randimg.php?var=sss&dummy=" + a + "\">");
    --></script>
    Type the letters you see in the box to the left. <A TARGET="_new" 
    HREF="http://en.wikipedia.org/wiki/Captcha">What's This?</A>
    
    <P ALIGN="CENTER">
    <INPUT TYPE="Submit" Name="Submit" Value="Send Message">
    </P>
    </FORM>
    That's it, go to the page you just created and try to submit a message!
    All of the items contained on the form will be emailed to the page you setup when you registered. You can have multiple form pages, but each will require a separate registration and thus a separate secret key

    You can add as many form fields as you like, but you cannot remove the CAPTCHA (Spam prevention tool)



    If you want an autoresponse sent when submit submits the form you will have to create a text file on your server containing the autoresponding text you would like to have emailed back to your users.

    Hope you enjoy it !

  3. #3
    Yet another F-S member jpruss's Avatar
    Join Date
    Aug 2008
    Location
    Canada
    Posts
    66
    Thanks
    3
    Thanked 3 Times in 3 Posts

    Hi,

    Basically you have to go into your site editor, and go to the page with your form.

    When you open it up you should see a little tab called "Source", or "HTML Source", or something similar.

    When you lick on that you will see all of the source for the page.

    Scroll down and look for text that looks like this

    <form action="scripts/form/rvform.php" method="post" name="

    delete everything between that text and the part that ends with

    </form>

    Then copy and paste the text above inside. (And replace the part that says "YOUR-SECRET-KEY" with the key you recieved in the email.

    Hope this helps.
    I have studied many philosophers and many cats. The wisdom of cats is infinitely superior. -> http://blog.bwebcentral.com

  4. #4
    F-S Fan Zana_Int_Elfy's Avatar
    Join Date
    Aug 2008
    Location
    Left the elvin forest and was followed by UFOs to Sunny Sunderland
    Posts
    393
    Thanks
    33
    Thanked 21 Times in 21 Posts

    I am using javascript& normal form submission script for my email form, never used server side scripts, as when I was building it offline, I had reference to the fact that server side scripts were not possible on free hosts...

  5. #5
    Yet another F-S member jpruss's Avatar
    Join Date
    Aug 2008
    Location
    Canada
    Posts
    66
    Thanks
    3
    Thanked 3 Times in 3 Posts

    Hi,

    php scripting works on free-space !
    I have studied many philosophers and many cats. The wisdom of cats is infinitely superior. -> http://blog.bwebcentral.com

  6. Thanks jpruss, from:

    Zana_Int_Elfy (09-03-2008)

  7. #6
    Yet another F-S member
    Join Date
    Oct 2008
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    I get everytime the message "Sorry the validation code you entered is incorrect". I tried many times but everytime I get the error.
    All fields ar filled in correctly.

  8. #7
    Super Moderator bDub7's Avatar
    Join Date
    Apr 2008
    Location
    So Cal
    Posts
    3,053
    Thanks
    32
    Thanked 317 Times in 279 Posts

    PHP FTW! Thanks for this little tutorial, JP
    ...service with a smile ...
    T-Shirt Hell

    || All Day Every Day ||

  9. #8
    Yet another F-S member
    Join Date
    Oct 2008
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    And one day later it works fine!!
    Thanks jpruss!

  10. #9
    Yet another F-S member
    Join Date
    Oct 2008
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    I only do not receive a response, however I filled in the adress of a .txt file.
    What's going wrong ??
    Can anybody help me?

  11. #10
    Yet another F-S member
    Join Date
    Oct 2008
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Quote Originally Posted by jesper View Post
    I only do not receive a response, however I filled in the adress of a .txt file.
    What's going wrong ??
    Can anybody help me?
    Sorry. I placed the txt-file in a password protected folder

    Thanks jpruss!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts