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,030

HOME > PHP > PHP Forum > ช่วยดูโค้ดให้ด้วยค่ะ รันแล้วเอาพุทไม่ออก พอกดปุ่ม submit แล้วข้อมูลไม่แสดงอะไรออกมาเลย เป็นเพราะเขียนโค้ดหรือป่าวค่ะ



 

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

 



Topic : 021200

Guest




view.php

-----------------------------------------
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html;charset=window-874">
</head>
<body bgcolor="#00FFFF">
<table width=780 border="0" cellspacing=1 cellpadding=10 bgcolor=#FFFFF>
<form name="form1" method="post" action="actionview.php">
<tr>
<td height="40" valign="top" bgcolor="#FF00FF" class="thaitext"><b>
<font color="#FFFFFF" size="4">ขั้นตอนที่ 2:ตรวจทานข้อมูลของท่าน</font></b></td></tr>
<tr>
<td valign="top" bgcolor="#FFFFFF" class="thaitext" width="96%">ตำแหน่งที่สมัครสอบ
<input type="text name="name1" size="10"></td>
<tr><input type="submit" name="send" value="ส่งข้อมูล"></tr>
</body>
</html>
--------------------------


actionview.php
----------
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html;charset=window-874">
<link href="styles02.css" rel="stylesheet" type="text/css">
<style type+"text/css">
input {height:18px;
font-family: "MS Sans Serif","Microsoft Sans Serif";
border-left-style:none;
border-top-style:none;
border-right-style:none;
border-bottom-style:dashed;
border-bottom-color:black;
margin:1px;
font-weight:normal;
}
</style>
</head>
<body bgcolor="#00FFFF">
<table width=780 border="0" cellspacing=1 cellpadding=10 bgcolor=#FFFFF>
<form name="form1" method="post" action="actionview.php">
<tr>
<td height="40" valign="top" bgcolor="#FF00FF" class="thaitext"><b>
<font color="#FFF000" size="4">ขั้นตอนที่ 2:ตรวจทานข้อมูลของท่าน</font></b></td></tr>
<tr>
<td valign="top" bgcolor="#FFFFFF" class="thaitext" width="96%">ตำแหน่งที่สมัครสอบ
<input type="text" name="name1" size="10" value="<?php echo $name1;?>"></td>
</body>
</html>
-------------------------------------------------------------------------------------------------------------
พอกดปุ่ม submit แล้วข้อมูลไม่แสดงอะไรออกมาเลย เป็นเพราะเขียนโค้ดหรือป่าวค่ะ ช่วยดูให้ด้วยนะคะ เพิ่งหัดเขียนค่ะ


Tag : - - - -







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 27 ก.ค. 2551 15:07:06 By : ตุ๊กตา View : 1335 Reply : 7
 

 

No. 1

Guest


เอาไปลองดูใหม่นะครับ ได้หรือป่าว ถ้าไม่ได้ก็โพสต์ใหม่นะครับ
view.php
-----------------
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
</head>
<body bgcolor="#00FFFF">
<table width=780 border="0" cellspacing=1 cellpadding=10 bgcolor=#FFFFF>
<form name="form1" method="post" action="actionview.php">
<tr>
<td height="40" valign="top" bgcolor="#FF00FF" class="thaitext"><b>
<font color="#FFFFFF" size="4">ขั้นตอนที่ 2:ตรวจทานข้อมูลของท่าน</font></b></td></tr>
<tr>
<td valign="top" bgcolor="#FFFFFF" class="thaitext" width="96%">ตำแหน่งที่สมัครสอบ
<input name="name" type="text" id="name"" size="10"></td>
<tr><input type="submit" value="ส่งข้อมูล">
</tr>
</body>
</html>

-------
actionview.php
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link href="styles02.css" rel="stylesheet" type="text/css">
<style type+"text/css">
input {height:18px;
font-family: "MS Sans Serif","Microsoft Sans Serif";
border-left-style:none;
border-top-style:none;
border-right-style:none;
border-bottom-style:dashed;
border-bottom-color:black;
margin:1px;
font-weight:normal;
}
</style>
</head>
<body bgcolor="#00FFFF">
<table width=780 border="0" cellspacing=1 cellpadding=10 bgcolor=#FFFFF>
<form name="form1" method="post" action="actionview.php">
<tr>
<td height="40" valign="top" bgcolor="#FF00FF" class="thaitext"><b>
<font color="#FFF000" size="4">ขั้นตอนที่ 2:ตรวจทานข้อมูลของท่าน</font></b></td></tr>
<tr>
<td valign="top" bgcolor="#FFFFFF" class="thaitext" width="96%">ตำแหน่งที่สมัครสอบ
<input name="name" type="text" id="name" value="<? echo"$name"; ?>" size="10"></td>
</body>
</html>
------------------------------------
คนควรใส่ เครือง <? ?> บนหัวให้มันด้วยก็ดีนะครับ เพราะมันเป็นphp นะครับ






Date : 27 ก.ค. 2551 16:32:10 By : sorin
 


 

No. 2

Guest


นิดเดียวเอง echo "...."; มันต้องมี
Date : 27 ก.ค. 2551 17:34:38 By : EucifeR
 

 

No. 3



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



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

gsvq
Date : 28 ก.ค. 2551 00:37:18 By : arsachi
 


 

No. 4

Guest


เอ่อ ถ้าลองตามคำแนะนำข้างบนแล้วยังไม่ได้ลองเพิ่ม
$name1=$_POST['name1'];
ในไฟล์ actionview.php ดูนะครับ
Date : 28 ก.ค. 2551 17:22:51 By : ผ่านมา
 


 

No. 5

Guest


แอบสงสัยว่า
คำสั่งแสดงผลใน actionview.php มันอยู่ตรงไหนเนี่ย

มันน่าจะมี echo อย่างที่มี comment บอกนะครับ
Date : 28 ก.ค. 2551 23:59:03 By : ผ่านมาอีกคน
 


 

No. 6

Guest


อะอ้าว ขอโทษที ดูโค้ดไม่ถี่ถ้วย

น่าจะเติมโค้ดอย่างที่คุณ ผ่านมา บอก
เพราะบางโฮสต์ เค้าตั้ง global=off ไว้
Date : 29 ก.ค. 2551 00:00:48 By : ผ่านมาเมื่อกี้
 


 

No. 7

Guest


ขอบคุณค่ะสำหรับคำแนะนำ
Date : 4 ส.ค. 2551 22:22:50 By : ตุ๊กตา
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : ช่วยดูโค้ดให้ด้วยค่ะ รันแล้วเอาพุทไม่ออก พอกดปุ่ม submit แล้วข้อมูลไม่แสดงอะไรออกมาเลย เป็นเพราะเขียนโค้ดหรือป่าวค่ะ
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ 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 02
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 อัตราราคา คลิกที่นี่