claymaker
11-18-2005, 11:16 PM
This is a small im script and when a user is picked you push send then the list of users will reset to the top of the list is there a way to make the selected user stay selected
print qq~
</tr>
<tr align="left" valign="top" bgcolor="$tablecolor2">
<td height="4" background="http://www.yourname/im/back.jpg">
<p align="center">
<b>
<font face="Arial, Helvetica, sans-serif" size="3">
Send A Message To:</font><font face="Arial, Helvetica, sans-serif" size="3">
</font>
</b>~;
if ($too eq "dropdown"){
print qq~</tr>
<tr align="left" valign="top" bgcolor="$tablecolor2">
<td height="50" background="http://www.yourname.com/im/back.jpg">
<form>
<input type="hidden" name="user" value="$user">
<input type="hidden" name="pass" value="$pass">
<input type="hidden" name="too" value="$too">
<input type="hidden" name="visible" value="$visible">
<input type="hidden" name="refreshonoff" value="$refreshonoff">
<center><select name="to" size="1" style="BACKGROUND: D8D8BF; COLOR: 000000;" >
<option selected>___Select A User___</option>
~;
$friendappend = "sfriends"; #name to be appended to the username of the friendlist owner
</select>
print qq~
</tr>
<tr align="left" valign="top" bgcolor="$tablecolor2">
<td height="4" background="http://www.yourname/im/back.jpg">
<p align="center">
<b>
<font face="Arial, Helvetica, sans-serif" size="3">
Send A Message To:</font><font face="Arial, Helvetica, sans-serif" size="3">
</font>
</b>~;
if ($too eq "dropdown"){
print qq~</tr>
<tr align="left" valign="top" bgcolor="$tablecolor2">
<td height="50" background="http://www.yourname.com/im/back.jpg">
<form>
<input type="hidden" name="user" value="$user">
<input type="hidden" name="pass" value="$pass">
<input type="hidden" name="too" value="$too">
<input type="hidden" name="visible" value="$visible">
<input type="hidden" name="refreshonoff" value="$refreshonoff">
<center><select name="to" size="1" style="BACKGROUND: D8D8BF; COLOR: 000000;" >
<option selected>___Select A User___</option>
~;
$friendappend = "sfriends"; #name to be appended to the username of the friendlist owner
</select>