<html> <head> <script language="javascript"> function selected5(){ document.form.groupbuyETC.disabled=true; } function selected6(){ document.form.groupbuyETC.disabled=false; } function selected7(){ document.form.groupkeepETC.disabled=true; } function selected8(){ document.form.groupkeepETC.disabled=false; } </script> </head> <body> <form name="form" action="" method="post"> <table border="0" cellpadding="1" cellspacing="0"> <tr> <td colspan="6">3). ท่านซื้อสินค้า ในหมวดใดบ้าง (ตอบได้มากกว่า 1 ข้อ) <font color="red">*</font></td> </tr> <tr> <td colspan="6"> <table border="0" cellpadding="1" cellspacing="0"> <tr> <td colspan="4"><input type="checkbox" name="groupbuy[]" id="groupbuy1" value="สำหรับเด็ก" style="background:none"> สำหรับเด็ก <input type="checkbox" name="groupbuy[]" id="groupbuy2" value="สำหรับวัยรุ่น" style="background:none">สำหรับวัยรุ่น </td> </tr> <tr> <td colspan="4"><input type="checkbox" name="groupbuy[]" id="groupbuy3" value="สำหรับผู้ใหญ่" style="background:none">สำหรับผู้ใหญ่ <input type="checkbox" name="groupbuy[]" id="groupbuy4" value="สำหรับสตรี" style="background:none">สำหรับสตรี </td> </tr> <tr> <td colspan="4"><input type="checkbox" name="groupbuy[]" id="groupbuy5" value="สำหรับสตรีตั้งครรภ์" style="background:none"> สำหรับสตรีตั้งครรภ์ <input type="checkbox" name="groupbuy[]" id="groupbuy6" value="อื่นๆ" style="background:none" onClick="javaScript:if(this.checked){selected6();}else{selected5();}"> อื่นๆ ระบุ <input name="groupbuyETC" type="text" size="30" maxlength="40" disabled="true"> </td> </tr> <tr> <td colspan="6">3). ท่านเก็บสะสมสินค้า ในหมวดใดบ้าง (ตอบได้มากกว่า 1 ข้อ) <font color="red">*</font></td> </tr> <tr> <td colspan="6"> <table border="0" cellpadding="1" cellspacing="0"> <tr> <td colspan="4"><input type="checkbox" name="groupkeep[]" id="groupkeep1" value="สำหรับเด็ก" style="background:none"> สำหรับเด็ก <input type="checkbox" name="groupkeep[]" id="groupkeep2" value="สำหรับวัยรุ่น" style="background:none">สำหรับวัยรุ่น </td> </tr> <tr> <td colspan="4"><input type="checkbox" name="groupkeep[]" id="groupkeep3" value="สำหรับผู้ใหญ่" style="background:none">สำหรับผู้ใหญ่ <input type="checkbox" name="groupkeep[]" id="groupkeep4" value="สำหรับสตรี" style="background:none">สำหรับสตรี </td> </tr> <tr> <td colspan="4"><input type="checkbox" name="groupkeep[]" id="groupkeep5" value="สำหรับสตรีตั้งครรภ์" style="background:none"> สำหรับสตรีตั้งครรภ์ <input type="checkbox" name="groupkeep[]" id="groupkeep6" value="อื่นๆ" style="background:none" onClick="javaScript:if(this.checked){selected8();}else{selected7();}"> อื่นๆ ระบุ <input name="groupkeepETC" type="text" size="30" maxlength="40" disabled="true"> </td> </tr> </table> </td> </tr></table> </form> </body> </html> <? for($i=0;$i<count($_POST["groupbuy"]);$i++){echo $test1=$_POST["groupbuy"][$i]."/";} echo $groupbuyETC=$_POST["groupbuyETC"]; for($i=0;$i<count($_POST["groupkeep"]);$i++){echo $test2=$_POST["groupkeep"][$i]."/";} echo $groupbuyETC=$_POST["groupkeepETC"]; ?>
<!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"> function selected5(){ document.form.groupbuyETC.disabled=true; } function selected6(){ document.form.groupbuyETC.disabled=false; } function selected7(){ document.form.groupkeepETC.disabled=true; } function selected8(){ document.form.groupkeepETC.disabled=false; } </script> </head> <body> <form name="form" action="" method="post"> <table border="0" cellpadding="1" cellspacing="0"> <tr> <td colspan="6">3). ท่านซื้อสินค้า ในหมวดใดบ้าง (ตอบได้มากกว่า 1 ข้อ) <font color="red">*</font></td> </tr> <tr> <td colspan="6"> <table border="0" cellpadding="1" cellspacing="0"> <tr> <td colspan="4"><input type="checkbox" name="groupbuy[]" id="groupbuy1" value="สำหรับเด็ก" style="background:none"> สำหรับเด็ก <input type="checkbox" name="groupbuy[]" id="groupbuy2" value="สำหรับวัยรุ่น" style="background:none">สำหรับวัยรุ่น </td> </tr> <tr> <td colspan="4"><input type="checkbox" name="groupbuy[]" id="groupbuy3" value="สำหรับผู้ใหญ่" style="background:none">สำหรับผู้ใหญ่ <input type="checkbox" name="groupbuy[]" id="groupbuy4" value="สำหรับสตรี" style="background:none">สำหรับสตรี </td> </tr> <tr> <td colspan="4"><input type="checkbox" name="groupbuy[]" id="groupbuy5" value="สำหรับสตรีตั้งครรภ์" style="background:none"> สำหรับสตรีตั้งครรภ์ <input type="checkbox" name="groupbuy[]" id="groupbuy6" value="อื่นๆ" style="background:none" onClick="javaScript:if(this.checked){selected6();}else{selected5();}"> อื่นๆ ระบุ <input name="groupbuyETC" type="text" size="30" maxlength="40" disabled="true"> </td> </tr> <tr> <td colspan="6">3). ท่านเก็บสะสมสินค้า ในหมวดใดบ้าง (ตอบได้มากกว่า 1 ข้อ) <font color="red">*</font></td> </tr> <tr> <td colspan="6"> <table border="0" cellpadding="1" cellspacing="0"> <tr> <td colspan="4"><input type="checkbox" name="groupkeep[]" id="groupkeep1" value="สำหรับเด็ก" style="background:none"> สำหรับเด็ก <input type="checkbox" name="groupkeep[]" id="groupkeep2" value="สำหรับวัยรุ่น" style="background:none">สำหรับวัยรุ่น </td> </tr> <tr> <td colspan="4"><input type="checkbox" name="groupkeep[]" id="groupkeep3" value="สำหรับผู้ใหญ่" style="background:none">สำหรับผู้ใหญ่ <input type="checkbox" name="groupkeep[]" id="groupkeep4" value="สำหรับสตรี" style="background:none">สำหรับสตรี </td> </tr> <tr> <td colspan="4"><input type="checkbox" name="groupkeep[]" id="groupkeep5" value="สำหรับสตรีตั้งครรภ์" style="background:none"> สำหรับสตรีตั้งครรภ์ <input type="checkbox" name="groupkeep[]" id="groupkeep6" value="อื่นๆ" style="background:none" onClick="javaScript:if(this.checked){selected8();}else{selected7();}"> อื่นๆ ระบุ <input name="groupkeepETC" type="text" size="30" maxlength="40" disabled="true"> </td> </tr> </table> </td> </tr></table> <p> <input type="submit" name="button" id="button" value="Submit" /> </p> </form> </body> </html> <? if( count($_POST["groupbuy"]) > 0 ) { foreach( $_POST["groupbuy"] as $value){ $test1 .= $value.' / '; } } echo $test1; echo '<br>'; if( count($_POST["groupkeep"]) > 0 ) { foreach( $_POST["groupkeep"] as $value){ $test2 .= $value.' / '; } } echo $test2; ?> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง