View Full Version : URL Encode problem.
11-02-2006, 11:31 PM
Okay, I have a script that checks weather or not an AIM screenname is online. Today I realized that you can have spaces in your AIM screename... So I urlencoded "my screename" to become "my+screename" only problem is when I feed the username into this link:
and IM box comes up for "my", not the whole screenname, any clue how I can fix this?
11-02-2006, 11:37 PM
show your code dude
11-02-2006, 11:45 PM
//not needed for JS
$username = $_GET['u'];
<a href="aim:goim?screename=<?=$username?>&message=Hey">Click Here to IM <?=$username?></a>
echo("No AIM username specified.");
So if $username = "screen+name", an IM box shows up for "screen".
11-02-2006, 11:48 PM
if u post al ur code for 2 pages i will test on server
11-02-2006, 11:50 PM
<a href="http://myspace-source.com/aimclick.php?u=screen+name" target="_BLANK">
<img src="http://myspace-source.com/aimonline.php/screen+name.gif" border="0"></a>
Would be a sample button you might see on a page.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.