Announcement

Collapse
No announcement yet.

Form Question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Form Question

    Hi
    My main site is www.miscarriage-ni.org.uk

    my second site is www.rvhliversupportgroup.co.uk which I have added a contact form to.

    I just need brought up to speed on what to add to the Thank You page html

    <?PHP
    $mailto = "youremail@yourdomain.com";
    $email = $HTTP_POST_VARS['email'];
    if ($email == "") {
    $email = $mailto;
    }
    $mailsubj = "Type your mail subject here";
    $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);
    ?>

    In the $mailto do I put my original allocated webmail address which is myusername@miscarriage-ni.org.uk ?

    Does it matter what goes in the
    $mailsubj field ?

    Finally, in the
    $mailbody="Values submitted from web site form :\n"; what do I change here, if anything ?

    finally, is it possible to redirect the emails to another email address.

    Thanks

  • #2
    Re: Form Question

    Yes, put your email address as above.
    If the generic text ""Values submitted from web site form :" is ok for you, then leave it as it is, else change it as you like, i.e. "A user has submitted the following info;"
    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!

    Comment


    • #3
      Re: Form Question

      Hi Navaldesign

      Thanks a lot for the help. Appreciate it!

      Sincerely

      Colin

      Comment

      Working...
      X