Results 1 to 10 of 10

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

  1. #1
    tracyt's Avatar
    tracyt is offline Second Lieutenant
    Join Date
    Apr 2006
    Location
    Sydney, Australia
    Posts
    111

    Default 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

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

    Default 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!

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

    Default 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;

    http://www.netisopen.com/test/tracy.html

    Cheers,

    Andy
    PHP- is a blast!

  4. #4
    tracyt's Avatar
    tracyt is offline Second Lieutenant
    Join Date
    Apr 2006
    Location
    Sydney, Australia
    Posts
    111

    Default 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

  5. #5
    tracyt's Avatar
    tracyt is offline Second Lieutenant
    Join Date
    Apr 2006
    Location
    Sydney, Australia
    Posts
    111

    Default 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

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

    Default 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!

  7. #7
    Vasili's Avatar
    Vasili is offline Moderator
    Join Date
    Mar 2006
    Posts
    13,612

    Default 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 *

  8. #8
    tracyt's Avatar
    tracyt is offline Second Lieutenant
    Join Date
    Apr 2006
    Location
    Sydney, Australia
    Posts
    111

    Default 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

  9. #9
    Join Date
    Mar 2006
    Location
    Mallorca, Spain
    Posts
    6,313

    Default 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.

  10. #10
    tracyt's Avatar
    tracyt is offline Second Lieutenant
    Join Date
    Apr 2006
    Location
    Sydney, Australia
    Posts
    111

    Default 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

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