Results 1 to 5 of 5

Thread: help with e-mail form
      
   

  1. #1
    bluerovers is offline Sergeant Major
    Join Date
    Aug 2007
    Posts
    98

    Default help with e-mail form

    hi all

    i have designed a basic e-mail form with bluevoda and i would like to know is there a way to have the subject of the e-mail sent be contents of part of the form??

    thanks in advance

    bluerovers
    www.bluerovers.co.nz
    http://summerleague.bluerovers.co.nz

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

    Default Re: help with e-mail form

    I am not sure what you mean. If you want the user to be able to type the email subject, as in a normal email, create a field in your form, named "subject". Then, change the php script to be:

    <?PHP
    $mailto = "exampleemail@example.com";
    $email = $_POST['email'];
    if ($email == "") {
    $email = $mailto;
    }
    $mailsubj = $_POST['subject'];
    $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);
    ?>
    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
    bluerovers is offline Sergeant Major
    Join Date
    Aug 2007
    Posts
    98

    Default Re: help with e-mail form

    hi

    the form i designed is so that our teams can post their results on the club website and instead of the e-mail subject being the same every time i would like to have it so the subject is the fiel 'your team'.

    i have changed the line of code to $mailsubj = $_POST['yourteam'];

    thank-you muchly


  4. #4
    bluerovers is offline Sergeant Major
    Join Date
    Aug 2007
    Posts
    98

    Default Re: help with e-mail form

    hi naval

    have just done a test run and it work perfectly!!! just going to master the abvfp and i'll be on my way

    thanks again

  5. #5
    bluerovers is offline Sergeant Major
    Join Date
    Aug 2007
    Posts
    98

    Default Re: help with e-mail form

    hi naval. have downloaded ABVFP and it has save me loads of work!!!
    thank-you for your briliant addition to blue Voda

    thanks

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