|
|
|
พัฒนาเว็บต่อจากคนเก่า ไม่ทราบเลยครับว่าเขาเขียนโค๊ดอย่างไร เห็นแล้ว งง ครับ ต้องการส่งเมล์ให้สมาชิกหลังการสมัครแต่ งง กับโค๊ดครับ |
|
|
|
|
|
|
|
คือเรื่องของเรื่องผมพัฒนเว็บต่อจากคนเก่า แต่ทว่าโค๊ดที่เขาใช้เขียนผม งง มากครับ ไม่รู้จะพัฒนาต่อย่างไร ความต้องการของผมตอนนี้ขั่นแรกคือมีอีเมล์แจ้งผู้สมัคร โดยผมได้รับคำแนะนำจาก พี่วินแล้วครับ แต่ทะว่า ผมเข้ามาดูโค๊ดของพี่เค้าที่เขียนไว้ งง ครับ ผมยังไม่รู้ด้วยซ้ำไปว่าเขาส่งค่าจากฟอร์มรับสมัครไปตรวจสอบในไฟล์ไหนครับ ปกติ หากเรามีการสร้างฟร์อม สมมติว่าชื่อ From1 เราก็มักจะสร้างหน้าตรวจสอบที่มีความหมายสื่อถึงกันได้เช่น Save_From1 แต่ของพี่เขาผมหาไม่เจอจริง ๆ ครับ รบกวนด้วยครับ
โค๊ดของพี่เขาครับ ผมเอามาจากหน้า แบบฟร์อมตรวจสอบข้อมูลก่อนกดปุ่มบันทึกข้อมูลครับ
Code (PHP)
<?php
extract($_REQUEST);
/*
if(isset($_REQUEST["projectid"])) $projectid=$_REQUEST["projectid"];
if(isset($_REQUEST["applicantidno"])) $applicantidno=$_REQUEST["applicantidno"];
if(isset($_REQUEST["username"])) $username=$_REQUEST["username"];
if(isset($_REQUEST["subproject"])) $subproject=$_REQUEST["subproject"];
if(isset($_REQUEST["personalid"])) $personalid=$_REQUEST["personalid"];
if(isset($_REQUEST["title"])) $title=$_REQUEST["title"];
if(isset($_REQUEST["firstname"])) $firstname=$_REQUEST["firstname"];
if(isset($_REQUEST["lastname"])) $lastname=$_REQUEST["lastname"];
if(isset($_REQUEST["birthdate"])) $birthdate=$_REQUEST["birthdate"];
if(isset($_REQUEST["birthmonth"])) $birthmonth=$_REQUEST["birthmonth"];
if(isset($_REQUEST["birthyear"])) $birthyear=$_REQUEST["birthyear"];
if(isset($_REQUEST["nationality"])) $nationality=$_REQUEST["nationality"];
if(isset($_REQUEST["race"])) $race=$_REQUEST["race"];
if(isset($_REQUEST["religion"])) $religion=$_REQUEST["religion"];
if(isset($_REQUEST["mobile_phone"])) $mobile_phone=$_REQUEST["mobile_phone"];
if(isset($_REQUEST["email"])) $email=$_REQUEST["email"];
if(isset($_REQUEST["resident_address"])) $resident_address=$_REQUEST["resident_address"];
if(isset($_REQUEST["same_address"])) $same_address=$_REQUEST["same_address"];
if(isset($_REQUEST["contact_address"])) $contact_address=$_REQUEST["contact_address"];
if(isset($_REQUEST["institution_name"])) $institution_name=$_REQUEST["institution_name"];
if(isset($_REQUEST["faculty"])) $faculty=$_REQUEST["faculty"];
@$branch = $_REQUEST["branch"];
@$gpa = $_REQUEST["gpa"];
@$graduatedyear = $_REQUEST["graduatedyear"];
@$tu_get = $_REQUEST["tu_get"];
@$tu_time = $_REQUEST["tu_time"];
@$exsamed_year = $_REQUEST["exsamed_year"];
@$unemployed = $_REQUEST["unemployed"];
@$occupation = $_REQUEST["occupation"];
@$organization_name = $_REQUEST["organization_name"];
@$position = $_REQUEST["position"];
@$organization_address = $_REQUEST["organization_address"];
@$organization_telephone = $_REQUEST["organization_telephone"];
*/
if(empty($birthdate)) $birthdate = date("d");
if(empty($birthmonth)) $birthmonth = date("m");
if(empty($birthyear)) $birthyear = date("Y");
if(!is_numeric($projectid)) echo "<meta http-equiv=\"refresh\" content=\"0;URL=candidate_login.php\">";
$Submit = $_POST["Submit"];
$Msg = "<p><strong>Please provide the information in the given space. An asterisk (<span class=\"h2\">*</span>) indicates that the information must be filled in.</strong></p>
<p> กรุณากรอกข้อมูลให้ถูกต้องและครบถ้วน (เครื่องหมาย <span class=\"h2\">*</span> หมายถึงว่าท่านต้องให้ข้อมูล หากไม่มี <span class=\"h2\">*</span> แสดงว่าท่านสามารถเว้นว่างได้)</p>
<p>*** สำหรับผู้ที่สมัครหลักสูตรภาษาอังกฤษให้กรอกข้อมูลเป็นภาษาอังกฤษเท่านั้น<br />
<span class=\"h2\">Apply for English language courses to fill in English only. </span></p>";
if(isset($Submit)){
require_once("inc/candidate.inc.php");
$CandidateUserFunction = new CandidateUser;
$CandidatePersonalInfoFunction = new CandidatePersonalInfo;
$CandidateEducationFunction = new CandidateEducation;
$CadidateWorkInfoFunction = new CadidateWorkInfo;
$Candidate2SubProjectFunction = new Candidate2SubProject;;
if($UserID = $CandidateUserFunction->SetUser($applicantidno,$personalid,$projectid,$applicantidno)){
$CandidateUserFunction->ActivateUser($UserID,'yes');
$BirthDate = "$birthyear/$birthmonth/$birthdate";
if($CandidateID= $CandidatePersonalInfoFunction->SetPersonalInfo($title,$firstname,$lastname,$personalid,$BirthDate,$nationality,$race,$religion,$email,$mobile_phone,$resident_address,$contact_address)){
$CandidateUserFunction->SetCandidateID($UserID,$CandidateID);
if(count($subproject)) foreach($subproject as $ElementID=>$SubProjectID) $Candidate2SubProjectFunction->SetSubProject($UserID,$SubProjectID,$projectid);
$CandidateEducationFunction->SetEducationHistory($CandidateID,$institution_name,$faculty,$branch,$gpa,$graduatedyear,$tu_time,$tu_time,$exsamed_year);
$Employment = ($unemployed=="yes")? "yes" : "no";
$CadidateWorkInfoFunction->SetWorkInfo($CandidateID,$Employment,$occupation,$organization_name,$position,$organization_address,$organization_telephone);
$Msg = "กรุณาพิมพ์ใบแจ้งการชำระเงินเพื่อนำไปชำระเงินกับทางธนาคาร<br><br><br><a href=\"slip.php?applicantidno=$applicantidno\"><img src=\"pic_nat/printer.jpg\" border=\"0\"></a><br><br>คลิกเพื่อสั่ง<a href=\"slip.php?applicantidno=$applicantidno\">พิมพ์</a>";
}//End if
}//End if
}//end if
require_once("inc/project.inc.php");
$ProjectFunction = new Project;
$SubProjectFunction = new SubProject;
$Result = $ProjectFunction->GetProject($projectid);
$ProjectName = $Result[0]["projectname"];
$SubProjectResult = $SubProjectFunction->GetSubProject($projectid);
if(count($SubProjectResult)){
$SubProjectList = array();
foreach($SubProjectResult as $ElementID=>$ElementValue) $SubProjectList [$ElementValue["subprojectid"]] = $ElementValue["subprojectname"];
}//End if
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
<title>ระบบรับสมัครเข้าศึกษาคณะนิติศาสตร์ มหาวิทยลัยธรรมศาสตร์</title>
<style type="text/css">
<!--
body {
background-color: #fff3d2;
}
-->
</style>
<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function goBack(f){
f.action = "register.php?projectid=<?php echo $projectid;?>";
f.submit();
}//End if
function goPrint(){
}//End
//-->
</script>
<link href="css/css.css" rel="stylesheet" type="text/css" />
<link href="css/css_fontlink01.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style7 {font-family: "MS Sans Serif"; font-weight: bold; font-size: 14px; }
-->
</style>
</head>
<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" onLoad="MM_preloadImages('pic_index/bot2_r1_c1.png','pic_index/bot2_r1_c2.png','pic_index/bot2_r1_c3.png','pic_index/bot2_r1_c4.png','pic_index/bot2_r1_c5.png','pic_index/bot2_r1_c6.png','pic_index/bot2_r1_c7.png','pic_index/bot2_r1_c8.png')">
<table width="101%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top" background="pic_index/bg.png" style="background-position:top; background-repeat:repeat-x;"><table width="900" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="935" valign="top"><object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="900" height="281">
<param name="movie" value="fla/head.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="9.0.45.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="fla/head.swf" width="900" height="281">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="9.0.45.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object></td>
</tr>
<tr>
<td valign="top"><table width="900" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="118" valign="top"><a href="index.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image2','','pic_index/bot2_r1_c1.png',1)"><img src="pic_index/bot1_r1_c1.png" name="Image2" width="118" height="48" border="0" id="Image2" /></a></td>
<td width="108" valign="top"><a href="news.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image3','','pic_index/bot2_r1_c2.png',1)"><img src="pic_index/bot1_r1_c2.png" name="Image3" width="108" height="48" border="0" id="Image3" /></a></td>
<td width="135" valign="top"><a href="about.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image4','','pic_index/bot2_r1_c3.png',1)"><img src="pic_index/bot1_r1_c3.png" name="Image4" width="135" height="48" border="0" id="Image4" /></a></td>
<td width="122" valign="top"><a href="register_project.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','pic_index/bot2_r1_c4.png',1)"><img src="pic_index/bot1_r1_c4.png" name="Image5" width="122" height="48" border="0" id="Image5" /></a></td>
<td width="102" valign="top"><a href="member_register.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image6','','pic_index/bot2_r1_c5.png',1)"><img src="pic_index/bot1_r1_c5.png" name="Image6" width="102" height="48" border="0" id="Image6" /></a></td>
<td width="116" valign="top"><a href="forum.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image7','','pic_index/bot2_r1_c6.png',1)"><img src="pic_index/bot1_r1_c6.png" name="Image7" width="116" height="48" border="0" id="Image7" /></a></td>
<td width="82" valign="top"><a href="link.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','pic_index/bot2_r1_c7.png',1)"><img src="pic_index/bot1_r1_c7.png" name="Image8" width="82" height="48" border="0" id="Image8" /></a></td>
<td width="117" valign="top"><a href="contactus.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image9','','pic_index/bot2_r1_c8.png',1)"><img src="pic_index/bot1_r1_c8.png" name="Image9" width="117" height="48" border="0" id="Image9" /></a></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top"><table width="900" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="28" align="left" style="padding-left:10px;"><img src="pic_index/ico_1.png" width="18" height="30" /></td>
<td width="45" align="left" class="h8">ข่าวเด่น</td>
<td width="10" align="left" class="h10">l</td>
<td width="817" align="left" class="link_bord">
<?php
require_once("inc/news.inc.php");
$NewsFunction = new HotNews;
$HotNewsResult = $NewsFunction->Get();
if(count($HotNewsResult)){
echo "<marquee behavior='scroll' direction='left' width='100%' scrollamount='2' scrolldelay='1' onmouseover='this.stop()' onmouseout='this.start()'><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>";
foreach($HotNewsResult as $ElementID=>$ElementValue){
echo "<td class=\"h8\"> •</td><td class=\"h8\" nowrap><a href=\"hotnews.php?topicid=".$ElementValue["topicid"]."\" class=\"h8\">".$ElementValue["topic"]."</a></td>";
}//End for
echo "</tr></table></marquee>\n";
}//end if
?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top" style="padding-top:7px;"><table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="35" align="center" bgcolor="#993300" class="h13">Sign up for Online Registration</td>
</tr>
<tr>
<td valign="top" style="padding-top:10px;"><table width="800" border="0" align="center" cellpadding="3" cellspacing="3" class="table_N4">
<tr>
<td><table width="786" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<form name="form1" action="<?php echo $_SERVER['PHP_SELF']."?projectid=$projectid";?>" method="post">
<table width="786" border="0" cellspacing="1" cellpadding="2">
<tr>
<td height="57" colspan="4" align="center" valign="top" class="h8"><?php echo $Msg;?></td>
</tr>
<?php
if(!isset($Submit)){
?>
<tr>
<td height="35" colspan="4" align="center" valign="middle" bgcolor="#993300" class="h13"><?php echo $ProjectName;?></td>
</tr>
<tr>
<td align="right" valign="top" class="h12">รหัสผู้สมัคร :<br />
Applicant No. : </td>
<td width="576" colspan="3" align="left" valign="top" class="h8"><?php echo $applicantidno;?></td>
</tr>
<tr>
<td align="right" class="h12">Username :</td>
<td colspan="3" align="left" valign="top" class="h8"><?php echo $applicantidno;?></td>
</tr>
<tr>
<td align="right" class="h12"> Password : </td>
<td colspan="3" align="left" class="h8"><?php echo $personalid;?></td>
</tr>
<tr>
<td colspan="4" align="center" bgcolor="#FFCC66" class="h11">สมัครเข้าโครงการ / Application program.</td>
</tr>
<?php
if(count($subproject)){
$i=0;
foreach($subproject as $ElementID=>$SubProjectID){
$i++;
if(is_numeric($SubProjectID)){
?>
<tr>
<td align="right" class="h12">Field <?php echo ($i);?><br />
สาขาวิชาที่ <?php echo ($i);?></td>
<td width="576" colspan="3" align="left" valign="top">
<?php
echo $SubProjectList[$SubProjectID];
?>
</td>
</tr>
<?php
}//End if
}//End for
}//End if
?>
<tr>
<td colspan="4" align="center" valign="top" bgcolor="#FFCC66" class="h11">ข้อมูลส่วนตัว / Personal Data.</td>
</tr>
<tr>
<td align="right" class="h12">ID Card No.<br />
บัตรประจำตัวประชาชน :</td>
<td colspan="3" align="left" class="h8"><?php echo $personalid;?></td>
</tr>
<tr>
<td align="right" class="h12">Fullname <br />
ชื่อ-นามสกุล :</td>
<td colspan="3" align="left" class="h8"><?php echo "$title $firstname $lastname";?></td>
</tr>
<tr>
<td align="right" class="h12">Date of Birth.<br />
วัน-เดือน-ปีเกิด</td>
<td colspan="3" align="left" class="h8"><?php echo "$birthdate/$birthmonth/$birthyear";?></td>
</tr>
<tr>
<td align="right" class="h12">Nationality.<br />
สัญชาติ </td>
<td colspan="3" align="left" class="h8"><table width="582" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="134"><?php echo $nationality;?></td>
<td width="44"><span class="h12">Race. <br />
เชื้อชาติ</span></td>
<td width="136"><?php echo $race;?></td>
<td width="54"><span class="h12">Religion.<br />
ศาสนา:</span></td>
<td width="194"><?php echo $religion;?></td>
</tr>
</table></td>
</tr>
<tr>
<td align="right" class="h12">Mobile.<br />
โทรศัพท์มือถือ</td>
<td colspan="3" align="left" class="h8"><?php echo $mobile_phone;?></td>
</tr>
<tr>
<td align="right" class="h12">E-mail.</td>
<td colspan="3" align="left" class="h8"><?php echo $email;?></td>
</tr>
<tr>
<td align="right" class="h12">Address ID.<br />
ที่อยู่ตามบัตรประชาชน</td>
<td colspan="3" align="left" class="h8"><?php echo nl2br($resident_address);?></td>
</tr>
<tr>
<td align="right" class="h12">Contact address facilement.<br />
ที่อยู่ที่ติดต่อได้สะดวก</td>
<td colspan="3" align="left" class="h8"><?php echo nl2br($contact_address);?></td>
</tr>
<tr>
<td colspan="4" align="center" valign="top" bgcolor="#FFCC66" class="h11">ข้อมูลการศึกษา / Education Data.</td>
</tr>
<tr>
<td align="right" class="h12">Succeeded by education.<br />
สําเร็จการศึกษาจาก </td>
<td width="576" colspan="3" align="left" class="h8"><?php echo $institution_name;?> <span class="h12">Faculty./คณะ </span><?php echo $faculty;?></td>
</tr>
<tr>
<td align="right" class="h12">Field.<br />
สาขาวิชา</td>
<td colspan="3" align="left" class="h8"><?php echo $branch;?><span class="h12">GPA./เกรดเฉลี่ย <?php echo $gpa;?></span></td>
</tr>
<tr>
<td align="right" class="h12">Year graduate.<br />
ปีที่จบการศึกษา </td>
<td colspan="3" align="left" class="h8"><?php echo $graduatedyear;?></td>
</tr>
<tr>
<td align="right" class="h12">Scores TU-GET.<br />
ผลคะแนน TU-GET</td>
<td colspan="3" align="left" class="h8"><?php echo $tu_get;?> <span class="h12">Time/ครั้ง</span>
<?php echo $tu_time;?> <span class="h12">Year exams./ปีที่สอบ </span><?php echo $exsamed_year;?></td>
</tr>
<tr>
<td colspan="4" align="center" bgcolor="#FFCC66" class="h11">ข้อมูลการทำงาน / Work Information.</td>
</tr>
<tr>
<td align="right" class="h12">Have not worked.<br />
ยังไม่ได้ทำงาน</td>
<td colspan="3" align="left" class="h8"><input name="unemployed" type="checkbox" id="unemployed" value="yes" <?php if($unemployed=="yes")echo "checked";?> disabled="disabled" /></td>
</tr>
<?php if($unemployed!="yes"){?>
<tr>
<td align="right" class="h12">Occupation<br />
อาชีพ</td>
<td colspan="3" align="left" class="h8"><?php echo $occupation;?>
<label></label> </td>
</tr>
<tr>
<td align="right" class="h12">Name of agency organization<br />
ชื่อหน่วยงาน องค์กร บริษัท</td>
<td colspan="3" align="left" class="h8"><?php echo $organization_name;?></td>
</tr>
<tr>
<td align="right" class="h12">Position<br />
ตำแหน่ง</td>
<td colspan="3" align="left" class="h8"><?php echo $position;?></td>
</tr>
<tr>
<td align="right" class="h12">Location <br />
ที่ตั้ง</td>
<td colspan="3" align="left" class="h8"><?php echo nl2br($organization_address);?></td>
</tr>
<tr>
<td align="right" class="h12">Work phone nuber<br />
หมายเลขโทรศัพท์ที่ทำงาน</td>
<td colspan="3" align="left" class="h8"><?php echo $organization_telephone;?></td>
</tr>
<?php
}//End if
?>
<tr>
<td align="right" class="h12"> </td>
<td colspan="3" align="left" class="h3">Please check the accuracy of the information you have provided before submission. <br />
กรุณาตรวจสอบความถูกต้องของข้อมูลก่อนท่านคลิกปุ่มส่งข้อมูล (SUBMIT) </strong></td>
</tr>
<tr>
<td width="189" align="right" class="h12"> </td>
<td colspan="3" align="left"><input name="Submit" type="submit" class="formbutton" id="button" value="SUBMIT" />
<input type="button" class="formbutton" value="BACK" onClick="goBack(this.form)" />
<input name="applicantidno" type="hidden" id="applicantidno" value="<?php echo $applicantidno;?>" />
<input name="username" type="hidden" id="username" value="<?php echo $applicantidno;?>" />
<input name="username" type="hidden" id="username" value="<?php echo $personalid;?>" />
<?php
if(count($subproject)) foreach($subproject as $ElementID=>$SubProjectID) echo "<input name=\"subproject[$ElementID]\" type=\"hidden\" id=\"subproject[$ElementID]\" value=\"$SubProjectID\" />\n";
?>
<input name="personalid" type="hidden" id="personalid" value="<?php echo $personalid;?>" />
<input name="title" type="hidden" id="title" value="<?php echo $title;?>" />
<input name="firstname" type="hidden" id="firstname" value="<?php echo $firstname;?>" />
<input name="lastname" type="hidden" id="lastname" value="<?php echo $lastname;?>" />
<input name="birthdate" type="hidden" id="birthdate" value="<?php echo $birthdate;?>" />
<input name="birthmonth" type="hidden" id="birthmonth" value="<?php echo $birthmonth;?>" />
<input name="birthyear" type="hidden" id="birthyear" value="<?php echo $birthyear;?>" />
<input name="nationality" type="hidden" id="nationality" value="<?php echo $nationality;?>" />
<input name="race" type="hidden" id="race" value="<?php echo $race;?>" />
<input name="religion" type="hidden" id="religion" value="<?php echo $religion;?>" />
<input name="mobile_phone" type="hidden" id="mobile_phone" value="<?php echo $mobile_phone;?>" />
<input name="email" type="hidden" id="email" value="<?php echo $email;?>" />
<input name="resident_address" type="hidden" id="resident_address" value="<?php echo $resident_address;?>" />
<input name="same_address" type="hidden" id="same_address" value="<?php echo $same_address;?>" />
<input name="contact_address" type="hidden" id="contact_address" value="<?php echo $contact_address;?>" />
<!--Education Info -->
<input name="institution_name" type="hidden" id="institution_name" value="<?php echo $institution_name;?>" />
<input name="faculty" type="hidden" id="faculty" value="<?php echo $faculty;?>" />
<input name="branch" type="hidden" id="branch" value="<?php echo $branch;?>" />
<input name="gpa" type="hidden" id="gpa" value="<?php echo $gpa;?>" />
<input name="graduatedyear" type="hidden" id="graduatedyear" value="<?php echo $graduatedyear;?>" />
<input name="tu_get" type="hidden" id="tu_get" value="<?php echo $tu_get;?>" />
<input name="tu_time" type="hidden" id="tu_time" value="<?php echo $tu_time;?>" />
<input name="exsamed_year" type="hidden" id="exsamed_year" value="<?php echo $exsamed_year;?>" />
<!--Work infomation -->
<input name="unemployed" type="hidden" id="unemployed" value="<?php echo $unemployed;?>" />
<input name="occupation" type="hidden" id="occupation" value="<?php echo $occupation;?>" />
<input name="organization_name" type="hidden" id="organization_name" value="<?php echo $organization_name;?>" />
<input name="position" type="hidden" id="position" value="<?php echo $position;?>" />
<input name="organization_address" type="hidden" id="organization_address" value="<?php echo $organization_address;?>" />
<input name="organization_telephone" type="hidden" id="organization_telephone" value="<?php echo $organization_telephone;?>" /> </td>
</tr>
<?php
}//End if
?>
</table>
</form>
</td>
</tr>
<tr>
<td align="center" valign="top" class="h12"> </td>
</tr>
<tr>
<td align="center" valign="top" class="h12"> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td width="900" valign="top"> </td>
</tr>
</table></td>
</table></td>
</tr>
<tr>
<td height="50" align="center" bgcolor="#cdc19c" class="h12">คณะนิติศาสตร์ มหาวิทยาลัยธรรมศาสตร์ เลขที่ 2 ถนนพระจันทร์ เขตพระนคร กรุงเทพฯ 10200 <br>
โทรศัพท์ : 02-6132104, 02-6132108 ,02-6132127, 02-6132132, 02-6132139 โทรสาร : 02-2220159, 02-2220160, 02-2249421 <br />
<span class="h1">Website Support IE.Version 5.0 All Higher, Best resolution 1024 x 768 pixel.</span></td>
</tr>
<tr>
<td align="center" valign="top" class="h3">ออกแบบและพัฒนาระบบโดย นายวาคิน โชติรัตนมณี </td>
</tr>
<tr>
<td align="center" valign="top" background="pic_index/bg.png" style="background-position:top; background-repeat:repeat-x;"><table width="900" border="0" cellspacing="0" cellpadding="0">
<tr> </tr>
</table></td>
</tr>
</table>
</body>
</html>
Tag : PHP, MySQL
|
|
|
|
|
|
Date :
2011-09-08 22:32:16 |
By :
narak0001 |
View :
957 |
Reply :
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<form name="form1" action="<?php echo $_SERVER['PHP_SELF']."?projectid=$projectid";?>" method="post">
เขา submit มาหน้าเดิมครับ ไม่ได้แยก ไล่ดูดีๆ
|
|
|
|
|
Date :
2011-09-08 23:54:48 |
By :
ikikkok |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
แบบนี้หากผมจะนำโค๊ดแจ้งการสมัครไปทางอีเมล์ของสมาชิก ผมต้องเอาโค๊ดแปะไว้ตรงส่วนไหนครับ
|
|
|
|
|
Date :
2011-09-09 09:05:31 |
By :
narak0001 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 00
|