46 users online (0 members and 46 guests)  


  Results 1 to 6 of 6

Related

  1. footer overlaps with content    Forum: CSS Forum
    Replies: 6
  2. cant set font size in footer    Forum: CSS Forum
    Replies: 1
  3. scroll bar with fixed header and footer    Forum: HTML Forum
    Replies: 1
  4. Footer problems    Forum: CSS Forum
    Replies: 0
  1. #1
    streety's Avatar
    New User

    Status
    Offline
    Join Date
    Apr 2008
    Posts
    3

    No footer and checkbox

    Hello!

    Firstly i must say a big thank you. i have been having trouble with php for a while and these forums have become a life saver!

    I am developing a website for a client but i am struggling with something.

    i have created a temple in dreamweaver for the pages, but for some weird reason the footer doesn't appear on my form handle php page? all the code is there, it just doesn't like it...

    thank you
    Last edited by streety; 04-18-2008 at 06:10 AM.

  2. #2
    firmaterra's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Apr 2007
    Posts
    81

    Re: No footer and checkbox

    Can we see some code?

  3. #3
    streety's Avatar
    New User

    Status
    Offline
    Join Date
    Apr 2008
    Posts
    3

    Re: No footer and checkbox

    of course - sorry!

    this is the php form handling page:

    PHP Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/index.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>FFWD</title>
    <!-- InstanceEndEditable -->
    <link href="css.css" rel="stylesheet" type="text/css" />
    <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
    </head>

    <body class="page">
    <a name="top"></a><br />
    <div id="container">
      <div id="header">
        <p><a href="index.html"><img src="images/logo.jpg" alt="Fast Forward Project Management" width="228" height="84" border="0" /></a></p>
      <!-- end #header --></div>
      
      <!-- start menu -->
      <ul id='menu'>

    <li><a href='index.html'>Home</a></li>
    <li><a href='our-ethos.html'>Our Ethos</a></li>
    <li><a href='project-failure.html'>Project Failure</a></li>
    <li><a href='what-is-gdpm.html'>What Is GDPM?</a></li>
    <li><a href='why-use-gdpm.html'>Why Use GDPM?</a></li>
    <li><a href='training-learning-support.html'>Training & Learning Support</a></li>
    <li><a href='products-services.html'>Products and Services</a></li>
    <li><a href='downloads.html'>Downloads</a></li>
    <li><a href='contact.html'>Contact Us</a></li>

      </ul>
       <!--end menu -->
    <!-- InstanceBeginEditable name="beforemaincontent" --><!-- InstanceEndEditable -->   <div id="mainContent">   <!-- InstanceBeginEditable name="Content" -->
    <table width="95%" height="350px"><tr><td valign="top"><?php

    define
    ("NEWLINE", ($newline)?$newline:"\n"); 

    // Receiving variables
    if(is_array($_POST['downloads']))
    {
        foreach(
    $_POST["downloads"] as $key => $dl) {
        
    $download .= ' '$dl ','
        }
    }
    if(
    is_array($_POST['courses']))
    {
        foreach(
    $_POST["courses"] as $key => $c) {
        
    $course .= ' '$c ','
        }
    }
    $title $_POST['title'];
    $fname $_POST['fname'];
    $sname $_POST['sname'];
    $org $_POST['org'];
    $job $_POST['job'];
    $address $_POST['address'];
    $landline $_POST['landline'];
    $mob $_POST['mob'];
    $email $_POST['email'];
    $tandc $_POST['tandc'];
    $mail = (isset($_POST['mailing_list']) ? "Mailing list: No" "Mailing list: Yes" );

    // Validation

    if (strlen($fname) == )
    {
    die(
    "<h2>Error 100: First Name Missing.</h2><p>Please go back and enter a First Name</p>");
    }
    if (
    strlen($sname) == )
    {
    die(
    "<h2>Error 101: Surname Missing.</h2><p>Please go back and enter a Surname</p>");
    }
    if (
    strlen($org) == )
    {
    die(
    "<h2>Error 102: Organisation name Missing.</h2><p>Please go back and enter a Organisation name</p>");
    }
    if (
    strlen($job) == )
    {
    die(
    "<h2>Error 103: Job Title Missing.</h2><p>Please go back and enter a Job Title</p>");
    }
    if (
    strlen($email) == )
    {
    die(
    "<h2>Error 104: Please enter an e-mail address.</h2><p>Please go back and enter an e-mail address.</p>");
    }
    if (! 
    ereg('[A-Za-z0-9_-]+\@[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+'$email))
    {
    die (
    "<h2>Error 105: The e-mail address you entered is not recognised as a valid format.</h2><p>Please go back and enter an e-mail that follows the format ***@***.***.</p>");
    }
    if(
    $HTTP_POST_VARS['tandc'] != 'yes')
    {
    die(
    '<p>Error 106: Please agree to the FFWD Terms &amp; Conditions</p>');
    }
    //Sending Email to form owner

    $pfw_header "From: $email\n"
      
    "Reply-To: $email\n";
    $pfw_subject "E-Mail from FFWDPM.com";
    $pfw_email_to "mik.street@btinternet.com";
    $pfw_message "\n Name: $title $fname $sname\n"
    "\n Organisation:  $org\n"
    "\n Job Title:  $job\n"
    "\n Address:  $address\n"
    "\n Landline:  $landline\n"
    "\n Mobile:  $mob\n"
    "\n Email: $email\n"
    "\n Downloads Required: $download\n" 
    "\n Courses: $course\n"
    "\n $mail\n";
    @
    mail($pfw_email_to$pfw_subject ,$pfw_message ,$pfw_header ) ;

     echo(
    "Thank you " $title ' ' $sname '.');
    ?>
          </td></tr></table><br />
          <!-- InstanceEndEditable -->
        <!-- end #mainContent --><br />
        <p align="right" class="bttlink"><a href="#top">[BACK TO TOP]</a></p>
      </div>
      <div id="footer">
        <p><a href="contact.html">Contact</a> | <a href="privacy-statement.html">Privacy Statement</a> | <a href="terms-and-conditions.html">Terms &amp; Conditions of Use</a></p>
      <!-- end #footer --></div>
    <!-- end #container --></div><br />
    </body>
    <!-- InstanceEnd --></html>
    If i preview the page locally the footer (with the contact, terms and conditions etc marked div id="footer") appears, but once the form is submitted, then it does not show

  4. #4
    firmaterra's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Apr 2007
    Posts
    81

    Re: No footer and checkbox

    I haven't had much time to go through it but at a guess I suspect you have mis-matching tags somewhere along the line.
    Try move the footer up near the top of the page for a test run see if it appears when you've submitted the form. If it does get out a fine tooth comb and start matching tags.

  5. #5
    streety's Avatar
    New User

    Status
    Offline
    Join Date
    Apr 2008
    Posts
    3

    Re: No footer and checkbox

    thanks - i don't know what it was but its started working now!

  6. #6
    firmaterra's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Apr 2007
    Posts
    81

    Re: No footer and checkbox

    lol, cool



Tags for this Thread