Results 1 to 7 of 7

Thread: Form Problem?
      
   

  1. #1
    Pixel's Avatar
    Pixel is offline Sergeant First Class
    Join Date
    Feb 2006
    Location
    SCOTLAND
    Posts
    53

    Talking Form Problem?

    I am still having problems with my booking form, I have uploaded the script for it, if I leave the mailto email address in the form it just wants to send it by standard email, if I deleat this it just says cannot find page?? H>E>L>P .
    Pixel
    www.pixel-photo-images.co.uk
    www.flynnphotography.co.uk
    "a photograph is a memory locked in time,look at that memory & you will remember"

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

    Default Re: Form Problem?

    Please read Basics about Forms the answer on why it tries to send it by email is there. The solution also.

    then if you need help post again.
    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!


  3. #3
    Pixel's Avatar
    Pixel is offline Sergeant First Class
    Join Date
    Feb 2006
    Location
    SCOTLAND
    Posts
    53

    Cool Re: Form Problem?(Navaldesign)

    Hi Navaldesign, I am Still non the wiser?? Below is the script I have uploaded. What Have I done Wrong??
    HTML>
    <HEAD>
    <TITLE>Succesfully processed your booking</TITLE>
    <style type="text/css">
    <!--
    .style1 {
    color: #990000;
    font-weight: bold;
    }
    -->
    </style>
    </HEAD>
    <BODY>
    <h1 class="style1">Thank you for your booking!</h1>
    <p class="style1"><img src="../photos/DSCF0615%20(718%20x%20246).jpg" width="718" height="246"> </p>
    <h1 class="style1">We will be in touch soon. </h1>
    <?PHP
    $email = $HTTP_POST_VARS[email];
    $mailto = "ifo@flynnphotography.co.uk";
    $mailsubj = "BOOKING";
    $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>
    </HTML>
    Pixel
    www.pixel-photo-images.co.uk
    www.flynnphotography.co.uk
    "a photograph is a memory locked in time,look at that memory & you will remember"

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

    Default Re: Form Problem?

    Hold on 5 mins. I'll come back with full instructions
    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!


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

    Default Re: Form Problem?(Navaldesign)

    <?PHP
    $email = $HTTP_POST_VARS[email];
    $mailto = "youremail address";
    $mailsubj = "New Order";
    $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);
    header("Location: http://www.yourdomain.com/thankyou_page.html");
    ?>

    Copy this code, paste it in Notepad. Go to "Save as" , choose for "File type" "All files" and save it with the same name that you used till now, f.e. "feedback.php". Upload it on your site using Blue FTP. For the thankyou page, create and publish a normal BV page, save it as "thankyou_page" and publish it. You're done.
    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!


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

    Default Re: Form Problem?

    Of course you can change the subject "New Order" to be as you like it, and you can also change the first line of the body, from "Values submitted....." in whatever you want. Change your email and the "yourdomain.com". Please also note that the email field in your form must be named "email". Upload the URL of your form so i can have a look. Please also note that you have probably mistaken your email address : shouldn't that be info ? because in the script you have "ifo". Maybe that was all your problem. Also try, if it doesn't work, to set the encoding type to "multipart/form data"
    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!


  7. #7
    Pixel's Avatar
    Pixel is offline Sergeant First Class
    Join Date
    Feb 2006
    Location
    SCOTLAND
    Posts
    53

    Default Re: Form Problem?

    Thank you sooooo much! Naveldesign you have cured my headache.
    You should be on the payroll? with the amount of help you give everyone freely. It is much appreciated. PIXEL
    Pixel
    www.pixel-photo-images.co.uk
    www.flynnphotography.co.uk
    "a photograph is a memory locked in time,look at that memory & you will remember"

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