<table class="top_nav_bar" border="0" cellpadding="0" cellspacing="0"><tr><td class="left"><a href="myfriend.php?sid=<?php  echo $sid_info?>">返回</a></td><td class="center" style="text-align:center">添加好友</td><td class="right"></td></tr></table></div>
<form method="POST" action="?type=add">
<div class="title">请输入您要添加的好友号码</div>
<input name="userid" type="text" value="<?php  echo $_GET['f']?>">
<div class="title">请选择您要添加的分组</div>
<select name="groid"> 
<option value="0">我的好友</option>
<?php 
$sqlgro="SELECT id,userid,siteid,name,xuhao FROM myfgro WHERE siteid='{$wapid}' AND userid='{$id}' ORDER BY xuhao ASC"; 
$list = mysql_query($sqlgro);
if($list && mysql_num_rows($list)>0){

	while(list($id,$userid,$siteid,$name,$xuhao) = mysql_fetch_row($list)){
	   echo '<option value='.$id.'>'.$name.'</option>';
	  }
	}
	?>
</select>
<input  name="add" type="hidden" value="yes">
<input  type="submit" value="添加好友">
</form>