+ Reply to Thread
Results 1 to 38 of 38

Thread: Email Forms
      
   

  1. #1
    Anonymous is offline Members
    Join Date
    Mar 2005
    Posts
    440

    Default Email Forms

    Thanks for all previous help - things moving along quite nicely! :D
    Next question!! I've composed a form on a page that I've called Contact Us. The idea being - a visitor fills it in - presses the button and Hey Presto - the completed form arrives in my in-box! I've watched the relevant Tutorial (8 million times!).
    I've published the page and tested it. I can fill the form in, but when I press the submit button - it just gives me the option to send an email. The completed form is not sent - but at least I'm halfway there. How should I configure the form to make it work properly?
    Last edited by Sarah; 06-19-2005 at 04:27 PM.

  2. #2
    Anonymous is offline Members
    Join Date
    Mar 2005
    Posts
    440

    Default

    Sending (client sided) forms from a PC works like this:
    Your browser creates a email message and will use your default email client to send this message (using MAPI).
    To configure your default email client:
    Internet Explorer Menu->Tools->Internet Options->Programs->Email
    Select your email client (prefferable Outlook Express).
    Also make sure it's the default MAPI client:
    In Outlook Express->Menu->Tools->Options->General Tab
    and click This application is the default Mail Handler ->Make Default

    If you like you can read the following internet articles for more details:
    http://webdesign.about.com/cs/forms/a/aamailtobroke.htmor
    http://support.microsoft.com/default...b;en-us;186229
    or
    http://support.microsoft.com/default...b;en-us;279460

    But since you're using Vodahost you can alos use a PHP script to create a more reliable solution.

  3. #3
    Anonymous is offline Members
    Join Date
    Mar 2005
    Posts
    440

    Default

    I have created an example script for you that processes your form succesfully using a generic PHP script.

    Instructions:
    Change the form properties (in BlueVoda) to:
    Action: FEEDBACK.PHP
    Method: POST
    EncodingType:
    (remove the text/plain, so the field becomes empty)

    Now create a new file using Notepad and call it: FEEDBACK.PHP
    Enter the following code into the file:

    Code:
    <HTML>
    <HEAD>
    <TITLE>Thank you for your feedback</TITLE>
    </HEAD>
    <BODY>
    <H2>Thank you for your feedback!</H2>
    <?PHP
    $email = $HTTP_POST_VARS[email];
    $mailto = "feedback@yourdomain.com";
    $mailsubj = "Feedback form";
    $mailhead = "From: $email\n";
    reset ($HTTP_POST_VARS);
    $mailbody = "Values submitted from web site form:\n";
    while (list ($key, $val) = each ($HTTP_POST_VARS)) 
    {
    $mailbody .= "$key : $val\n"; 
    }
    mail($mailto, $mailsubj, $mailbody, $mailhead);
    ?>
    </BODY>
    </HEAD>
    Upload this file to your domain.
    Last edited by Pablo; 06-29-2005 at 06:54 PM.

  4. #4
    Judy Khoo is offline Members
    Join Date
    May 2005
    Posts
    30

    Default Submitting form for email

    Hi

    I have used the example script you gave and I have no problem in getting the mail sent out.

    However, when I open the mail from my mail box, I find the following message was sent:

    Values submitted from web site form:
    Name : test
    Email : judyksp********.com
    S1 : test
    Submit : Send


    and the sender is unknown.

    how can i correct this to reflect the right information from my email form?

    I have three fields in the form I created:

    a. Name - where the user is to type his/her name
    b. email - where the user is to type his/her email address
    c. Message - a free text area for the person to type the message

    I am extremely new to web hosting and scripting. I have no knowledge of PHP either. Hope you can assist.

  5. #5
    Pablo is offline Moderator
    Join Date
    May 2005
    Posts
    507

    Default

    Since the email is send from the server where your domain is running on you can't see the actually sender (since it's the vodahost server that sent you the message when the form is submitted). But your visitors should enter there email address in one of the fields you create with BlueVoda.

    Looking at the data you received in the message, it looks like you already have a field for the email address?

    Pablo

  6. #6
    Judy Khoo is offline Members
    Join Date
    May 2005
    Posts
    30

    Default

    So what I saw in the contents of the mail is what the visitor would have typed, right? And if I wish to reply to them, it would be to the email that was displayed in the message, right?

    Thanks.

  7. #7
    Pablo is offline Moderator
    Join Date
    May 2005
    Posts
    507

    Default

    Absolutely correct.

  8. #8
    Judy Khoo is offline Members
    Join Date
    May 2005
    Posts
    30

    Default

    Thank you very much for your assistance.

    I have one more request and hope you can help.

    Currently, your scripts returns a message on successful submission on a new page. How do I get to change it to show on the same page but perhaps at the bottom of the screen? Or if I have to do it on a new page, how do I get to format the page to look better?

  9. #9
    Pablo is offline Moderator
    Join Date
    May 2005
    Posts
    507

    Default

    There is currently no easy way to do this, but here something that might work for you:

    1. Create a new page with BlueVoda and save is as 'feedback.bvp'.
    2. Select View->Page HTML from the menu
    3. Select the Inside Body tag and enter this code:
    Code:
    <?PHP 
    $email = $HTTP_POST_VARS[email]; 
    $mailto = "feedback@yourdomain.com"; 
    $mailsubj = "Feedback form"; 
    $mailhead = "From: $email\n"; 
    reset ($HTTP_POST_VARS); 
    $mailbody = "Values submitted from web site form:\n"; 
    while (list ($key, $val) = each ($HTTP_POST_VARS)) 
    { 
    $mailbody .= "$key : $val\n"; 
    } 
    mail($mailto, $mailsubj, $mailbody, $mailhead); 
    ?>
    4. Do the usual page formatting.
    5. Publish the page to your VodaHost account.
    6. Login to your cPanel and select File Manager to rename feedback.html to feedback.php
    Of course you can also use your favorite FTP client to rename the file.

    Pablo
    Last edited by Pablo; 09-10-2005 at 01:47 PM.

  10. #10
    Judy Khoo is offline Members
    Join Date
    May 2005
    Posts
    30

    Default

    Thanks. I will try it. Meanwhile, just a question - do I have to remove the earlier feedback.php that was created and replace with this new php?

  11. #11
    VodaHost's Avatar
    VodaHost is offline General & Forum Administrator
    Join Date
    Mar 2005
    Location
    Wilmington, Delaware USA
    Posts
    11,390

    Default

    yes please

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    07031847328 / United Kingdom

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)



  12. #12
    Judy Khoo is offline Members
    Join Date
    May 2005
    Posts
    30

    Default

    Thank you for the script. It works.

  13. #13
    busymomz is offline Members
    Join Date
    Jun 2005
    Location
    Kansas
    Posts
    2

    Question Question about this topic

    I'm a bit new to all this, and I happened to stumble across your discussion which was just what I was looking for, and I needed some help.

    I have tinkered with the code here and there getting farther and farther along, until I have hit a barrier. When I press my submit button, I get a message that says "No Input File Specified".

    Any Idea what to do?

    Thanks

  14. #14
    VodaHost's Avatar
    VodaHost is offline General & Forum Administrator
    Join Date
    Mar 2005
    Location
    Wilmington, Delaware USA
    Posts
    11,390

    Default

    have you named your php file correctly?

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    07031847328 / United Kingdom

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)



  15. #15
    busymomz is offline Members
    Join Date
    Jun 2005
    Location
    Kansas
    Posts
    2

    Default

    OK, I figured it all out, and now I'm up and running.
    However, I would like to create another type of form but am not sure how to do it.
    I just need to be able to have the user define what email the form is sent to.
    Is this possible?

  16. #16
    allan is offline Members
    Join Date
    May 2005
    Posts
    50

    Default

    How do I upload this to the domain? I know, I know, I don't know that much about all these stuff. Thanks for your help Pablo. Hey you look like the whatyoumacallit guy in the movie Matrix but I think Susan looks better than you. :)


    Quote Originally Posted by Anonymous
    I have created an example script for you that processes your form succesfully using a generic PHP script.

    Instructions:
    Change the form properties (in BlueVoda) to:
    Action: FEEDBACK.PHP
    Method: POST
    EncodingType:
    (remove the text/plain, so the field becomes empty)

    Now create a new file using Notepad and call it: FEEDBACK.PHP
    Enter the following code into the file:

    Code:
    &lt;HTML>
    &lt;HEAD>
    &lt;TITLE>Thank you for your feedback&lt;/TITLE>
    &lt;/HEAD>
    &lt;BODY>
    &lt;H2>Thank you for your feedback!&lt;/H2>
    &lt;?PHP
        $email = $HTTP_POST_VARS[email];
        $mailto = "feedback@yourdomain.com";
        $mailsubj = "Feedback form";
        $mailhead = "From: $email\n";
        reset ($HTTP_POST_VARS);
        $mailbody = "Values submitted from web site form:\n";
        while (list ($key, $val) = each ($HTTP_POST_VARS)) 
        {
            $mailbody .= "$key : $val\n"; 
         }
        mail($mailto, $mailsubj, $mailbody, $mailhead);
    ?>
    &lt;/BODY>
    &lt;/HEAD>
    Upload this file to your domain.

  17. #17
    allan is offline Members
    Join Date
    May 2005
    Posts
    50

    Default

    Ooops! I meant Sarah! :)

    Quote Originally Posted by allan
    How do I upload this to the domain? I know, I know, I don't know that much about all these stuff. Thanks for your help Pablo. Hey you look like the whatyoumacallit guy in the movie Matrix but I think Susan looks better than you. :)

  18. #18
    Pablo is offline Moderator
    Join Date
    May 2005
    Posts
    507

    Wink

    Quote Originally Posted by allan
    Ooops! I meant Sarah! :)
    Well, Allan fortunately we are not hired for our looks...
    Forum Moderator
    BlueVoda Specialist

  19. #19
    Sarah's Avatar
    Sarah is offline Colonel
    Join Date
    May 2005
    Location
    Wilmington, Delaware
    Posts
    513

    Default

    use blueftp

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    07031847328 / United Kingdom

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)



  20. #20
    George's Avatar
    George is offline Customer Support
    Join Date
    May 2005
    Location
    Wilmington, Delaware
    Posts
    76

    Default

    I think Sarah hired me for my looks :)
    George Fountakos
    VodaHost
    www.VodaHost.com
    Your Website People
    +1-302-283-3777 USA / Canada / International
    (0044) 020 8816 8319 / United Kingdom

  21. #21
    VodaHost's Avatar
    VodaHost is offline General & Forum Administrator
    Join Date
    Mar 2005
    Location
    Wilmington, Delaware USA
    Posts
    11,390

    Talking George Super Stud

    yes, George we hired you for your good looks. Also it does
    not hurt any that your father owns our office building;)

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    07031847328 / United Kingdom

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)



  22. #22
    allan is offline Members
    Join Date
    May 2005
    Posts
    50

    Default

    Quote Originally Posted by Sarah
    use blueftp
    What blueftp? Please give me step by step instruction. You lied to me. You said that your job was just bringing ***** coffee. You took advantage of a newby. :)

  23. #23
    allan is offline Members
    Join Date
    May 2005
    Posts
    50

    Default

    Quote Originally Posted by VodaHost
    yes, George we hired you for your good looks. Also it does
    not hurt any that your father owns our office building;)
    Ooooh, I see. Insider trading.

  24. #24
    VodaHost's Avatar
    VodaHost is offline General & Forum Administrator
    Join Date
    Mar 2005
    Location
    Wilmington, Delaware USA
    Posts
    11,390

    Default

    You will find BlueFTP in bluevoda

    tools > FtPManager

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    07031847328 / United Kingdom

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)



  25. #25
    Stroke.nz's Avatar
    Stroke.nz is offline The Man
    Join Date
    May 2005
    Location
    New Zealand
    Posts
    188

    Exclamation

    Is there a script to make sure the client wrights a message into the fields before submitting?

    Also is there a time limit script for clients sending emails, to stop spamming by mistake.

  26. #26
    Stroke.nz's Avatar
    Stroke.nz is offline The Man
    Join Date
    May 2005
    Location
    New Zealand
    Posts
    188

    Thumbs up Answer

    For Fields
    Place in the head section of the page

    <script>

    function checkrequired(which){
    var pass=true
    if (document.images){
    for (i=0;i<which.length;i++){
    var tempobj=which.elements[i]
    if (tempobj.name.substring(0,=="required"){
    if (((tempobj.type=="text"||tempobj.type=="textarea") &&tempobj.value=='')||(tempobj.type.toString().cha rAt(0)=="s"&&tempobj.selectedIndex==-1)){
    pass=false
    break
    }
    }
    }
    }
    if (!pass){
    alert("One or more of the required elements are not completed. Please complete them, then submit again!")
    return false
    }
    else
    return true
    }
    </script>
    Add this to the "INSIDE TAG" of your form

    <form onSubmit="return checkrequired(this)">

    then lastly add "required" to each of names you called your boxes i.e. requiredname


    Submit Button

    Place in the head of the page

    <script type="text/javascript">

    //Enter error message to display if submit button has been pressed multiple times below.
    //Delete below line if you don't want a message displayed:

    var formerrormsg="You\'ve attempted to submit the form multiple times.\n Please reload page if you need to resubmit form."

    function checksubmit(submitbtn){
    submitbtn.form.submit()
    checksubmit=blocksubmit
    return false
    }

    function blocksubmit(){
    if (typeof formerrormsg!="undefined")
    alert(formerrormsg)
    return false
    }

    </script>

    then add the red part in after tag of the form
    "
    <input type="submit" value="Submit" onClick="return checksubmit(this)">
    </form>

    Thanks to Simon

  27. #27
    marton23 is offline Private
    Join Date
    Sep 2005
    Posts
    1

    Default

    hey i need a pass and username to publish it where do i get it do i have to pay?

  28. #28
    Maddog's Avatar
    Maddog is offline Lieutenant Colonel
    Join Date
    May 2005
    Location
    UK
    Posts
    514

    Default

    Quote Originally Posted by marton23
    hey i need a pass and username to publish it where do i get it do i have to pay?
    goto

    http://www.vodahost.com/
    www.bluevodaexchangelink.com
    BluevodaExchangeLink Help Center
    Bluevodaexchangelink Forum

    The only place for bluevoda site to be linked with!

  29. #29
    rana is offline Private
    Join Date
    Sep 2005
    Posts
    4

    Default

    Hi,

    I am having serious problem running a SIMPLE email PHP script !

    The emails are just not reaching any mailboxes.

    The script -> (http://qmsys.info/mail.php)
    <?
    $result = mail("sanjeev.rana@hewitt.com", "the subject", "Line1","From: qm@qmsys.info\n");
    if ($result == TRUE)
    echo "Success";
    else
    echo "Failed";
    ?>

    What am I doing wrong ?? Everytime the output is "Success", however NO EMAIL

    Please assist ASAP.

  30. #30
    Join Date
    Oct 2005
    Location
    England, UK
    Posts
    4,208

    Question Quick question please

    Hi Dave (and anyone else who may be able to help)

    Your advice, via the VHCF, have helped me a lot - thanks. A quicky about this one - I thought I could, maybe, adapt it to fit my needs -

    where do I use this script? Does it go in an HTML box on the relevant BV page? or do I need to create something new? Soz - I'm a bit green at all this. Thanks for any help you can add.



    Quote Originally Posted by Stroke.nz
    For Fields
    Place in the head section of the page

    <script>

    function checkrequired(which){
    var pass=true
    if (document.images){
    for (i=0;i<which.length;i++){
    var tempobj=which.elements[i]
    if (tempobj.name.substring(0,=="required"){
    if (((tempobj.type=="text"||tempobj.type=="textarea") &&tempobj.value=='')||(tempobj.type.toString().cha rAt(0)=="s"&&tempobj.selectedIndex==-1)){
    pass=false
    break
    }
    }
    }
    }
    if (!pass){
    alert("One or more of the required elements are not completed. Please complete them, then submit again!")
    return false
    }
    else
    return true
    }
    </script>
    Add this to the "INSIDE TAG" of your form

    <form onSubmit="return checkrequired(this)">

    then lastly add "required" to each of names you called your boxes i.e. requiredname


    Submit Button

    Place in the head of the page

    <script type="text/javascript">

    //Enter error message to display if submit button has been pressed multiple times below.
    //Delete below line if you don't want a message displayed:

    var formerrormsg="You\'ve attempted to submit the form multiple times.\n Please reload page if you need to resubmit form."

    function checksubmit(submitbtn){
    submitbtn.form.submit()
    checksubmit=blocksubmit
    return false
    }

    function blocksubmit(){
    if (typeof formerrormsg!="undefined")
    alert(formerrormsg)
    return false
    }

    </script>

    then add the red part in after tag of the form
    "
    <input type="submit" value="Submit" onClick="return checksubmit(this)">
    </form>

    Thanks to Simon

  31. #31
    vugter is offline Sergeant
    Join Date
    Oct 2005
    Posts
    33

    Default

    Hello,

    Anyone got a script i can paste in the 'recommended' php script email form from Voda to:

    - Make sure all values are entered
    - A valid email is entered
    - The form is cleared after it has been sent

    Thanx

    Paul

  32. #32
    Trigger004 is offline First Lieutenant
    Join Date
    Oct 2005
    Posts
    151

    Lightbulb

    Quote Originally Posted by vugter
    Hello,

    Anyone got a script i can paste in the 'recommended' php script email form from Voda to:

    - Make sure all values are entered
    - A valid email is entered
    - The form is cleared after it has been sent

    Thanx

    Paul
    when you go to toturials bluevode videos, and your watchen that video about how to make a simple form look at the bottom of that and it will have it there
    HAVE FUN!

  33. #33
    vugter is offline Sergeant
    Join Date
    Oct 2005
    Posts
    33

    Default

    Thanx Trigger, but that is the form I now have.

    This form doesn't do the things I mentioned
    Any more suggestions??

  34. #34
    Rubicon is offline Corporal
    Join Date
    Sep 2005
    Posts
    10

    Default Re: Email Forms

    On my form I have an upload box for viewers to submit pictures. I have tried to test my form sending a picture to myself. When I check my email
    there is no information what so ever! I've tried sending to my outlook express account, and my ISP account. Below is what I receive.

    Outlook account:
    Attach: POSTDATA.ATT


    ISP account:
    Attachment 1: POSTDATA.ATT (application/octet-stream)

    When my form is set to multipart/form-data I receive only the above.

    When my form is set to text/plain, I recieve all information, but only the file
    name of the attached picture.

    What am I doing wrong?

  35. #35
    civcivcikcikder is offline Sergeant
    Join Date
    Nov 2005
    Posts
    20

    Default Re: Email Forms

    Hi...
    Another question :
    After submitting the form, "thank you for your feedback" page opens... Are there any way to put that page a home link... I mean it is a little bit funny to go back with the back button of the browser...! Think that you have a website , but the visitor must use the back button... Thanks a lot...

  36. #36
    simranpal is offline Private
    Join Date
    Jan 2006
    Posts
    1

    Default Re: Email Forms

    hi

  37. #37
    adnankyo2006 is offline Private
    Join Date
    Feb 2006
    Posts
    1

    Thumbs up Re: Email Forms

    hello how are you.i hope you are a fine . i am Kyo.my nick name adnan.

  38. #38
    sandeepvelpula is offline Private
    Join Date
    Mar 2006
    Posts
    1

    Default Re: Email Forms

    Hi iam sandy
    my date of birth is same is also on same day
    Sandeep.V

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. Totally frustrated with email forms
    By Tristan in forum Email Problems (POP, SMTP & Webmail)
    Replies: 3
    Last Post: 11-12-2005, 01:38 AM
  2. HELP!!! Email forms
    By lionofj in forum General Support Issues
    Replies: 0
    Last Post: 10-01-2005, 10:39 PM
  3. cPanel email problem
    By Lisa in forum Email Problems (POP, SMTP & Webmail)
    Replies: 14
    Last Post: 07-18-2005, 03:24 PM
  4. Email links problem - help !!!!
    By bounce in forum General Support Issues
    Replies: 1
    Last Post: 06-16-2005, 07:12 PM
  5. Email forms on BlueVoda
    By Charmed in forum General Support Issues
    Replies: 1
    Last Post: 06-06-2005, 09:53 PM

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49