php星形评级代码

zhangbolang888 2009-06-11 11:19:56
我下载了一个星级评级代码,可是怎么来获取他评级后的值呢。
我的代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Rating</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="rating.js"></script>
<link rel="stylesheet" type="text/css" href="rating.css" />
<script type="text/javascript">
$(document).ready(function() {
$('#rate2').rating('www.url.php', {maxvalue:8, curvalue:3});
});
</script>
<style type="text/css">
.implementation{
border:dashed 2px #333333;
background-color:#CCCCCC;
color:#000000;
width:50%;
}

.spacer{
clear:both;
height:0px;
}
.left{
float:left;
width:250px;
}
</style>
</head>
<body>
<form action="rating_save.php" name="rating" method="post">
</div>
<div id="rate2" class="rating"> </div>
<div class="implementation">
<pre>$('#rate2').rating('www.url.php', {maxvalue:5, curvalue:3});</pre>
</div>
<div> </div>
<div>
As you might have notice, for single star, the script works like a star/unstarl. For two or more stars, it works as a rating system. To value at the server end can be recieved via post variable named "rating".
</div>
<div style="height:5px"> </div>
<input name="submit" type="submit" value="提交" />
</form>
</body>
</html>
...全文
125 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
abin30 2009-06-14
  • 打赏
  • 举报
回复
晕,什么东西哦。 你看看 rating.js 那个文件吧。
chinanet6028 2009-06-13
  • 打赏
  • 举报
回复
?

21,886

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧