View Single Post
Old 30th June 2008, 09:38 AM   #3 (permalink)
Simon
Dedicated to life!
 
Simon's Avatar
 
Join Date: Jul 2005
Location: 36°38'4.48"N - 4°42'18.52"W
Posts: 2,058
Send a message via MSN to Simon Send a message via Yahoo to Simon Send a message via Skype™ to Simon
Quote:
Originally Posted by urbanxtremes View Post
Code:
<a href='news_content.php?id=$id=$hpagesheader' title='$hpagesheader'>
I suspect what you really want is
Code:
<a href='news_content.php?id=4&header=Some_header_string' title='Some header string'>
Using = to seperate the id and the header are going to complicate things in your news_content.php script

As percepts said, you need str_replace
PHP Code:
echo "<a href='news_content.php?id=$id&header=".str_replace(' ''_'$hpagesheader)."' title='$hpagesheader'>"
__________________
Freelance PHP Programming
__________________

Last edited by Simon : 30th June 2008 at 09:40 AM.
Simon is offline   Reply With Quote