php 下拉列表实现的友情链接
下拉列表实现的友情链接 [代码片段(34行)]
<?
if ($site != \"\") :
header(\"Location: http://$site\");
exit;
else :
?>
<html>
<head>
<title></title>
</head>
<body>
<?
$favsites = array (\"outofmemory.cn
?>
<form action = \"index.php\" method=\"post\">
<select name=\"site\">
<option value = \"\">Choose a site:
<?
$x = 0;
while ( $x < sizeof ($favsites) ) :
print \"<option value=\'$favsites[$x]\'>$favsites[$x]\";
$x++;
endwhile;
?>
</select>
<input type=\"submit\" value=\"go!\">
</form>
<?
endif;
?>
//该片段来自于http://outofmemory.cn
- 上一篇:php 打开浏览器密码输入对话框
- 下一篇:php 基于文件的网页身份认证
精彩图集
精彩文章






