PDA

View Full Version : Heeeelp


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>

windumi
12-07-2005, 07:43 AM
you can use Data::Dump to check the $cgi variable,

use GUI;
$cgi=new CUI;
Data::Dumper($cgi);


and you'll find some clue .

the selected time will affect the content of $cgi ( ENV{},etc...)

and you can use these variable to write back the select user to the page

(just set the field of select item to be "ON")

FishMonger
12-07-2005, 08:29 AM
windumi,

Before I point out what your code doesn't do, can you explain what you think it does and then show us a tested example using that code?