Contact form not displaying

Hi

I have a website that I started make (layout) changes to.

My current problems are in displaying a Menu and a Contact Page.

The Menu is part of the Header.inc file.

Code is …
Index.php

<div id="header" >
	<?php include("includes/pbHeader_inc.php"); ?>
</div>

and

<div id="contactForm">
                	<?php include 'includes/Contact_Display.txt';  ?>
</div>
<br /> <br />	

I can send the actual files if required.

Can anyone explain why the pages are not displaying ?

cheers

 Bob Sharp

Here Bob, how long did you say that piece of string was?? :o

No, seriously, you gotta provide more information me ol’mate.

try this:
[php]
if(is_readable(“includes/pbHeader_inc.php”)) {
include ‘includes/pbHeader_inc.php’;
}
else {
echo 'where did you say the file was again?! :stuck_out_tongue: ';
}
[/php]

If you see my error message then the path to the file is incorrect, if you see any other error (or a blank screen) then the problem is in the phHeader file and we’ll need to see that script to move on.

Hope that helps,
Red :wink:

what I’m seeing now is …
if (is_readable(“includes/pbHeader_inc.php”)) { include ‘includes/pbHeader_inc.php’; } else { echo 'where did you say the file was again?! :stuck_out_tongue: '; }
in one line across the top of index.php

<div id="header" >
if (is_readable("includes/pbHeader_inc.php")) {
     include 'includes/pbHeader_inc.php';
 }
 else {
     echo 'where did you say the file was again?! :P ';
 }


</div>

Oops!
I didn’t wrap the code in PHP tags as i assumed you would know that - my fault for making assumptions :-[

To fix add <?php to the beginning and ?> to the end of the code i posted earlier.

Red :wink:

includes/pbHeader_inc.php …

<?php ?>
    <div id="hdrLeft" >
        <a href="http://www.ProBowlUK.co.uk/index.php" ><img src="images/pbLogo.gif" alt="ProBowlUK" width="180px" height="26px" /></a>  
    </div>
    <div id="hdrRight" >
		<div id="menu">   <!--  ******** *********   Menu block  start  ********* ********  -->
            <span class="preload1"></span>
            <span class="preload2"></span>
			 
<ul class="menu2">
    <li class="top"><a href="#" id="News" class="top_link"><span class="down">News</span><!--[if gte IE 7]><!--></a><!--<![endif]-->
        <!--[if lte IE 6]><table><tr><td><![endif]-->
        <ul class="sub">
            <li><a href="http://www.berksbowlingnews.co.uk/homepage.htm" target="_BBN">Berkshire</a></li>				
            <li><a href="pbNews_Malta.php">Malta</a></li>
        </ul>
        <!--[if lte IE 6]></td></tr></table></a><![endif]-->
    </li>
    <li class="top"><a href="#" id="instruction" class="top_link"><span class="down">Instruction</span><!--[if gte IE 7]><!--></a><!--<![endif]-->
        <!--[if lte IE 6]><table><tr><td><![endif]-->
        <ul class="sub">
            <li><a href="#" class="fly">General<!--[if gte IE 7]><!--></a><!--<![endif]-->
                    <!--[if lte IE 6]><table><tr><td><![endif]-->
                    <ul>
                        <li><a href="pbInstruction_History.php" >History</a></li>
                        <li><a href="pbInstruction_History-UK.php" >UK History</a></li>							
                        <li><a href="pbInstruction_Scoring.php" >Scoring</a></li>
                    </ul>
                    <!--[if lte IE 6]></td></tr></table></a><![endif]-->
            </li>
            <li><a href="#" class="fly">Equipment<!--[if gte IE 7]><!--></a><!--<![endif]-->
                    <!--[if lte IE 6]><table><tr><td><![endif]-->
                    <ul>
                        <li><a href="pbInstruction_MakeItFit.php">Make Sure It Fits</a></li>
                        <li><a href="pbInstruction_BallSelection1.php">Ball Selection - 1</a></li>
                        <li><a href="pbInstruction_BallSelection2.php">Ball Selection - 2</a></li>
                        <li><a href="pbInstruction_BallCleaning.php">Ball Cleaning</a></li>                        
                    </ul>
                    <!--[if lte IE 6]></td></tr></table></a><![endif]-->
            </li>                
            <li><a href="#" class="fly">Bowling<!--[if gte IE 7]><!--></a><!--<![endif]-->
                    <!--[if lte IE 6]><table><tr><td><![endif]-->
                    <ul>
                        <li><a href="#" class="fly">Lane Craft<!--[if gte IE 7]><!--></a><!--<![endif]-->
                            <!--[if lte IE 6]><table><tr><td><![endif]-->
                            <ul>
                                <li><a href="pbInstruction_LaneCraft01.php">Targetting Aids</a></li>
                                <li><a href="pbInstruction_LaneCraft02.php">Spares Systems</a></li>
                                <li><a href="pbInstruction_LaneCraft03.php">Drift</a></li>
                                <li><a href="pbInstruction_LaneCraft04.php">Etiquette</a></li>                        
                            </ul>
                            <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                        <li><a href="#" class="fly">Practice<!--[if gte IE 7]><!--></a><!--<![endif]-->
                            <!--[if lte IE 6]><table><tr><td><![endif]-->
                            <ul>
                                <li><a href="pbInstruction_Practice01.php">Consistancy</a></li>
                                <li><a href="pbInstruction_Practice02.php">Ball Release</a></li>
                                <li><a href="pbInstruction_Practice03.php">Swing</a></li>
                                <li><a href="pbInstruction_Practice04.php">Top 10 Tips</a></li>                        
                            </ul>
                            <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                        <li><a href="pbInstruction_CT00.php" class="fly">Cool Tips<!--[if gte IE 7]><!--></a><!--<![endif]-->
                            <!--[if lte IE 6]><table><tr><td><![endif]-->
                            <ul>
                                <li><a href="pbInstruction_CT01.php">Bowling Etiquette</a></li>
                                <li><a href="pbInstruction_CT02.php">Bowlers Consistancy</a></li>
                                <li><a href="pbInstruction_CT03.php">Relaxed Arm Swing</a></li>
                                <li><a href="pbInstruction_CT04.php">Stay In Focus</a></li>                        
                                <li><a href="pbInstruction_CT05.php">Popular Tips</a></li>                        
                            </ul>
                            <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                    </ul>
                    <!--[if lte IE 6]></td></tr></table></a><![endif]-->
            </li>
            <li><a href="#" class="fly">Resources<!--[if gte IE 7]><!--></a><!--<![endif]-->
                    <!--[if lte IE 6]><table><tr><td><![endif]-->
                    <ul>
                        <li><a href="pbInstruction_Resources.php">Books, &nbsp; etc.</a></li>
                        <li><a href="pbInstruction_ScoreSheets.php">Scoresheets</a></li>
                    </ul>
                    <!--[if lte IE 6]></td></tr></table></a><![endif]-->
            </li>
        </ul>
        <!--[if lte IE 6]></td></tr></table></a><![endif]-->
    </li>
    <li class="top"><a href="#" id="links" class="top_link"><span class="down">Links</span><!--[if gte IE 7]><!--></a><!--<![endif]-->
        <!--[if lte IE 6]><table><tr><td><![endif]-->
        <ul class="sub">
            <li><a href="pbList_Equip.php">Equipment</a></li>
            <li><a href="pbList_Org.php">Organisations</a></li>
            <li><a href="pbList_Instr.php">Instruction</a></li>
            <li><a href="pbList_Centres.php">Bowling Centres</a></li>
			 <li><a href="pbList_Pro.php">Pro Shops</a></li>
            <li><a href="pbList_Links.php">Index Pages</a></li>
            <li><a href="pbList_Pers.php">Bowler Websites</a></li>
            <li><a href="pbList_Media.php">Magazines</a></li>    
            <li><a href="http://www.BTBA.org.uk" target="_BTBA" >BTBA</a></li>
            <li><a href="pbList_Misc.php">Misc.</a></li>                    
        </ul>
        <!--[if lte IE 6]></td></tr></table></a><![endif]-->
    </li>
    <li class="top"><a href="#" id="Shop" class="top_link"><span class="down">Shop</span><!--[if gte IE 7]><!--></a><!--<![endif]-->
        <!--[if lte IE 6]><table><tr><td><![endif]-->
        <ul class="sub">
            <li><a href="pbShop_games.php" target="">Games</a></li>			
            <li><a href="pbShop_books.php" target="">Books</a></li>					 	
        </ul>
        <!--[if lte IE 6]></td></tr></table></a><![endif]-->
    </li>
    <li class="top"><a href="Contact.php" id="Contact" class="top_link"><span class="down">Contact</span><!--[if gte IE 7]><!--></a><!--<![endif]-->
        <!--[if lte IE 6]><table><tr><td><![endif]-->
        <ul class="sub">
            <li><a href="Contact.php" target="">Contact Form</a></li>			
        </ul>
        <!--[if lte IE 6]></td></tr></table></a><![endif]-->
    </li>
</ul>  

		</div>   <!--  ******** *********   Menu block  end  ********* ********  -->
    </div>	 			 
			 

Hi

Thanks for the clues. Managed to get moving on the updates now.

http://www.probowluk.co.uk

Using the POST method, how do I get the Contact Form fields sent to my email address, or added to a file ?

cheers

Sponsor our Newsletter | Privacy Policy | Terms of Service