I tried using an if statement and an Echo, and it displayed everything very skewed and wouldn't use my inner PHP functions. So I am at a loss of ideas.
Code: Select all
<?php
if( is_in_market() ){
?>
<div class="col1">
<p>Search for a item:</p>
<form style="margin-bottom:0;margin:0;" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<input class="postform" type="text" name="s" value="Search for something" onfocus="this.value='',this.style.backgroundColor='#fff'" onblur="this.style.backgroundColor='#fff'" size="42" id="search_input" />
<input type="image" src="<?php bloginfo('template_directory'); ?>/imgs/sf.png" value="Search" alt="Search" title="Search" />
</form>
</div>
<?php
}
?>could I just use the Include function, and put the HTML form stuff in a separate file?
Any ideas peoples?
----
Edit:
Using the Include function seems to solve this.