• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

any php/html guru here?

R

ragtek

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

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

remove the second <?php echo
 
R

ragtek

Guest
#3
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 ;)
 

Mike Law

Active member
#9
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
 

borbole

Well-known member
#12
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.
 
#14
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;
}