Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > PHP > PHP Forum > ช่วยที่ครับ เรื่องปุ่มกด คือ มีปัญหา ว่า ผมเพิ่มปุ่มกด ตกลง แล้วมันก็มี ทุกบรรทัด แล้วพอ เพิ่มเข้าไป ใน ฟอร์ม



 

ช่วยที่ครับ เรื่องปุ่มกด คือ มีปัญหา ว่า ผมเพิ่มปุ่มกด ตกลง แล้วมันก็มี ทุกบรรทัด แล้วพอ เพิ่มเข้าไป ใน ฟอร์ม

 



Topic : 036263



โพสกระทู้ ( 80 )
บทความ ( 0 )



สถานะออฟไลน์




คือ มีปัญหา ว่า ผมเพิ่มปุ่มกด ตกลง แล้วมันก็มี ทุกบรรทัด แล้วพอ เพิ่มเข้าไป ใน ฟอร์ม มันก็ดันติก ถูกในข้อไม่ได้

พูดแล้วก็ งง กับตัวเองนิดหน่อย ลองเอาไปดูนะครับ ใครช่วยได้ช่วยที่ครับ


อันนี้คือฐานข้อมูลครับ
Code
-- phpMyAdmin SQL Dump
-- version 2.10.3
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Dec 27, 2009 at 01:39 PM
-- Server version: 5.0.51
-- PHP Version: 5.2.6

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

--
-- Database: `project`
--

-- --------------------------------------------------------

--
-- Table structure for table `pro_answer`
--

CREATE TABLE `pro_answer` (
`answer_id` int(3) NOT NULL auto_increment,
`answer` varchar(100) character set utf8 NOT NULL COMMENT 'คำตอบ',
`head_id` int(3) NOT NULL,
PRIMARY KEY (`answer_id`,`head_id`)
) ENGINE=MyISAM DEFAULT CHARSET=tis620 AUTO_INCREMENT=2 ;

--
-- Dumping data for table `pro_answer`
--

INSERT INTO `pro_answer` VALUES (1, '', 0);

-- --------------------------------------------------------

--
-- Table structure for table `pro_heading`
--

CREATE TABLE `pro_heading` (
`head_id` int(3) NOT NULL auto_increment COMMENT 'รหัสโครงการ',
`heading` varchar(100) character set utf8 NOT NULL COMMENT 'ชื่อโครงการ',
`starttime` varchar(50) NOT NULL,
`stoptime` varchar(11) NOT NULL,
PRIMARY KEY (`head_id`)
) ENGINE=MyISAM DEFAULT CHARSET=tis620 AUTO_INCREMENT=260 ;

--
-- Dumping data for table `pro_heading`
--

INSERT INTO `pro_heading` VALUES (3, 'aaa', '1/01/2550', '1/01/2550');
INSERT INTO `pro_heading` VALUES (1, ' ẺÊÓÃǨ¤ÇÒÁ¤Ô´àË繡ÒúÃÔ¡ÒâͧºÃÔÉѷöâ´ÂÊÒûÃШӷҧ', '25/12/2552', '31/12/2552');
INSERT INTO `pro_heading` VALUES (2, 'aaa', '1/01/2550', '1/01/2550');

-- --------------------------------------------------------

--
-- Table structure for table `pro_question`
--

CREATE TABLE `pro_question` (
`question_id` int(3) NOT NULL auto_increment COMMENT 'รหัสคำถาม',
`question` varchar(100) character set utf8 NOT NULL COMMENT 'คำถาม',
`head_id` varchar(100) NOT NULL,
PRIMARY KEY (`question_id`)
) ENGINE=MyISAM DEFAULT CHARSET=tis620 AUTO_INCREMENT=256 ;

--
-- Dumping data for table `pro_question`
--

INSERT INTO `pro_question` VALUES (235, '¤ÇÒÁàËÁÒÐÊÁà¤Ã×èͧẺ¾¹Ñ¡¢ÑºÃ¶áÅо¹Ñ¡§Ò¹à¡çºà§Ô¹', '1');
INSERT INTO `pro_question` VALUES (232, '¡Òö֧·ÕèËÁÒµçàÇÅÒ', '1');
INSERT INTO `pro_question` VALUES (233, '¤ÇÒÁÊÐÍÒ´ÀÒÂã¹áÅÐÀÒ¹͡¢Í§Ã¶', '1');
INSERT INTO `pro_question` VALUES (230, '¡ÒÃãËéºÃÔ¡Òâͧ¾¹Ñ¡§Ò¹¢ÒµÑëÇâ´ÂÊÒÃ', '1');
INSERT INTO `pro_question` VALUES (229, '¾¹Ñ¡§Ò¹¢ÑºÍÂèÒ§ÊØÀÒ¾»ÅÍ´ÀÑÂ', '1');
INSERT INTO `pro_question` VALUES (234, 'àÊé¹·Ò§·ÕèãËéºÃÔ¡ÒÃ㹻Ѩ¨ØºÑ¹', '1');
INSERT INTO `pro_question` VALUES (236, '¤ÇÒÁàËÁÒÐÊÁã¹ÍѵÃÒ¤èÒºÃÔ¡ÒÃ', '1');
INSERT INTO `pro_question` VALUES (237, '»ÃÔÁÒ³à¾Õ§¾ÍµèͤÇÒÁµéͧ¡Òâͧ¼Ùéâ´ÂÊÒÃ', '1');
INSERT INTO `pro_question` VALUES (238, '¤ÇÒÁÊдǡʺÒÂÀÒÂã¹Ã¶â´ÂÊÒÃ', '1');
INSERT INTO `pro_question` VALUES (239, '¾¹Ñ¡§Ò¹¢ÑºÃ¶¨Í´µÃ§»éÒÂÃÍöâ´ÂÊÒÃ', '1');
INSERT INTO `pro_question` VALUES (246, '¡ÒÃãËéºÃÔ¡Òâͧ¾¹Ñ¡§Ò¹¢ÒµÑëÇâ´ÂÊÒÃ', '3');
INSERT INTO `pro_question` VALUES (247, '¾¹Ñ¡§Ò¹¢ÑºÍÂèÒ§ÊØÀÒ¾»ÅÍ´ÀÑÂ', '3');
INSERT INTO `pro_question` VALUES (248, '¡Òö֧·ÕèËÁÒµçàÇÅÒ', '3');
INSERT INTO `pro_question` VALUES (249, '¤ÇÒÁÊÐÍÒ´ÀÒÂã¹áÅÐÀÒ¹͡¢Í§Ã¶', '3');
INSERT INTO `pro_question` VALUES (250, 'àÊé¹·Ò§·ÕèãËéºÃÔ¡ÒÃ㹻Ѩ¨ØºÑ¹', '3');
INSERT INTO `pro_question` VALUES (251, '¤ÇÒÁàËÁÒÐÊÁà¤Ã×èͧẺ¾¹Ñ¡¢ÑºÃ¶áÅо¹Ñ¡§Ò¹à¡çºà§Ô¹', '3');
INSERT INTO `pro_question` VALUES (252, '¤ÇÒÁàËÁÒÐÊÁã¹ÍѵÃÒ¤èÒºÃÔ¡ÒÃ', '3');
INSERT INTO `pro_question` VALUES (253, '»ÃÔÁÒ³à¾Õ§¾ÍµèͤÇÒÁµéͧ¡Òâͧ¼Ùéâ´ÂÊÒÃ', '3');
INSERT INTO `pro_question` VALUES (254, '¤ÇÒÁÊдǡʺÒÂÀÒÂã¹Ã¶â´ÂÊÒÃ', '3');
INSERT INTO `pro_question` VALUES (255, '¾¹Ñ¡§Ò¹¢ÑºÃ¶¨Í´µÃ§»éÒÂÃÍöâ´ÂÊÒÃ', '3');

-- --------------------------------------------------------

--
-- Table structure for table `pro_register`
--

CREATE TABLE `pro_register` (
`id` int(3) NOT NULL auto_increment COMMENT 'รหัสสมาชิก',
`username` varchar(25) NOT NULL COMMENT 'ชื่อบัญชีสมาชิก',
`password` varchar(25) NOT NULL COMMENT 'รหัสบัญชีสมาชิก',
`name` varchar(25) NOT NULL COMMENT 'ชื่อ',
`surname` varchar(25) NOT NULL COMMENT 'นามสกุล',
`address` varchar(50) NOT NULL COMMENT 'ที่อยู่',
`telephon` varchar(10) NOT NULL COMMENT 'เบอร์โทรศัพท์',
`email` varchar(100) NOT NULL,
`position` varchar(5) NOT NULL COMMENT 'สถานะผู้ใช้',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=tis620 AUTO_INCREMENT=51 ;

--
-- Dumping data for table `pro_register`
--

INSERT INTO `pro_register` VALUES (1, 'admin', '1234', 'big', 'rut', '121', '0899999999', '[email protected]', 'admin');
INSERT INTO `pro_register` VALUES (2, 'user', '1234', 'big', 'rut', '231', '0899999999', '[email protected]', '');




Tag : - - - -







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2009-12-27 13:39:53 By : prykazip69 View : 888 Reply : 6
 

 

No. 1



โพสกระทู้ ( 80 )
บทความ ( 0 )



สถานะออฟไลน์


นี้คือหน้า ดีม หน้าที่ 1 ก่อนไปถึงหน้าที่มีปัญหา

Code
<!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>Untitled Document</title>
<style type="text/css">
<!--
.style6 {font-size: 18px;
font-weight: bold;
}
.style2 {
color: #CC3300;
font-weight: bold;
}
.style5 {font-size: 16px}
body {
background-image: url(image/BGMix.jpg);
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
.style7 {
color: #000000;
font-weight: bold;
}
.style9 {
font-size: 24px;
font-weight: bold;
}
.style4 {
font-size: 16px;
font-weight: bold;
color: #0000CC;
}
.style10 {font-size: 16px;
font-weight: bold;
}
-->
</style>
</head>

<body>
<div align="center">
<table width="800" height="140" align="center">
<tr>
<td height="134"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <div align="center"><img src="image/online.jpg" width="320" height="130" /></div></td>
</tr>
</table>
<table width="76%" height="1">
<tr>
<td width="25%" height="41" bgcolor="#FFFFFF"><div align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="style9">:: Admin ::</span> </div></td>
<td width="60%" bgcolor="#FFFFFF"><div align="center" class="style7"><span class="style4">แก้ไขแบบสอบถาม</span></div></td>
<td width="15%" bgcolor="#FFFFFF"><div align="right"><span class="style2"><a href="logout.php">:: Logout ::</a></span></div></td>
</tr>
</table>
<table width="76%" height="438" border="0" cellpadding="2" cellspacing="2">
<tr>
<td width="25%" valign="top"><table width="100%" border="1" cellpadding="0" cellspacing="0">
<tr>
<td height="30" bgcolor="#CDDF91"><div align="center" class="style6">--เมนู--</div></td>
</tr>
<tr>
<td height="30" bgcolor="#CDDF91"><div align="center"><a href="mating.php" class="style5">โครงการ</a></div></td>
</tr>
<tr>
<td height="30" bgcolor="#F3F8E4"><div align="center" class="style5"><a href="program1.php"><span class="style10">&#3623;&#3636;&#3608;&#3637;&#3585;&#3634;&#3619;&#3626;&#3619;&#3657;&#3634;&#3591;&#3649;&#3610;&#3610;&#3626;&#3629;&#3610;&#3606;&#3634;&#3617;</span></a></div></td>
</tr>
<tr>
<td height="30" bgcolor="#CDDF91"><div align="center" class="style5"><a href="program2.php">ทำแบบสอบถาม</a></div></td>
</tr>
<tr>
<td height="30" bgcolor="#F3F8E4"><div align="center" class="style5"><a href="e_program.php">แก้ไขแบบสอบถาม</a></div></td>
</tr>
<tr>
<td height="30" bgcolor="#CDDF91"><div align="center" class="style5"><a href="calculate.php">คำนวนแบบสอบถาม</a></div></td>
</tr>
<tr>
<td height="30" bgcolor="#F3F8E4"><div align="center" class="style5"><a href="ed_sick.php"></a><a href="print.php">ปริ้นแบบสอบถาม</a></div></td>
</tr>
<tr>
<td height="30" bgcolor="#CDDF91"><div align="center" class="style5"><a href="logout.php">ออกจากระบบ</a></div></td>
</tr>
</table></td>
<td width="75%" valign="top"><form id="form1" name="form1" method="post" action="e_program2.php">
<table width="404" height="133" border="0" align="center">
<tr>
<td width="150" height="53"><div align="left"><span class="style6"> รหัสคำถาม</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : </div></td>
<td width="244"><div align="left">
<input name="head_id" type="text" id="head_id" />
</div></td>
</tr>

<tr>
<td height="74"><div align="left"></div></td>
<td><div align="left"> &nbsp;
<input name="Submit1" type="submit" id="Submit1" value="ตกลง" />
&nbsp;&nbsp;
<input name="Submit2" type="reset" id="Submit2" value="ยกเลิก" />
</div></td>
</tr>
</table>
</form></td>
</tr>
</table>
</div>
<p>&nbsp;</p>
<script type="text/javascript">
//<![CDATA[
/*function addbox(){
var b=document.getElementById('inputboxes');
var el1=document.createElement("br");
var el2=document.createElement("input");
el2.name='f1[]';
el2.type='text';
el2.value='';
b.appendChild(el1);
b.appendChild(el2);
}*/
//]]>
</script>
<script type="text/javascript">
//<![CDATA[
function addbox(){
var b=document.getElementById('inputboxes');
var el1=document.createElement("br");
var el2=document.createElement("input");
el2.name='f1[]';
el2.type='text';
el2.value='';
b.appendChild(el1);
b.appendChild(el2);
}
//]]>
</script>
<p>&nbsp;</p>
</body>
</html>


นี้คือหน้าที่ สอง
Code
<!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>Untitled Document</title>
<style type="text/css">
<!--
.style6 {font-size: 18px;
font-weight: bold;
}
.style2 {
color: #CC3300;
font-weight: bold;
}
.style5 {font-size: 16px}
body {
background-image: url(image/BGMix.jpg);
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
.style7 {
color: #000000;
font-weight: bold;
}
.style9 {
font-size: 24px;
font-weight: bold;
}
.style4 { font-size: 16px;
font-weight: bold;
color: #0000CC;
}
.style16 {color: #0033FF;
font-weight: bold;
}
.style17 {font-size: 16px;
font-weight: bold;
}
-->
</style>
</head>

<body>
<div align="center">
<table width="800" height="140" align="center">
<tr>
<td height="134"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <div align="center"><img src="image/online.jpg" width="320" height="130" /></div></td>
</tr>
</table>
<table width="76%" height="1">
<tr>
<td width="25%" height="41" bgcolor="#FFFFFF"><div align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="style9">:: Admin ::</span> </div></td>
<td width="60%" bgcolor="#FFFFFF"><div align="center" class="style7"><span class="style4">แก้ไขแบบสอบถาม</span></div></td>
<td width="15%" bgcolor="#FFFFFF"><div align="right"><span class="style2"><a href="logout.php">:: Logout ::</a></span></div></td>
</tr>
</table>
<table width="76%" height="438" border="0" cellpadding="2" cellspacing="2">
<tr>
<td width="25%" valign="top"><table width="100%" border="1" cellpadding="0" cellspacing="0">
<tr>
<td height="30" bgcolor="#CDDF91"><div align="center" class="style6">--เมนู--</div></td>
</tr>
<tr>
<td height="30" bgcolor="#CDDF91"><div align="center"><a href="mating.php" class="style5">โครงการ</a></div></td>
</tr>
<tr>
<td height="30" bgcolor="#F3F8E4"><div align="center" class="style5"><a href="program1.php"><span class="style17">&#3623;&#3636;&#3608;&#3637;&#3585;&#3634;&#3619;&#3626;&#3619;&#3657;&#3634;&#3591;&#3649;&#3610;&#3610;&#3626;&#3629;&#3610;&#3606;&#3634;&#3617;</span></a></div></td>
</tr>
<tr>
<td height="30" bgcolor="#CDDF91"><div align="center" class="style5"><a href="program2.php">ทำแบบสอบถาม</a></div></td>
</tr>
<tr>
<td height="30" bgcolor="#F3F8E4"><div align="center" class="style5"><a href="e_program.php">แก้ไขแบบสอบถาม</a></div></td>
</tr>
<tr>
<td height="30" bgcolor="#CDDF91"><div align="center" class="style5"><a href="calculate.php">คำนวนแบบสอบถาม</a></div></td>
</tr>
<tr>
<td height="30" bgcolor="#F3F8E4"><div align="center" class="style5"><a href="ed_sick.php"></a><a href="print.php">ปริ้นแบบสอบถาม</a></div></td>
</tr>
<tr>
<td height="30" bgcolor="#CDDF91"><div align="center" class="style5"><a href="logout.php">ออกจากระบบ</a></div></td>
</tr>
</table></td>
<td width="75%" valign="top">

<? include("connect.php");
$sql="SELECT * FROM pro_heading WHERE head_id='$head_id'";
$result = mysql_query($sql) or die(mysql_error());
$row=mysql_fetch_array($result);
?>
<form id="form1" name="form1" method="post" action="update.php">
<table width="422" height="188" border="0" align="center">
<tr>
<td><div align="left"><span class="style6"> รหัสคำถาม</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : </div></td>
<td width="262"><div align="left"><span class="style16">
<input name="head_id" type="text" id="head_id" value="<? echo $row['head_id']?>" />
</span></div></td>
</tr>
<tr>
<td width="150"><div align="left"><span class="style6">&#3594;&#3639;&#3656;&#3629;โครงการ</span>&nbsp;&nbsp;&nbsp;&nbsp; : </div></td>
<td><div align="left">
<input name="heading" type="text" id="heading" value= " <? echo $row['heading']?>">
</div></td>
</tr>
<tr>
<td height="74"><div align="left"></div></td>
<td><div align="left"> &nbsp;
<input type="submit" value="บันทึก" />
&nbsp;&nbsp;
<input name="Submit2" type="reset" id="Submit2" value="ยกเลิก" />
</div></td>
</tr>
</table>
</form> </td>
</tr>
</table>
</div>
<p>&nbsp;</p>
<script type="text/javascript">
//<![CDATA[
/*function addbox(){
var b=document.getElementById('inputboxes');
var el1=document.createElement("br");
var el2=document.createElement("input");
el2.name='f1[]';
el2.type='text';
el2.value='';
b.appendChild(el1);
b.appendChild(el2);
}*/
//]]>
</script>
<script type="text/javascript">
//<![CDATA[
function addbox(){
var b=document.getElementById('inputboxes');
var el1=document.createElement("br");
var el2=document.createElement("input");
el2.name='f1[]';
el2.type='text';
el2.value='';
b.appendChild(el1);
b.appendChild(el2);
}
//]]>
</script>
<p>&nbsp;</p>
</body>
</html>


นี้คือหน้าที่ 3
Code
<!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>Untitled Document</title>
<style type="text/css">
<!--
.style6 {font-size: 18px;
font-weight: bold;
}
.style2 {
color: #CC3300;
font-weight: bold;
}
.style5 {font-size: 16px}
body {
background-image: url(image/BGMix.jpg);
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
.style7 {
color: #0000CC;
font-weight: bold;
}
.style4 {font-size: 16px;
font-weight: bold;
}
.style9 {
font-size: 24px;
font-weight: bold;
}
.style11 {color: #FFFFFF; font-weight: bold; }
.style12 { font-size: 16px;
font-weight: bold;
color: #0000CC;
}
.style13 { color: #000000;
font-weight: bold;
}
.style16 {color: #0033FF;
font-weight: bold;
}
-->
</style>
</head>

<body>
<div align="center">
<table width="800" height="140" align="center">
<tr>
<td height="134"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <div align="center"><img src="image/online.jpg" width="320" height="130" /></div></td>
</tr>
</table>
<table width="76%" height="1">
<tr>
<td width="25%" height="41" bgcolor="#FFFFFF"><div align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="style9">:: Admin ::</span> </div></td>
<td width="60%" bgcolor="#FFFFFF"><div align="center" class="style13"><span class="style12">แก้ไขแบบสอบถาม</span></div></td>
<td width="15%" bgcolor="#FFFFFF"><div align="center"><span class="style2"><a href="logout.php">:: Logout ::</a></span></div></td>
</tr>
</table>
<table width="76%" height="438" border="0" cellpadding="2" cellspacing="2">
<tr>
<td width="25%" valign="top"><table width="100%" border="1" cellpadding="0" cellspacing="0">
<tr>
<td height="30" bgcolor="#CDDF91"><div align="center" class="style6">--เมนู--</div></td>
</tr>
<tr>
<td height="30" bgcolor="#CDDF91"><div align="center"><a href="mating.php" class="style5">โครงการ</a></div></td>
</tr>
<tr>
<td height="30" bgcolor="#F3F8E4"><div align="center" class="style5"><a href="program1.php"><span class="style4">&#3623;&#3636;&#3608;&#3637;&#3585;&#3634;&#3619;&#3626;&#3619;&#3657;&#3634;&#3591;&#3649;&#3610;&#3610;&#3626;&#3629;&#3610;&#3606;&#3634;&#3617;</span></a></div></td>
</tr>
<tr>
<td height="30" bgcolor="#CDDF91"><div align="center" class="style5"><a href="program2.php">ทำแบบสอบถาม</a></div></td>
</tr>
<tr>
<td height="30" bgcolor="#F3F8E4"><div align="center" class="style5"><a href="e_program.php">แก้ไขแบบสอบถาม</a></div></td>
</tr>
<tr>
<td height="30" bgcolor="#CDDF91"><div align="center" class="style5"><a href="calculate.php">คำนวนแบบสอบถาม</a></div></td>
</tr>
<tr>
<td height="30" bgcolor="#F3F8E4"><div align="center" class="style5"><a href="ed_sick.php"></a><a href="print.php">ปริ้นแบบสอบถาม</a></div></td>
</tr>
<tr>
<td height="30" bgcolor="#CDDF91"><div align="center" class="style5"><a href="logout.php">ออกจากระบบ</a></div></td>
</tr>
</table></td>
<td width="75%" valign="top">
<?
include("connect.php");
$sql="SELECT * FROM pro_heading";
$result = mysql_query($sql) or die(mysql_error());
$row=mysql_fetch_array($result);
?>

<form id="form1" name="form1" method="post" action="add.php">
<p>&nbsp;</p>
<table width="569" border="1" align="center">
<tr>
<td width="44" height="27" bgcolor="#999999"><div align="center">ข้อ</div></td>
<td width="425" bgcolor="#999999"><div align="center">คำถาม</div></td>
<td width="78" bgcolor="#999999"><div align="center">ลบ</div></td>
<td width="78" bgcolor="#999999"><div align="center">แก้ไข</div></td>
</tr><?
include("connect.php");
$sql="SELECT * FROM pro_heading where head_id =head_id ";
$result = mysql_query($sql) or die(mysql_error());
$row=mysql_fetch_array($result);
$id=$row['head_id'];
$sql=mysql_query("SELECT * FROM pro_question where head_id='$id'");
while ($row=mysql_fetch_array($sql)){
$i = $i+1;
?>
<tr>
<td><? echo ($i);?></td>
<td><div align="left"><? echo $row[question];?></div></td>
<td align="center" valign="bottom"><a href="dele_program3.php?question_id=<?php echo $row[question_id];?>" class="style10">ลบ</a></td>
<td align="center" valign="bottom"><a href="e_program4.php?question_id=<?php echo $row[question_id];?>" class="style10">แก้ไข</a></td>
</tr>
<?
}
?>
</table>
<div align="left"> &nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
<label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="button" name="button" value=" เสร็จสิ้น " onClick="window.location='program5.php'" />
</label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
</form>
<p align="left">
&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p> </td>
</tr>
</table>

</div>
</body>
</html>


นี้คือหน้าที่ มีปัญหา หลังจาก กด เสร็จสิ้น หน้าที่ 3 มา
Code
<!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>Untitled Document</title>
<style type="text/css">
<!--
.style2 { color: #CC3300;
font-weight: bold;
}
.style4 {font-size: 16px;
font-weight: bold;
}
.style5 {font-size: 16px}
.style7 { color: #0000CC;
font-weight: bold;
}
.style9 { font-size: 24px;
font-weight: bold;
}
-->
</style>
</head>

<body>
<div align="center">
<table width="800" height="140" align="center">
<tr>
<td height="134">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<div align="center"><img src="image/online.jpg" width="320" height="130" />
</div>
<div align="center"></div></td>
</tr>
</table>
<table width="76%" height="1">
<tr>
<td width="25%" height="41" bgcolor="#FFFFFF"><div align="center"></div></td>
<td width="60%" bgcolor="#FFFFFF"><div align="center" class="style7">
<div align="left"><span class="style4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ตอบแบบสอบถาม</span></div>
</div></td>
<td width="15%" bgcolor="#FFFFFF"><div align="right"><span class="style2"><a href="logout.php">:: Logout ::</a></span></div></td>
</tr>
</table>
<p>&nbsp;</p>
</div>
<p align="center"><strong>


<?
include("connect.php");
$sql="SELECT * FROM pro_heading ";
$result = mysql_query($sql) or die(mysql_error());
$row=mysql_fetch_array($result);
?>


&#3650;&#3588;&#3619;&#3591;&#3585;&#3634;&#3619;&nbsp; </strong>

<? echo $row[heading];?>

</p>

<table width="1024" height="109" border="1" align="center">
<tr>
<td width="25" rowspan="2"><div align="center"><strong><span class="style5">&#3586;&#3657;&#3629;</span></strong></div></td>
<td width="434" rowspan="2"><div align="center"><strong>&#3619;&#3634;&#3618;&#3585;&#3634;&#3619;</strong></div></td>
<td colspan="5"><div align="center"><strong>&#3619;&#3632;&#3604;&#3633;&#3610;&#3588;&#3623;&#3634;&#3617;&#3588;&#3636;&#3604;&#3648;&#3627;&#3655;&#3609;</strong></div></td>
</tr>
<tr>
<td width="70" height="27"><div align="center" class="style5">
<div align="center">&#3604;&#3637;&#3617;&#3634;&#3585;(5)</div>
</div></td>
<td width="70"><div align="center" class="style5">
<div align="center">&#3604;&#3637;(4)</div>
</div></td>
<td width="85"><div align="center" class="style5">
<div align="center">&#3611;&#3634;&#3609;&#3585;&#3621;&#3634;&#3591;(3)</div>
</div></td>
<td width="70"><div align="center" class="style5">
<div align="center">&#3609;&#3657;&#3629;&#3618;(2)</div>
</div></td>
<td width="100" class="style5"><div align="center">&#3588;&#3623;&#3619;&#3611;&#3619;&#3633;&#3610;&#3611;&#3619;&#3640;&#3591;(1)</div></td>
</tr>
<?
include("connect.php");
$sql="SELECT * FROM pro_heading where head_id =head_id ";
$result = mysql_query($sql) or die(mysql_error());
$row=mysql_fetch_array($result);
$id=$row['head_id'];
$sql=mysql_query("SELECT * FROM pro_question where head_id='$id'");
while ($row=mysql_fetch_array($sql)){
$i = $i+1;
?>
<tr>
<td height="38"><div align="center"><? echo ($i);?></div></td>
<td><div align="left"><? echo $row[question];?></div></td>
<td colspan="5"><label></label>
<form id="form1" name="form1" method="post" action="">
<div align="left"> &nbsp;
&nbsp;
&nbsp;&nbsp;
<input name="answer" type="radio" value="5" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input name="answer" type="radio" value="4" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
<input name="answer" type="radio" value="3" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input name="answer" type="radio" value="2" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;
&nbsp;&nbsp;&nbsp;
<input name="answer" type="radio" value="1" />
<label></label>
</div>
</form>
</td>
</tr>
<?
}
?>
</table>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
<label>&nbsp; </label>
<label></label>
<label>&nbsp; </label>
<label></label>
</p>

</body>
</html>

คือใส่ปุ่มตกลงไม่ได้ แต่พอใส่ไปแล้วมันก็มี ปุ่มตกลงเยอะ ตามหัวข้อ แต่พอใส่ ฟอร์ม ครอบทั้งหมดก็ดัน ติกเรดิโอ ได้แค่อันเดียวต่อ ทั้งหมด ช่วยดูที่นะครับ ผิดตรงไหนแก้ให้ที่ ครับ






Date : 2009-12-27 13:47:53 By : prykazip69
 


 

No. 2



โพสกระทู้ ( 80 )
บทความ ( 0 )



สถานะออฟไลน์


ผมอธิบายไม่เขาใจหรือ ว่าไม่มีใครช่วยผมเลย T-T
Date : 2009-12-27 21:22:36 By : prykazip69
 

 

No. 3



โพสกระทู้ ( 315 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Facebook

อาใยครับเนี้ย ผมว่ามันยาวไปมะ แล้วถ้าเกิด ว่าเค้าเข้ามาดูแล้ว เค้าจะงงกับตัวหลังสือ และตาลายไปต่ามๆกันนะครับ ผมว่า ขอแบบนี้ดีกว่า เอา สั้นๆ เอาทีละปัญหา เอาแค่ส่วนที่มีปัญหาหรือ ส่วนที่ โค้ดผิดพลาด จะช่วยได้เร็ว และ ช่วยได้ง่ายกว่านะครับ



Date : 2009-12-27 21:38:19 By : nerobenz
 


 

No. 4

Guest


ผมเดาเอาว่าลบ <label> </label> ออกก่อนครับ มันไม่จำเป็น ดรีมมันสร้างให้อัตโนมัติ แล้วทีนี้มันอาจจะทำให้โค้ดเอ๋อได้
Date : 2009-12-28 11:08:44 By : ความรู้เท่าหางอึ่ง
 


 

No. 5



โพสกระทู้ ( 3 )
บทความ ( 0 )



สถานะออฟไลน์


อย่างที่เพื่อนบอกนะครับ เอาส่วนที่เกิดปัญหาจริงๆ มาแสดงดีกว่าครับ
เยอะขนาดนี้ตาลายครับ ไล่ดูไม่ไหว
Date : 2009-12-28 11:15:49 By : ultrasad
 


 

No. 6



โพสกระทู้ ( 11,835 )
บทความ ( 10 )

สมาชิกที่ใส่เสื้อไทยครีเอท Hall of Fame 2012

สถานะออฟไลน์


แก้ปัญหาภาษาไทย php กับ MySQL (TIS-620 กับ UTF-8)
Date : 2009-12-28 13:16:18 By : plakrim
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : ช่วยที่ครับ เรื่องปุ่มกด คือ มีปัญหา ว่า ผมเพิ่มปุ่มกด ตกลง แล้วมันก็มี ทุกบรรทัด แล้วพอ เพิ่มเข้าไป ใน ฟอร์ม
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ FTP| ใส่แถวของตาราง ใส่คอลัมน์ตาราง| ตัวยก ตัวห้อย ตัวพิมพ์ดีด| ใส่โค้ด ใส่การอ้างถึงคำพูด| ใส่ลีสต์
smiley for :lol: smiley for :ken: smiley for :D smiley for :) smiley for ;) smiley for :eek: smiley for :geek: smiley for :roll: smiley for :erm: smiley for :cool: smiley for :blank: smiley for :idea: smiley for :ehh: smiley for :aargh: smiley for :evil:
Insert PHP Code
Insert ASP Code
Insert VB.NET Code Insert C#.NET Code Insert JavaScript Code Insert C#.NET Code
Insert Java Code
Insert Android Code
Insert Objective-C Code
Insert XML Code
Insert SQL Code
Insert Code
เพื่อความเรียบร้อยของข้อความ ควรจัดรูปแบบให้พอดีกับขนาดของหน้าจอ เพื่อง่ายต่อการอ่านและสบายตา และตรวจสอบภาษาไทยให้ถูกต้อง

อัพโหลดแทรกรูปภาพ

Notice

เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ
อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง

   
  เพื่อความปลอดภัยและการตรวจสอบ กระทู้ที่แทรกไฟล์อัพโหลดไฟล์จากที่อื่น อาจจะถูกลบทิ้ง
 
โดย
อีเมล์
บวกค่าให้ถูก
<= ตัวเลขฮินดูอารบิก เช่น 123 (หรือล็อกอินเข้าระบบสมาชิกเพื่อไม่ต้องกรอก)







Exchange: นำเข้าสินค้าจากจีน, Taobao, เฟอร์นิเจอร์, ของพรีเมี่ยม, ร่ม, ปากกา, power bank, แฟลชไดร์ฟ, กระบอกน้ำ

Load balance : Server 00
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่