|
 |
|
รบกวนช่วยดู radio button ให้หน่อยค่ะ อาการมันเป็นหยั่งงี้ คือทำเป็นแบบทดสอบเวลาที่ user ไปทำบนเว็บแล้วมัน |
|
 |
|
|
 |
 |
|
Code (PHP)
<?php
<!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=utf-8" />
<title>Untitled Document</title>
<script language="javascript">
/*develop by Bigquery.com*/
function checkBoxSelectOne(cb,gp,grp){
eval("var gn=gp." + grp);
eval("var len= gn.length");
eval("var lx= gp.hid" +grp);
if(gn[cb].checked == true){
for (j=0; j < len ; j++ ){
if(gn[j].checked==true){
gn[j].checked = false
}
if(j == cb){
gn[j].checked=true
lx.value=gn[j].value
}
}
}else{
lx.value=""
}
}
</script>
</head>
<body>
<form name="selectOne" action="checkbox_select_one.html">
Your web site is dynamic or static?<br />
<input type="checkbox" name="site" value="dynamic" onClick="checkBoxSelectOne(0, this.form, this.name)" /> Dynamic
<input type="checkbox" name="site" value="static" onClick="checkBoxSelectOne(1, this.form, this.name)" /> Static
<input type="hidden" name="hidsite" /><br />
------------------------------------------------<br />
Which language to learn for make website?<br />
<input type="checkbox" name="lang" value="ASP" onClick="checkBoxSelectOne(0, this.form, this.name)" /> ASP
<input type="checkbox" name="lang" value="PHP" onClick="checkBoxSelectOne(1, this.form, this.name)" /> PHP
<input type="checkbox" name="lang" value="C#.net" onClick="checkBoxSelectOne(2, this.form, this.name)" /> C#.net
<input type="checkbox" name="lang" value="JSP" onClick="checkBoxSelectOne(3, this.form, this.name)" /> JSP
<input type="hidden" name="hidlang" /><br />
------------------------------------------------<br />
<input type="submit" name="submitted" value="Submit" />
</form>
</body>
</html>
?>
ตัวอย่าง
|
 |
 |
 |
 |
Date :
2009-08-18 11:51:09 |
By :
panyapol |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ได้แล้วค่ะ ขอบคุณมากมาย
|
 |
 |
 |
 |
Date :
2009-08-18 13:04:14 |
By :
ying-oohho |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 02
|