Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter lolattack

    (@lolattack)

    Worked like a charm. Thank you, Sarah.

    Thread Starter lolattack

    (@lolattack)

    Anyone?

    Thread Starter lolattack

    (@lolattack)

    Perfect. I figured out it was a blockquote tag I was using.

    What are the html errors that you are referring to besides that one?

    Thread Starter lolattack

    (@lolattack)

    It’s not really helping me. I don’t know what I’m doing wrong, but I used the following code and named it “contact.php” and uploaded it in the same folder as my current theme is using.

    <?php
    /*
    Template Name: Contact
    */
    ?>
    
    <?php get_header(); ?>
    
    	<div id="wrapper">
    
    		<div id="header">
    			<a href="<?php bloginfo('siteurl'); ?>"><img src="<?php bloginfo('template_directory'); ?>/images/lolattack.gif" alt="<?php bloginfo('name'); ?>" class="logo" /></a>
    		</div>
    
    		<?php include (TEMPLATEPATH . '/navigation.php'); ?>
    
    		<div id="main_container">
    
    			<div id="content">
    
    	<div id="log">
    	<div id="log_res">
    		<!-- spanner -->
    	</div>
    	</div>
    <form id="myForm" action="send.php" method="get" name="myForm">
    	<div id="form_box">
    		<div id="comment_form">
    			<p>
    
    				First Name:
    			</p><input type="text" name="first_name" id="comment_form" value="" />
    		</div>
    		<div id="comment_form">
    			<p>
    				Last Name:
    			</p><input type="text" name="last_name" id="comment_form" value="" />
    		</div>
    		<div id="comment_form">
    			<p>
    
    				E-Mail:
    			</p><input type="text" name="e_mail" id="comment_form" value="" />
    		</div>
    		<div id="comment_form">
    			<p>
    				Regarding:
    			</p><select name="regarding" id="comment_form" class="comment_form"><option value="-" >Please Choose</option><option value="Advertising" >Advertising</option><option value="Press" >Press</option><option value="Speaking Proposal" >Speaking Proposal</option><option value="General" >General</option></select>
    
    		</div>
    		<div id="comment_form">
    			<p>
    				Message:
    			</p><textarea id="comment_form" name="message" cols="40" rows="5" /></textarea>
    		</div>
    		<!-- spanner -->
    		<div id="comment_form">
    		<p><input name="submit" type="submit" id="submit" value="Send Message" /></p></div>
    
    	</form>
    
    			</div>
    
    			<?php get_sidebar(); ?>
    
    		</div>
    
    	</div>
    
    <?php get_footer(); ?>

    And I get the following error:

    Fatal error: Call to undefined function get_header() in /home/fourstar/public_html/wp-content/themes/lolattack_theme/contact.php on line 7

    As you can see on line 7, is: <?php get_header(); ?>.

    Don’t know why it’s doing this.

    for reference the page url is https://www.lolattack.com/wp-content/themes/lolattack_theme/contact.php

Viewing 4 replies - 1 through 4 (of 4 total)