do you have to declare %n in the url?
JJ wrote:
I recently did this (in a very simple php script), but i had one problem:
if there is a space in an AIM name, it will only log up to the [first] space. is there some sort of trick to get the full name? it works fine in a browser, but only messes up in AIM (i don't think they convert " " to %20. Here's the url:
<a href="my_server/profile.php?id=%n" target="_self">click me</a>
Here's the code:
<?php
$file = "profile/names.txt";
// open + read
$open = fopen($file, "r+");
$read = fread($open, filesize($file));
fclose($open);
// make sure id exists and is not already logged - case insensitive
if($id && !stristr($read, $id) ){
// add id to list
$open2 = fopen($file, "w+");
$newNames = "$id$read";
fputs($open2, $newNames);
print $newNames;
fclose($open2);
}
else{
// already logged, just print the current list
print $read;
}
?>