any php/html guru here?

You're starting the php process(if it's called so:D ) 2 times;)

<?php
echo ..... <?php echo

remove the second <?php echo
 
this should work

PHP:
echo '<a href="http://www.myforumurl.com/search/search?keywords=' . urlencode($page_title) . '">Discuss this topic in forums</a>';

this will ONLY work, if you have a url_encode function ;)

I think you want to use urlencode ;)
 
Thanks for the kind help,

result is now

/search/search?keywords=

using

PHP:
<div style="float:left;"/>
<?php
echo '<a href="http://www.forum.com/search/search?keywords=' . urlencode($page_title) . '">Discuss this topic in forums</a>';
?>
</div>

See here, next to twitter button

http://bit.ly/p4S4YR
 
Thanks for the kind help,

result is now

/search/search?keywords=

using

PHP:
<div style="float:left;"/>
<?php
echo '<a href="http://www.forum.com/search/search?keywords=' . urlencode($page_title) . '">Discuss this topic in forums</a>';
?>
</div>

See here, next to twitter button

http://bit.ly/p4S4YR

You shouldn''t close the first div tag. Also it would be better to include the div inside the php tags.
 
Code:
<?php

echo '<div style="float:left"><a href="http://www.forum.com/search/search?keywords=' . urlencode($page_title) . '">Discuss this topic in forums</a></div>';

?>

Would that not have been better above, also there's no need to include a "semi-colon" in that style class seeing as your only using one style attribute only (float).

I would also consider doing away with using an in-line style class, instead putting your css in the extra css box and called it that way using a class rather than adding "style". Helps keep your pages loading faster.

Code:
<div class="customsearch">

CSS Added

Code:
.customsearch {
float:left;
}
 
Top Bottom