Results 1 to 27 of 27

Thread: Email form
      
   

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

    Default Email form

    How do I insert this in the html? Do I insert it in "before tag", "inside body tag" or "between head tag"?

    <HTML>
    <HEAD>
    <TITLE>Succesfully processed your email</TITLE>
    </HEAD>
    <BODY>
    <H2>Thanks for your email!</H2>

    <?PHP
    $email = $HTTP_POST_VARS[email];
    $mailto = "lct@lctfinejewelers.com;
    $mailsubj = "Email";
    $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>

    I can't figure this out because there is the <HTML> <HEAD> at the top and </BODY> <HEAD> at the end of this insert and it seems that would be aduplication of the original html and it may cause confusion. I have also inserted the statcount in between the body tag already. Please give me instruction. Thanks.

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

    Default

    Just copy the PHP script and ignore all the default HTML stuff:
    Place this code in 'Beginnig of body':

    <?PHP
    $email = $HTTP_POST_VARS[email];
    $mailto = "lct@lctfinejewelers.com;
    $mailsubj = "Email";
    $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);
    ?>
    Forum Moderator
    BlueVoda Specialist

  3. #3
    dean023's Avatar
    dean023 is offline Second Lieutenant
    Join Date
    Jun 2005
    Posts
    148

    Question

    Quote Originally Posted by Pablo
    Just copy the PHP script and ignore all the default HTML stuff:
    Place this code in 'Beginnig of body':

    <?PHP
    $email = $HTTP_POST_VARS[email];
    $mailto = "lct@lctfinejewelers.com;
    $mailsubj = "Email";
    $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);
    ?>

    does this work for any form as i can't seem to get it to work!
    do i need to set up a PHP file?

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

    Default

    Forum Moderator
    BlueVoda Specialist

  5. #5
    dean023's Avatar
    dean023 is offline Second Lieutenant
    Join Date
    Jun 2005
    Posts
    148
    Quote Originally Posted by Pablo

    I have read this and done as described but it's not working for me.

    i've copied the script in notepad
    called it feedback
    uploaded it to file manager
    which did nothing - copied feedback to public_html file
    now when submitted just displays the script text

    what am i doing wrong?

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

    Default

    Did you give it the extension .PHP?
    Did you correctly setup your form to use the file?

    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:
    <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>
    Last edited by Pablo; 06-19-2005 at 10:35 AM.
    Forum Moderator
    BlueVoda Specialist

  7. #7
    dean023's Avatar
    dean023 is offline Second Lieutenant
    Join Date
    Jun 2005
    Posts
    148

    Default

    this is what is in my feedback.php file:
    <HTML>
    <HEAD>
    <TITLE>Thank you for your feedback&lt;/TITLE>
    </HEAD>
    <BODY>
    <H2>Thank you for your feedback!&lt;/H2>
    <?PHP
    $email = $HTTP_POST_VARS[email];
    $mailto = "dean023****.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>

    i've changed the email address to mine but thats the only change.

    when i saved the file i just called it FEEDBACK and the .php was added because of what file it was selected. this has been save in my public_html file is that the right place?

    If i saved it as FEEDBACK.PHP it was saved as FEEDBACK.PHP.txt
    which didn't came up as page not found. so i presume the first was correct.
    but when i submit it opens up a blank page and thats it.

    The tutorials are geared up for selling this product and makes everything so simple but now i've joined nothing seems straight forward without some knowledge.

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

    Default

    First of all this script has nothing to do with BlueVoda and is provided for support purposes only. It is created to work around bugs and design flaws in 3rd party products. The script is provided "AS IS" without warranty of any kind. However it seems to work for most of the users.

    It MUST have the .php externsion not .txt or .php.txt
    Please replace all
    &lt;
    with
    <
    Forum Moderator
    BlueVoda Specialist

  9. #9
    dean023's Avatar
    dean023 is offline Second Lieutenant
    Join Date
    Jun 2005
    Posts
    148

    Default

    Quote Originally Posted by Pablo
    First of all this script has nothing to do with BlueVoda and is provided for support purposes only. It is created to work around bugs and design flaws in 3rd party products. The script is provided "AS IS" without warranty of any kind. However it seems to work for most of the users.

    It MUST have the .php externsion not .txt or .php.txt
    Please replace all
    &lt;
    with
    <
    Pablo
    many thanks for you help it is appreciated. I'm just very fustrated and believe if i can't do the simpliest of tasks then i'm not going to achieve my web site for the use of selling things. I just don't seem to be able to anything.

    i've uploaded the zip file of cubecart and it won't extract the contents.

    i'll change the &lt; now and give it ago

    thanks again

  10. #10
    dean023's Avatar
    dean023 is offline Second Lieutenant
    Join Date
    Jun 2005
    Posts
    148

    Default

    ok some progress.

    now instead of a blank page i get "thankyou for your feedback"

    however no email is sent to me

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

    Default

    check your bulk mail & spam folders

    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
    dean023's Avatar
    dean023 is offline Second Lieutenant
    Join Date
    Jun 2005
    Posts
    148

    Default

    Quote Originally Posted by Sarah
    check your bulk mail & spam folders

    you little beauty!!!!! in my spam folder on aol. used this for testing purposes will now change addy to web email.

    thought i was going mad

    many thanks!!!

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

    Default

    Ooops again! I posted the message in the wrong forum. Okay, Pablo, How do I upload the feedback.php in the domain from the notepad. As I was saying in the other forum, you look like the guy in the movie, Matrix, but Sarah sure looks better than you. HAHAHAHAHAHAHA

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

    Default

    Hey how come the time on the upper left hand corner do not correspond to the actual time. Mine is East coast time at 1:30 and the time on the reply is 5:16 pm??????

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

    Default

    No, its 1:16 pm but it says 5:16 pm. That's a four hours difference!

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

    Default

    Allan, Allan, Allan...What are going to do with you:)
    Please do not start or post multiple threads for the
    same topic. it causes VodaChoas.

    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)



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

    Default

    Quote Originally Posted by VodaHost
    Allan, Allan, Allan...What are going to do with you:)
    Please do not start or post multiple threads for the
    same topic. it causes VodaChoas.
    Oh, St. *****, please tell me how to upload to the domain from the notepad file feedback.php since Pablo is not around.

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

    Default

    Use BlueFTP, check out the Voda tutorials about this great tool:
    http://www.vodahost.com/DemoDemo/ftp...da_blueftp.htm
    Forum Moderator
    BlueVoda Specialist

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

    Default

    Quote Originally Posted by Pablo
    Use BlueFTP, check out the Voda tutorials about this great tool:
    http://www.vodahost.com/DemoDemo/ftp...da_blueftp.htm
    Great! Thanks Pablo. How come I didn't see this demo in the tutorial? :0

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

    Default

    [QUOTE=Pablo]First of all this script has nothing to do with BlueVoda and is provided for support purposes only. It is created to work around bugs and design flaws in 3rd party products. The script is provided "AS IS" without warranty of any kind. However it seems to work for most of the users.

    It MUST have the .php externsion not .txt or .php.txt
    Please replace all

    How do I replace all ;with <? What is &lt? I see the uploaded file has the .php.txt. I tried to change it by right click it and go to properties. I tried to change it that way and it doesn't work. I know I must have done it incorrectly. Please give me step by step instruction. Thanks.

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

    Default

    I did the insert in the beginning of body with the email address changed to lct@lctfinejewelers.com and I have upload the feedback.php in the domain using the ftd manager. When I tried to submit the form for testing, it says the page cannot be found. I must have done something wrong. I changed the text object properties to feedback.php and set it to post and cleared the encoding type just like what you suggested too. Hmmmmmmmmmm. HELP!

  22. #22
    Robert's Avatar
    Robert is offline First Lieutenant
    Join Date
    May 2005
    Location
    Dallas, TX USA
    Posts
    296

    Default i have followed all instructions.....but

    my page:

    http://graphxntrix.com/GX_TEAM.html contains my form with:

    name
    email
    text area
    submit

    i formatted the form properties
    ACTION: GX_TEAM.php
    METHOD: POST
    Cleared the text/plain to be empty

    I created my .php file in notepad and uploaded to my public folder. Am I missing a concept here or something because i get this error:

    Parse error: parse error, unexpected T_STRING in /home/graph/public_html/GX_TEAM.php on line 11

    help..i really would jump for joy to see this task finished and over with or at least some light shed on the subject THANK YOU IN ADVANCE
    Robert
    www.GraphXntrix.com
    Your Visual Revolution Solution

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

    Default

    Well, it looks like you have an error on line 11 in the GX_TEAM.php file...
    Forum Moderator
    BlueVoda Specialist

  24. #24
    Robert's Avatar
    Robert is offline First Lieutenant
    Join Date
    May 2005
    Location
    Dallas, TX USA
    Posts
    296

    Default

    $email = $HTTP_POST_VARS[email];

    you might have to help me understand this...this is line 11
    i have no idea what this is for or what the function is...please help
    Robert
    www.GraphXntrix.com
    Your Visual Revolution Solution

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

    Default

    The error indicates that you need a field (editbox) with the name 'email' in your form to make the script work.
    Otherwise the script does'nt know the senders email address.
    Forum Moderator
    BlueVoda Specialist

  26. #26
    Robert's Avatar
    Robert is offline First Lieutenant
    Join Date
    May 2005
    Location
    Dallas, TX USA
    Posts
    296

    Question am i one of those "just wont work cases"?

    Quote Originally Posted by Pablo
    The error indicates that you need a field (editbox) with the name 'email' in your form to make the script work.
    Otherwise the script does'nt know the senders email address.
    if that is the case, then it is already there...

    http://graphxntrix.com/GX_TEAM.html

    the form is on the right hand side...
    my GX_TEAM.php:

    <HTML>
    <HEAD>
    <TITLE>Succesfully requested contact from The GX Team</TITLE>
    </HEAD>
    <BODY>
    <H2>Thank you for your request. You will recieve a response shortly. In the meantime please feel free to register in

    the Community Bulletin Board, and explore the site at your liesure.</H2>

    <?PHP
    $email = $HTTP_POST_VARS[email];
    $mailto = "contact_gx@graphxntrix.com";
    $mailsubj = "Contact Us";
    $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>
    Last edited by Sarah; 06-24-2005 at 04:24 PM.
    Robert
    www.GraphXntrix.com
    Your Visual Revolution Solution

  27. #27
    christobal's Avatar
    christobal is offline First Sergeant
    Join Date
    Jun 2005
    Location
    Israel
    Posts
    73

    Default Try this

    Loaded your script into Zend PHP editor and the following syntax error comes up

    Parse error: parse error, unexpected T_STRING in /home/graph/public_html/GX_TEAM.php on line 14

    Line 14 = $mailhead = "From: $email\n";

    The parse error is caused by missing double quote in line 12
    Line 12 = $mailto = "contact_gx@graphxntrix.com;

    Correct syntax
    $mailto = "contact_gx@graphxntrix.com";
    Edit the php file, upload and all should work.

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. paypal submit problem and email form?
    By Tristan in forum Forms
    Replies: 4
    Last Post: 11-14-2005, 05:39 PM
  2. Difficult to click on boxes on my email form
    By Tristan in forum Email Problems (POP, SMTP & Webmail)
    Replies: 1
    Last Post: 11-12-2005, 01:33 AM
  3. An email form problem
    By christian_woman in forum General Support Issues
    Replies: 3
    Last Post: 09-26-2005, 01:10 AM
  4. Adding a link to your email form
    By wgreene in forum General Support Issues
    Replies: 0
    Last Post: 09-25-2005, 03:12 AM
  5. Creating a email form !
    By aliale in forum General Support Issues
    Replies: 1
    Last Post: 07-13-2005, 01:03 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