Results 1 to 3 of 3

Thread: Editing HTML in form
      
   

  1. #1
    albumin40's Avatar
    albumin40 is offline Sergeant Major
    Join Date
    Aug 2007
    Posts
    94

    Question Editing HTML in form

    Hi
    My site is www.rvhliversupportgroup.co.uk.

    I have incorporated a contact form and am now working on the Thank You page. However, I have made a mistake which I am having trouble rectifying.

    I have put in the appropriate code:


    <?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";

    But I did not make the changes required in the blue text.

    If I try to edit it now all I can do is COPY or SELECT ALL.

    Is there a way out of this?

    Thanks


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

    Default Re: Editing HTML in form

    Open your Thank you Page. If you have pasted the script in the page html, click on the same tag you pasted. if not sure which one it was, try first Start of Page, then Between head, etc, until you find it. When you do, it will appear in the LOWER window. There, you can edit as required.

    Email address: that should be the email address where you wish to recieve the mail. It is NOT necessary that you use your account default email address.
    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
    albumin40's Avatar
    albumin40 is offline Sergeant Major
    Join Date
    Aug 2007
    Posts
    94

    Default Re: Editing HTML in form

    Hi Navaldesign

    Many thanks for the help!

    Colin

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