|
 |
|
ช่วยดูให้ที่ครับ อันนี้เป็นอนัที่อยากให้พอกดเลือกทำงานแล้วขึ้นโชว์ใข้องใต้ที่เลือกเลยงะครับ |
|
 |
|
|
 |
 |
|
ขยายความหน่อยครับ 
|
 |
 |
 |
 |
Date :
2009-08-15 17:17:38 |
By :
lozomac |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อันนี้ Code อันบนนะครับ
ไฟล์ Test1.php
Code (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=windows-874" />
<title>Powered By P@e.</title>
<style type="text/css">
<!--
.style1 {font-size: 14px}
-->
</style>
<script type="text/javascript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>
<body>
<div align="center">
<form name="test" method="post" action="test2.php">
<table width="200" border="1" cellspacing="0">
<tr>
<td><div align="center"><span class="style1">กรุณาเลือกสถานะของท่าน</span></div></td>
</tr>
<tr>
<td><div align="center">
<select name="select" id="select" onChange="MM_jumpMenu('parent',this,0)">
<option>--- กรุณาเลือก ---</option>
<option value="test1.php?select=ยังไม่ทำงาน">ยังไม่ทำงาน</option>
<option value="test1.php?select=ทำงานแล้ว">ทำงานแล้ว</option>
</select>
<input name="select" type="hidden" id="select" value="<?=$_GET['select']?>" />
<br />
<?
if(isset($_GET['select']))
{
echo "<font color=red>".$_GET['select']."</font>";
}
?>
</div></td>
</tr>
<tr>
<td><div align="center">
<input type="submit" name="Submit" value="ตกลง" />
</div></td>
</tr>
</table>
</form>
</div>
</body>
</html>
ไฟล์ Test2.php
Code (PHP)
<?
echo $_POST['select'];
?>
|
 |
 |
 |
 |
Date :
2009-08-15 17:24:25 |
By :
panyapol |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 04
|