+ Reply to Thread
Results 1 to 12 of 12

Thread: Help with basic contact form
      
   

  1. #1
    SherylT's Avatar
    SherylT is offline Second Lieutenant
    Join Date
    Jan 2007
    Posts
    129

    Default Help with basic contact form

    Hi, everyone. Taking one member's suggestion (Play It By Beer), I have tried to design a very simple submission form on my contact page.

    I've been thru the tutorial three times, but can't seem to spot what is probably an obvious error.

    I have set up the contact page and my thank you page. But with I tested and hit "Submit Now" I get that evil "404 error" page.

    Could use the assistance of this wonderful form once again.
    Sheryl Tupa
    Cust-M-Cartoons -- 10% Discount Code: "FORUM"
    Personalized Cartoons For Everyone and Personalized Music CDs for Kids
    New Baby Cartoons
    Personalized Cartoons to announce your new arrival!
    Cloud Nine Photo Magic
    Specializing in unique children & pet portraiture

  2. #2
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: Help with basic contact form

    Sounds do-able. Just post a URL to the form and also cut and paste the php code that you are using to process the form and we'll take a look.

    Andy
    PHP- is a blast!

  3. #3
    SherylT's Avatar
    SherylT is offline Second Lieutenant
    Join Date
    Jan 2007
    Posts
    129

    Default Re: Help with basic contact form

    Okay. Here's what I have pasted in on my "action.php" page which is the Contact page. I put this in the page html section under "Beginning of body" tab.

    <?PHP
    $mailto = "sales@propertyslides.com";
    $email = $HTTP_POST_VARS['email'];
    if ($email == "") {
    $email = $mailto;
    }
    $mailsubj = "Contact Submission 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))
    {
    if ($key!="submit")
    {
    $mailbody .= "$key : $val\n";
    }
    }
    mail($mailto, $mailsubj, $mailbody, $mailhead);
    ?>

    Am I putting this in the right place?

    Sheryl Tupa
    Cust-M-Cartoons -- 10% Discount Code: "FORUM"
    Personalized Cartoons For Everyone and Personalized Music CDs for Kids
    New Baby Cartoons
    Personalized Cartoons to announce your new arrival!
    Cloud Nine Photo Magic
    Specializing in unique children & pet portraiture

  4. #4
    Karen Mac's Avatar
    Karen Mac is offline General
    Join Date
    Apr 2006
    Location
    X marks the spot
    Posts
    8,354

    Default Re: Help with basic contact form

    Sheryl

    Looks right to me... What are you putting on the form? The actual form itself. Thats where you have to call it as the name of your page, not thank you.. but action.php... im guessing thats where the actual error is.

    Right click somewhere on the form itself and get properties. Form name can be whatever i guess, and then the action should be your action.php, post and then multipart form.

    Karen

    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)



  5. #5
    Karen Mac's Avatar
    Karen Mac is offline General
    Join Date
    Apr 2006
    Location
    X marks the spot
    Posts
    8,354

    Default Re: Help with basic contact form

    Sheryl

    Ok.. you have thankyou.php instead of action.php, you have to save it as action.php You can title it thank you etc etc. Try that .. then it will work.

    Karen

    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)



  6. #6
    SherylT's Avatar
    SherylT is offline Second Lieutenant
    Join Date
    Jan 2007
    Posts
    129

    Default Re: Help with basic contact form

    Okay. I changed name of thankyou.php to action.php, and I get the correct "Thank You" page I created.

    When I check my email though, this is all that is coming through. No information from the message except:

    Values submitted from web site form :

    Maybe I don't have that code in the right place?
    Sheryl Tupa
    Cust-M-Cartoons -- 10% Discount Code: "FORUM"
    Personalized Cartoons For Everyone and Personalized Music CDs for Kids
    New Baby Cartoons
    Personalized Cartoons to announce your new arrival!
    Cloud Nine Photo Magic
    Specializing in unique children & pet portraiture

  7. #7
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: Help with basic contact form

    I sent you a form submission with test in the fields- did any come through?

    Andy
    PHP- is a blast!

  8. #8
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: Help with basic contact form

    Hi sheryl,

    did you solve the problem ? and, which contact form is this about ? (which site?). Please provide a link.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  9. #9
    Karen Mac's Avatar
    Karen Mac is offline General
    Join Date
    Apr 2006
    Location
    X marks the spot
    Posts
    8,354

    Default Re: Help with basic contact form

    Naval

    Her page is here:

    http://www.propertyslides.com/contactus.php

    Karen

    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)



  10. #10
    SherylT's Avatar
    SherylT is offline Second Lieutenant
    Join Date
    Jan 2007
    Posts
    129

    Default Re: Help with basic contact form

    Andy, can't check my Outlook from work, but will do so as soon as I get home. I sent a test myself and that's when I got the:

    Values submitted from web site form :

    and no other information.
    Sheryl Tupa
    Cust-M-Cartoons -- 10% Discount Code: "FORUM"
    Personalized Cartoons For Everyone and Personalized Music CDs for Kids
    New Baby Cartoons
    Personalized Cartoons to announce your new arrival!
    Cloud Nine Photo Magic
    Specializing in unique children & pet portraiture

  11. #11
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: Help with basic contact form

    This usually happens when the encoding type is not set to the correct "multipart / form data" . However in your case this is correct, so please check it once again and let us know.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  12. #12
    SherylT's Avatar
    SherylT is offline Second Lieutenant
    Join Date
    Jan 2007
    Posts
    129

    Default Re: Help with basic contact form

    Form is working now. What had happened is I pasted the html code on the page where the form was and not on the action.php page. Sent myself a test and all the information was there.

    Thanks for your help everyone.
    Sheryl Tupa
    Cust-M-Cartoons -- 10% Discount Code: "FORUM"
    Personalized Cartoons For Everyone and Personalized Music CDs for Kids
    New Baby Cartoons
    Personalized Cartoons to announce your new arrival!
    Cloud Nine Photo Magic
    Specializing in unique children & pet portraiture

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

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