|
 |
|
ช่วยดูให้หน่อยจ้า จัดหน้าไม่เป็น พอ นู๋ จัดหน้าแล้ว มันก็ บันทึกลง ฐานข้อมูลไม่ได้ เลยอยากจะขอคำแนะนำ |
|
 |
|
|
 |
 |
|
คุณพระช่วย
|
 |
 |
 |
 |
Date :
2010-01-25 12:50:42 |
By :
gofgof |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
มันยังไม่มีคำสั่งบันทึกลงฐานข้อมูลเลยยยยยยคร๊าปป
|
 |
 |
 |
 |
Date :
2010-01-25 13:25:00 |
By :
ความรู้เท่าหางอึ่ง |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
http://jquery.bassistance.de/validate/demo/
http://jqueryui.com/demos/datepicker/#icon-trigger
|
 |
 |
 |
 |
Date :
2010-01-25 13:32:20 |
By :
peterxp |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
https://www.thaicreate.com/php/php-mysql-add-insert-record.html
|
 |
 |
 |
 |
Date :
2010-01-25 13:34:29 |
By :
peterxp |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบใจจ้า
บันทึกลงฐานข้อมูลได้เรียบร้อยแล้วจ้า
แต่แบบฟอร์ม กรอกใบสมัคร มันยัง ไม่สวยอะจ้า
^^"
|
 |
 |
 |
 |
Date :
2010-01-25 18:42:03 |
By :
ปูเก้ |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
<style type="text/css">
#contactAdd { font:13px Tahoma, Geneva, sans-serif; }
#contactAdd label { width:160; text-align:right; float:left; font-weight:700; padding-right:10px; }
#contactEdit { font:13px Tahoma, Geneva, sans-serif; }
#contactEdit label { width:160; text-align:right; float:left; font-weight:700; padding-right:10px; }
</style>
<?php // if (empty($_POST)) {?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<form id="form1" name="form1" method="post" action="">
<div id="contactAdd">
<p>กรุณากรอกข้อมูล</p>
<p><label>ชื่อ : </label> <input type="text" name="name" id="name" /> </p>
<p><label>นามสกุล : </label><input type="text" name="lname" id="lname" /></p>
<p><label>เพศ : </label><select name="sex" id="sex">
<option>-เพศ-</option>
<option>ชาย</option>
<option>หญิง</option>
</select>
</p>
<p><label>วัน/เดือน/ปี เกิด : </label>
<select name="date">
<option>-วันที่-</option>
<?php foreach (range(1, 31) as $val) { ?>
<option><?=$val?></option>
<?php } ?>
</select>
<select name="mouth">
<option>-เดือน-</option>
<option>มกราคม</option>
<option>กุมภาพันธ์</option>
<option>มีนาคม</option>
<option>เมษายน</option>
<option>พฤษภาคม</option>
<option>มิถุนายน</option>
<option>กรกฎาคม</option>
<option>สิงหาคม</option>
<option>กันยายน</option>
<option>ตุลาคม</option>
<option>พฤศจิกายน</option>
<option>ธันวาคม</option>
</select>
<select name="year">
<option>-ปี-</option>
<option>2510</option>
<option>2511</option>
<option>2512</option>
<option>2513</option>
<option>2514</option>
<option>2515</option>
<option>2516</option>
<option>2517</option>
<option>2518</option>
<option>2519</option>
<option>2520</option>
<option>2521</option>
<option>2522</option>
<option>2523</option>
<option>2524</option>
<option>2525</option>
<option>2526</option>
<option>2527</option>
<option>2528</option>
<option>2529</option>
<option>2530</option>
<option>2531</option>
<option>2532</option>
<option>2533</option>
<option>2534</option>
<option>2535</option>
<option>2536</option>
<option>2537</option>
<option>2538</option>
<option>2539</option>
<option>2540</option>
<option>2541</option>
<option>2542</option>
<option>2543</option>
<option>2544</option>
<option>2545</option>
<option>2546</option>
<option>2547</option>
<option>2548</option>
<option>2549</option>
<option>2550</option>
<option>2551</option>
<option>2552</option>
<option>2553</option>
<option>2554</option>
<option>2555</option>
<option>2556</option>
<option>2557</option>
<option>2558</option>
<option>2559</option>
<option>2560</option>
</select></p>
<p><label>เลขประจำตัวประชาชน : </label><input type="text" name="idcard" id="idcard" /></p>
<p><label>ที่อยู่ : </label><textarea name="address" rows="5" id="address"></textarea></p>
<p><label>จังหวัด : </label><input type="text" name="jung" id="jung" /></p>
<p><label>E-mail : </label><input type="text" name="email" id="email" /></p>
<p><label>กรุณาเลือก สาขา : </label>
<select name="saka">
<option>-เลือกสาขา-</option>
<option>ไฟฟ้ากำลัง</option>
<option>อิเล็กทรอนิกส์</option>
<option>ยานยนต์</option>
<option>การบัญชี</option>
<option>คอมพิวเตอร์ธุรกิจ</option>
</select></p>
<input type="submit" name="button" id="button" value="ตกลง" />
<input type="hidden" name="form1" value="form1" />
</div>
</form>
<?php // } else if ($_POST['form1']=='form1') { ?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<form id="form2" name="form2" method="post" action="save.php">
<div id="contactEdit">
<p>รายละเอียดที่กรอกไว้</p>
<p><label>คุณ ชื่อ : </label><input type="text" name="name1" id="name1" value="<?php echo $_POST['name']; ?>" /> </p>
<p><label>นามสกุล : </label><input type="text" name="lname1" id="lname1" value="<?php echo $_POST['lname']; ?>" /> </p>
<p><label>เพศ : </label><input type="text" name="sex1" id="sex1" value="<?php echo $_POST['sex']; ?>" /> </p>
<p><label>วัน/เดือน/ปี เกิด : </label><input type="text" name="date1" id="date1" value="<?php echo $_POST['date']; ?>" />
<input type="text" name="mouth1" id="mouth1" value="<?php echo $_POST['mouth']; ?>" />
<input type="text" name="year1" id="year1" value="<?php echo $_POST['year']; ?>" /> </p>
<p><label>เลขบัตรประจำตัวประชาชน : </label><input type="text" name="idcard1" id="idcard1" value="<?php echo $_POST['idcard']; ?>" /></p>
<p><label>ที่อยู่ : </label><input type="text" name="address1" id="address1" value="<?php echo $_POST['address']; ?>" /> </p>
<p><label>จังหวัด : </label><input type="text" name="jung1" id="jung1" value="<?php echo $_POST['jung']; ?>" /> </p>
<p><label>E-mail : </label><input type="text" name="email1" id="email1" value="<?php echo $_POST['email']; ?>" /> </p>
<p><label>สาขาที่คุณเลือก : </label><input type="text" name="saka1" id="saka1" value="<?php echo $_POST['saka']; ?>" /> </p>
<input type="submit" name="button2" id="button2" value="บันทึกลงฐานข้อมูล" />
<input type="hidden" name="form2" value="submit" />
</div>
</form>
<?php // } else if ($_POST['form2']=='form2') {?>
<?php echo "บันทึกข้อมูลเรียบร้อยแล้ว";?>
<?php //} ?>
|
 |
 |
 |
 |
Date :
2010-01-25 19:02:39 |
By :
DownsTream |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 05
|