Form comes up but doesn't go to thank you page?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • tracyt
    Second Lieutenant

    • Apr 2006
    • 111

    Form comes up but doesn't go to thank you page?

    HI,
    I ahve produced my contact form ( with thanks to Andy123's tutorial) I can fill it out but when I hit submit it doesn't send me the email and the thank you page doesn't pop up.
    Got any ideas
    Thanks
    Tracy

    The contact page is at www.tracytresidder.com
    ____________________________________________
    Tracy
    www.tracytresidder.com
    www.golfmindplay.com
    Outsmart your brain to play your best golf
  • Andy128
    Major General

    • Dec 2005
    • 2317

    #2
    Re: Form comes up but doesn't go to thank you page?

    Tracy-
    Copy and post your php code so we can take a look.
    To open php- open note pad and then click on File>open and navigate to the folder that holds the php file. Choose "All files" and this will make it visable. Then double click on it to have note pad open it.

    Andy
    PHP- is a blast!

    Comment

    • Andy128
      Major General

      • Dec 2005
      • 2317

      #3
      Re: Form comes up but doesn't go to thank you page?

      Tracy-

      Due to recent developments- form security has become an issue. I have not finished my new form tutorial yet- but have created for you what I will be doing in the tutorial. That in mind- check out the link below;



      Cheers,

      Andy
      PHP- is a blast!

      Comment

      • tracyt
        Second Lieutenant

        • Apr 2006
        • 111

        #4
        Re: Form comes up but doesn't go to thank you page?

        HI Andy,
        that is excellent - thank you so much - I don't know how you do it but it certainly seems much more secure.
        When you have your tutorial complete I will make the changes.
        Is this the code you mean?
        Sorry but I am a bit hopless at all this - I couldn't find notepad and I have no idea where these files are - I couldn't find them in the "Program files - Blue Voda website builder" folders - where else would they be?
        Believe it or not I have many skills (even degrees) in lots of things - it just doesn't include computers!
        Thanks for being so patient.
        Cheers
        Tracy

        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
        <HTML>
        <HEAD>
        <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <TITLE>Contact</TITLE>
        <META name="GENERATOR" content="Created by BlueVoda">
        <STYLE type="text/css">
        div#container
        {
        width: 800px;
        position: relative;
        margin-top: 0px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
        }
        body
        {
        text-align: center;
        margin: 0;
        }
        </STYLE>
        </HEAD>
        <BODY bgcolor="#FFFFFF" text="#000000">
        <DIV id="container">
        <DIV style="position:absolute;left:34px;top:34px;width: 460px;height:466px;z-index:15" align="left">
        <FORM name="Contact" method="POST" action="thankyou.php" enctype="multipart/form-data">
        <INPUT type="text" style="position:absolute;left:179px;top:24px;width :264px;z-index:0" size="33" name="Name" value="">
        <INPUT type="text" style="position:absolute;left:179px;top:61px;width :264px;z-index:1" size="33" name="email" value="">
        <INPUT type="text" style="position:absolute;left:179px;top:97px;width :264px;z-index:2" size="33" name="email" value="">
        <INPUT type="text" style="position:absolute;left:179px;top:133px;widt h:264px;z-index:3" size="33" name="city" value="">
        <DIV style="position:absolute;left:17px;top:25px;width: 150px;height:19px;z-index:4" align="left">
        <FONT style="font-size:16px" color="#000000" face="Arial"><B>Name</B></FONT>
        </DIV>
        <DIV style="position:absolute;left:19px;top:64px;width: 150px;height:19px;z-index:5" align="left">
        <FONT style="font-size:16px" color="#000000" face="Arial"><B>Email:</B></FONT>
        </DIV>
        <DIV style="position:absolute;left:20px;top:99px;width: 150px;height:19px;z-index:6" align="left">
        <FONT style="font-size:16px" color="#000000" face="Arial"><B>Re enter email</B></FONT>
        </DIV>
        <DIV style="position:absolute;left:19px;top:135px;width :150px;height:19px;z-index:7" align="left">
        <FONT style="font-size:16px" color="#000000" face="Arial"><B>City</B></FONT>
        </DIV>
        <INPUT type="text" style="position:absolute;left:179px;top:169px;widt h:264px;z-index:8" size="33" name="country" value="">
        <DIV style="position:absolute;left:16px;top:172px;width :150px;height:19px;z-index:9" align="left">
        <FONT style="font-size:16px" color="#000000" face="Arial"><B>Country</B></FONT>
        </DIV>
        <INPUT type="text" style="position:absolute;left:179px;top:205px;widt h:264px;z-index:10" size="33" name="phone" value="">
        <DIV style="position:absolute;left:16px;top:208px;width :150px;height:19px;z-index:11" align="left">
        <FONT style="font-size:16px" color="#000000" face="Arial"><B>Phone number</B></FONT>
        </DIV>
        <TEXTAREA name="message" style="position:absolute;left:178px;top:241px;widt h:266px;height:209px;z-index:12" rows=14 cols=30></TEXTAREA>
        <DIV style="position:absolute;left:16px;top:242px;width :150px;height:38px;z-index:13" align="left">
        <FONT style="font-size:16px" color="#000000" face="Arial"><B>Your message here</B></FONT>
        </DIV>
        <INPUT type="submit" name="Submit" value="Submit" style="position:absolute;left:45px;top:287px;width :75px;height:24px;z-index:14">
        </FORM>
        </DIV>
        </DIV>
        </BODY>
        ____________________________________________
        Tracy
        www.tracytresidder.com
        www.golfmindplay.com
        Outsmart your brain to play your best golf

        Comment

        • tracyt
          Second Lieutenant

          • Apr 2006
          • 111

          #5
          Re: Form comes up but doesn't go to thank you page?

          Actually - following is the script I think you might be looking for.
          <script language="php">
          $email = $HTTP_POST_VARS[email];
          $mailto = "tracy@tracytresidder.com";
          $mailsubj = "Contact From Website";
          $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"; }
          if (!eregi("\n",$HTTP_POST_VARS[email])) { mail($mailto, $mailsubj, $mailbody, $mailhead); }
          ____________________________________________
          Tracy
          www.tracytresidder.com
          www.golfmindplay.com
          Outsmart your brain to play your best golf

          Comment

          • Andy128
            Major General

            • Dec 2005
            • 2317

            #6
            Re: Form comes up but doesn't go to thank you page?

            Tracy-

            It appears that the script you posted does not have the closing tag.

            Try:
            <script language="php">
            $email = $HTTP_POST_VARS[email];
            $mailto = "tracy@tracytresidder.com";
            $mailsubj = "Contact From Website";
            $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"; }
            if (!eregi("\n",$HTTP_POST_VARS[email])) { mail($mailto, $mailsubj, $mailbody, $mailhead); }

            ?>

            If this is inside the body tag of the Page Html properties- you can simply open it up and put the ?> as shown. Also make sure to make the page a php extension.

            Hope that helps.

            Andy
            PS- I will send you an e-mail.


            PHP- is a blast!

            Comment

            • Vasili
              Moderator

              • Mar 2006
              • 14683

              #7
              Re: Form comes up but doesn't go to thank you page?

              Hey, Keith!
              Feel up to helping Dickie out in the "Report a BV8 Bug" thread??
              . VodaWebs....Luxury Group
              * Success Is Potential Realized *

              Comment

              • tracyt
                Second Lieutenant

                • Apr 2006
                • 111

                #8
                Re: Form comes up but doesn't go to thank you page?

                Hi Andy,
                I made the change but it still doesn't appear to work.
                That script - is it mean to be in the contact page or the thank you page. I have it in the thank you page?
                I haven't received your email - I know with the time difference you might be sleeping now. Thanks for your help.
                Cheers
                Tracy
                ____________________________________________
                Tracy
                www.tracytresidder.com
                www.golfmindplay.com
                Outsmart your brain to play your best golf

                Comment

                • davidundalicia
                  General

                  • Mar 2006
                  • 6294

                  #9
                  Re: Form comes up but doesn't go to thank you page?

                  If andy is sleeping then I can tell you that it should be in the thankyou page
                  and the thankyou page needs to be opened at page properties
                  (right click any space on the page)
                  then middle left you will see a box which says "file extension"
                  change this to read php
                  then publish as normal as long as you have made the change that andy mentioned.
                  Have fun
                  Regards..... David

                  Step by Step Visual Tutorials for the complete beginner
                  Newbies / Beginners Forum
                  FREE Membership Login Scripts: - Meta Tags Analyzer
                  My Social Networking Site - Free Contact Forms
                  Finished your New website!! Now get it noticed Here:

                  Comment

                  • tracyt
                    Second Lieutenant

                    • Apr 2006
                    • 111

                    #10
                    Re: Form comes up but doesn't go to thank you page?

                    I did all that and it still isn't working.!
                    Thanks for your help guys. I'm off to bed now!!
                    In the meantime I have put my email address up as I am part of an online conference (iNet) so want people to be able to contact me if they want to. AS soon as I get this contact thing sorted I'll take it off
                    Good night
                    Cheers
                    Tracy
                    ____________________________________________
                    Tracy
                    www.tracytresidder.com
                    www.golfmindplay.com
                    Outsmart your brain to play your best golf

                    Comment

                    Working...
                    X