Form Help Please

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

    • Jun 2007
    • 27

    Form Help Please

    After succesfully setting up my email account in the control panel and my email client, I now have a problem with it not working on my website."As I said I am succesfully sending and recieving messages from my computer, I have gone over and over the tutorial for setting up forms and I can't see what I am doing wrong, one thing I have noticed is the "Thank You page" I published cannot be seen. Will someone please visit my site to see if they can see the problem http://www.keithstattoostudio.co.uk/

    Enclosed is a copy of the script I inserted


    Many Thanks


    Keith




    <!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>Thank You</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>
    <script type="text/javascript">
    <!--
    function SwapImage()
    {
    var doc=document, args=arguments;
    doc.$imgSwaps = new Array();
    for(var i=2; i<args.length; i+=2)
    {
    var elem=FindObject(args[i]);
    if(elem)
    {
    doc.$imgSwaps[doc.$imgSwaps.length]=elem;
    elem.$src=elem.src;
    elem.src=args[i+1];
    }
    }
    }
    // -->
    </script>
    <script type="text/javascript">
    <!--
    function FindObject(id, doc)
    {
    var child, elem;
    if(!doc)
    doc=document;
    if(doc.getElementById)
    elem=doc.getElementById(id);
    else
    if(doc.layers)
    child=doc.layers;
    else
    if(doc.all)
    elem=doc.all[id];
    if(elem)
    return elem;
    if(doc.id==id || doc.name==id)
    return doc;
    if(doc.childNodes)
    child=doc.childNodes;
    if(child)
    {
    for(var i=0; i<child.length; i++)
    {
    elem=FindObject(id,child[i]);
    if(elem)
    return elem;
    }
    }
    var frm=doc.forms;
    if(frm)
    {
    for(var i=0; i<frm.length; i++)
    {
    var elems=frm[i].elements;
    for(var j=0; j<elems.length; j++)
    {
    elem=FindObject(id,elems[i]);
    if(elem) return elem;
    }
    }
    }
    return null;
    }
    // -->
    </script>
    </head>
    <body bgcolor="#E6E6FA" text="#000000">
    <?PHP
    $mailto = "info@keithstattoostudio.co.uk";
    $email = $HTTP_POST_VARS['email'];
    if ($email == "") {
    $email = $mailto;
    }
    $mailsubj = "Contact Form Submission";
    $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);
    ?>
    <div id="container">
    <div id="bv_" style="position:absolute;left:247px;top:72px;width :492px;height:111px;z-index:0" align="left">
    <font style="font-size:32px" color="#000000" face="Arial"><b>Thank you for your submission!<br>
    If an answer is required , we <br>
    will be back to you ASAP!</b></font></div>
    <div id="bv_" style="position:absolute;left:66px;top:88px;width: 134px;height:86px;z-index:1" align="center">
    <table border="0" cellpadding="0" cellspacing="0" id="NavigationBar1">
    <tr>
    <td align="left" valign="top" width="134" height="22"><a href="http://www.keithstattoostudio.co.uk/index.html" target="_self"><img id="bv01064" src="bv01064.gif" alt="http://www.keithstattoostudio.co.uk/index.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01064','bv01064_over .gif')" onmouseout="SwapImage(0,0,'bv01064','bv01064.gif') "></a></td>
    </tr>
    <tr><td height="10"></td></tr><tr>
    <td align="left" valign="top" width="134" height="22"><a href="http://www.keithstattoostudio.co.uk/photos.html" target="_self"><img id="bv01065" src="bv01065.gif" alt="http://www.keithstattoostudio.co.uk/photos.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01065','bv01065_over .gif')" onmouseout="SwapImage(0,0,'bv01065','bv01065.gif') "></a></td>
    </tr>
    <tr><td height="10"></td></tr><tr>
    <td align="left" valign="top" width="134" height="22"><a href="http://www.keithstattoostudio.co.uk/contact.html" target="_self"><img id="bv01066" src="bv01066.gif" alt="http://www.keithstattoostudio.co.uk/contact.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01066','bv01066_over .gif')" onmouseout="SwapImage(0,0,'bv01066','bv01066.gif') "></a></td>
    </tr>
    </table>
    </div>
    </div>
    </body>
    </html>
  • Marincky
    General

    • Apr 2006
    • 4539

    #2
    Re: Problem With Email

    I just tried to contact you via the form and got taken to a non existent page. Did you save the 'Thank You' page as a php and not html?
    Don't aim for success if you want it; just do what you love and believe in, and it will come naturally.

    Comment

    • navaldesign
      General & Forum Moderator

      • Oct 2005
      • 12080

      #3
      Re: Problem With Email

      The form action MUST be excactly the name of your thank you age. If you have saved / published this thank you page with ANY other name than "action" the form can't find it. As i saw, the thank you page is "thank_you.php" . So, open your form page, and change the action to be "thank_you.php". Save, publish, and refresh your browser before testing
      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

      • Keithroy
        Sergeant

        • Jun 2007
        • 27

        #4
        Re: Form Help Please

        Many thanks Naveldesign

        Sorted, Keith

        Comment

        Working...
        X