jaymc Posted November 14, 2006 Share Posted November 14, 2006 Ok, to simplify my problem, I have the following link[code]<div OnClick="window.top.frames['audio'].location.href='../site/music.php?albumid=159&albumname=The Singles&artistname=Basement' Jaxx'">[/code]The problem is concerning this string of text[b] Basement' [/b]now obviously its conflicting with the =' opener and confusing the browser thinking its trying to closer the = when it hits Basement' But of course its notAnyway around this, any special character so it ignores certain input? Quote Link to comment https://forums.phpfreaks.com/topic/27174-pretty-dumb-question-but-really-annoying-me/ Share on other sites More sharing options...
jsladek Posted November 14, 2006 Share Posted November 14, 2006 I would suspect the space between [b]albumname=The Singles[/b], it's probably dropping the rest of the line. I think you may want %20 in there [b]albumname=The%20Singles[/b]Regards,John Sladek Quote Link to comment https://forums.phpfreaks.com/topic/27174-pretty-dumb-question-but-really-annoying-me/#findComment-124292 Share on other sites More sharing options...
jaymc Posted November 14, 2006 Author Share Posted November 14, 2006 Still doesnt workcheese='The Name's Here'That wont work right?Thats the issue, not the space, the ' Quote Link to comment https://forums.phpfreaks.com/topic/27174-pretty-dumb-question-but-really-annoying-me/#findComment-124722 Share on other sites More sharing options...
fenway Posted November 15, 2006 Share Posted November 15, 2006 You need to escape those single quotes, \'. Quote Link to comment https://forums.phpfreaks.com/topic/27174-pretty-dumb-question-but-really-annoying-me/#findComment-125261 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.