|
 |
|
รบกวนผู้รู้ด้วยครับ เกี่ยวกับ form mail PHP ผมต้องการที่จะรวม ค่าต่างๆเช่น ชื่อ นามสกุล อายุ ให้ออก |
|
 |
|
|
 |
 |
|
ผมต้องการที่จะรวม ค่าต่างๆเช่น ชื่อ นามสกุล อายุ ให้ออก ที่ Massage ที่เดียว ไม่ทราบต้องเขียน Source อย่างไร
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<style type="text/css">
<!--
.border {
border: thin solid #0000CC;
}
-->
</style>
</head>
<body>
<table width="661" border="0" align="center" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="661" height="30" background="images/gradient_tcat.gif"><div align="center"><strong><font color="#FFFFFF">แบบฟอร์ม
สมัครงาน </font></strong></div></td>
</tr>
</table>
<table width="661" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="1" class="border">
<tr>
<td valign="top"><form name="form1" method="post" action="application.php">
<table width="100%" border="0" cellspacing="8" cellpadding="0">
<tr>
<td height="27"><font size="2" face="MS Sans Serif, Tahoma, sans-serif">ชื่อ
: </font></td>
<td><input type="text" name="from"></td>
</tr>
<tr>
<td width="16%" height="27"><font size="2" face="MS Sans Serif, Tahoma, sans-serif">สกุล
:</font></td>
<td width="84%"><input type="text" name="surname"></td>
</tr>
<tr>
<td><font size="2" face="MS Sans Serif, Tahoma, sans-serif">รายละเอียด
: </font></td>
<td><textarea name="Massage" cols="50" rows="10" ></textarea>
</td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="ส่งจดหมาย"></td>
</tr>
<tr>
<td height="20"> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
</form></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
red
PHP
html>
<head>
<title>:::Sendmail Complete:::::</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
</head>
<body>
<?
$To='[email protected]';
$subject="สมัครงาน";
$header="from: $from";
$send_mail=mail($To,$subject,$Massage,$header);
if(!$send_mail)
{
echo"ยังไม่สามารถส่งเมลล์ได้ในขณะนี้";
}
else
{
echo "<center>Sendmail Complete";
}
?>
<hr size=1 width="600">
<div align="center"><a href="application3.html"><font color="#0000FF" size="2" face="Arial, Helvetica, sans-serif">Goto
Form</font></a> <a href="index.php"><font color="#0000FF" size="2" face="Arial, Helvetica, sans-serif">Home
</font></a> </div>
</body>
</html>
html>
Tag : - - - -

|
|
 |
 |
 |
 |
Date :
17 พ.ค. 2548 16:49:51 |
By :
thana4748 |
View :
3080 |
Reply :
1 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
$To='[email protected]';
$subject="สมัครงาน";
$header="from: $from";
$Massage="";
$Massage.="xxxxxxxxxxx";
$Massage.="xxxxx";
$Massage.="xxxxxxxxxxxx";
$Massage.="xxxxxxxxx";
$Massage.="xxxxxxxxxxxxxxxx";
$send_mail=mail($To,$subject,$Massage,$header);
|
 |
 |
 |
 |
Date :
18 พ.ค. 2548 09:00:41 |
By :
@W_IN |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 05
|