+ Reply to Thread
Results 1 to 5 of 5

Thread: help quick
      
   

  1. #1
    arisnick is offline Corporal
    Join Date
    Apr 2006
    Posts
    16

    Default help quick

    I have a page at http://www.familytimerentals.com/contactus.html right now i have it so that when the form is completed it is emailed to me through a thankyou php page. I want to be able to have the form mailed to a different email address everytime the closest store changes. Such as familytime05********.com if mason city is selected Is this possible??

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

    Default Re: help quick

    Quote Originally Posted by arisnick
    I have a page at http://www.familytimerentals.com/contactus.html right now i have it so that when the form is completed it is emailed to me through a thankyou php page. I want to be able to have the form mailed to a different email address everytime the closest store changes. Such as familytime05********.com if mason city is selected Is this possible??
    I would say it's very possible but would involve you learning a little more about writing scripts. It may be worth running a google check to see if you can find anything.

    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)



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

    Default Re: help quick

    arisnick,
    First- you would have to set up different e-mails in your BV web mail for each store. Then you could have each forwarded to what ever out-side e-mail you want. Remember- you must send your form info to a BV e-mail address for SMPT purposes. Once there- redirecting is ok.

    The code will most likely will require you to seperate your php script from the thankyou page and create a seperate php processing page.

    If Naveldesign does not come along for this- I will see what I can find.

    Andy
    PHP- is a blast!

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

    Default Re: help quick

    You will need smtp authentication to do this, though if you are on ns5/6, 7/8 or 9/10 it will even work without it (don't ask me WHY, it shouldn't!)

    There are two ways to do that:
    1. Give your "Closest Store" field items, values equal to the email you want the form submitted to. Then the script will "see" that and will send the email there. This is the easiest solution, but lets your email address in public vew, so chances are that you will have your mailbox full of spam just sometime after you go on the air.
    2. If you only have these 8 -10 emails, then you can insert them directly in the script, so they are not visible. The script will check the visitors selection, and "choose" the wright email address to send the mail to.

    If SMTP authentication proves necessary, have a look at how you can send email this way, by examining the Tell A Friend Script mailing mecchanism in the Tips and Trics section of the forum.

    If you find problems, post back and i'll see what i can do.
    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
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: help quick

    arisnick,
    I have tested this and it works.
    You need to create the necessary e-mails in your BV account.
    Here they are mail1, mail2 and mail3
    As I do not know what php script you have used- I cannot taylor it to
    meet the total needs of your form. But if you have created your form then you will be able to modify the php script to carry out what you want to do.
    Basically- you need to change the combo box with all the stores to a
    radio button set up (that is the manner in which I created it and tested it)
    Have a common name for the radio buttons - here it is "store"

    Then simply create some if statments as below. The script will check to see if the condition is true- if it is it will execute what follows in the { }.
    If it is false- the script will move on to check the next statement.



    <?PHP
    if ($store == 'store1')
    {$mailto = "mail1@yourdomain.com";}
    elseif ($store == 'store2')
    {$mailto = "mail2@yourdomain.com";}
    elseif ($store == 'store3')
    {$mailto = "mail3@yourdomain.com";}


    $email = $HTTP_POST_VARS[email];
    $mailsubj = "From multistore 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);
    header("Location: thankyou.html");
    ?>

    Hope this helps some.

    Andy
    PHP- is a blast!

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