หน้า: 1 ... 4 5 6 7 8 9 10 [11] 12
 
ผู้เขียน หัวข้อ: ภาษา SQL  (อ่าน 113673 ครั้ง)
0 สมาชิก และ 1 ขาจร กำลังดูหัวข้อนี้


ค่าสอนสี่แสน
บันทึกการเข้า

เราจะต้องการอะไรมากมายไปกว่า อะไรมากมาย
แลกกะค่าอิลัสนะ  น้องดำ
บันทึกการเข้า
เรากำลังจะทำ ใบสมัครออนไลน์

กำลังคิดว่าจะทำเองหรือจะจ้างทำดี


บันทึกการเข้า
ใบสมัครอะไรอ้ะ ใช้ google doc เล้ย  เกย์ออก
บันทึกการเข้า
google doc แล้วไงต่อพี่เจน

พอคนเข้ามากรอก แล้วมันส่งข้อมูลเข้าเมลเราได้เลยเหรอ

บันทึกการเข้า
ขอเบิ้ลนะ

คือเราทำใบสมัครออนไลน์มาแล้ว มัน echo ไม่ได้ (ที่เครื่องนี้ เครื่องอื่นไม่มีปัญหา)

1. มันต้องไปตั้งค่าอะไร ที่ไหน หรือใน php.ini ไรแบบนี้รึเปล่า

หรือว่าทำอะไรมั่วไปรึเปล่า


2. ถ้าทำเสร็จแล้ว จะทำให้ มีการดึงข้อมูล(คนที่เพิ่งสมัครมา) แสดงเป็น pdf แล้วส่งเข้าเมล
มีขั้นตอน(ย่อๆ) ยังไงบ้าง คืออ่านใน fpdf แล้วไม่เข้าใจ
หรือว่าเราต้องทำให้มัน echo ออกมาให้ได้ก่อน แล้วถึงจะไม่งง


* แนบไฟล์มาให้ Download คลิกที่นี่
« แก้ไขครั้งสุดท้าย: 03 ก.ค. 2011, 18:55 น. โดย Pix » บันทึกการเข้า
ข้อ 1 มีตัวอย่าง code มั้ยครับ
บันทึกการเข้า

แนบมาแล้วจ๊ะ (เดี๋ยวนี้แนบไฟล์ไมไ่ด้แล้วเหรอ)
บันทึกการเข้า
เล่นบนมือถือ เปิด rar ไมทได้ T_T


เอาแค่บรรทัดที่สั่ง echo อะครับ
บันทึกการเข้า

  <?php
   echo "photo= $photo
";
  echo "xname=$xname
";
  echo "surname=$surname
";
  ?>
บันทึกการเข้า
ตัวแปร ถ้า submit มาจาก formต้อง  get ค่ามันก่อนนะครับ

$photo =$_POST['photo'];
$xname =$_POST['xname'];
$surname = $_POST['surname'];

แล้วค่อยสั่ง echo
บันทึกการเข้า

ที่ยาวๆ มันคือแบบนี้

<?php
  $photo=$_POST[photo];
  $xname=$_POST[xname];
  $surname=$_POST[surname];
  $age=$_POST[age];
  $id_num=$_POST[id_num];
  $birth_date=$_POST[birth_date];
  $nationality=$_POST[nationality];
  $race=$_POST[race];
  $address=$_POST[address];
  $province=$_POST[province];
  $post_code=$_POST[post_code];
  $phone_num=$_POST[phone_num];
  $status=$_POST[status];
  $children=$_POST[children];
  $father_name=$_POST[father_name];
  $father_occ=$_POST[father_occ];
  $father_income=$_POST[father_income];
  $father_alive=$_POST[father_alive];
  $mother_name=$_POST[mother_name];
  $mother_occ=$_POST[mother_occ];
  $mother_income=$_POST[mother_income];
  $mother_alive=$_POST[mother_alive];
  $family_status=$_POST[family_status];
  $bro_sis=$_POST[bro_sis];
  $bro_num=$_POST[bro_num];
  $sis_num=$_POST[sis_num];
  $your_num=$_POST[your_num];
  $school_m1=$_POST[school_m1];
  $major_m1=$_POST[major_m1];
  $end_year_m1=$_POST[end_year_m1];
  $gpa_m1=$_POST[gpa_m1];
  $school_m4=$_POST[school_m4];
  $major_m4=$_POST[major_m4];
  $end_year_m4=$_POST[end_year_m4];
  $gpa_m4=$_POST[gpa_m4];
  $school_other=$_POST[school_other];
  $major_other=$_POST[major_other];
  $end_year_other=$_POST[end_year_other];
  $gpa_other=$_POST[gpa_other];
  $ref_person_name=$_POST[ref_person_name];
  $relationship=$_POST[relationship];
  $ref_person_num=$_POST[ref_person_num];
  $how_to_know=$_POST[how_to_know];
  $rec_name=$_POST[rec_name];
  $rec_num=$_POST[rec_num];
  $area=$_POST[area];
  $other_media=$_POST[other_media];

  echo "photo=$photo
";
  echo "xname=$xname
";
    echo "surname=$surname
";

 
?>
บันทึกการเข้า
โค้ด:
<?php
  $photo
=$_POST['photo'];
  
$xname=$_POST['xname'];
  
$surname=$_POST['surname'];
  
$age=$_POST['age'];
  
$id_num=$_POST['id_num'];
  
$birth_date=$_POST['birth_date'];
  
$nationality=$_POST['nationality'];
  
$race=$_POST['race'];
  
$address=$_POST['address'];
  
$province=$_POST['province'];
  
$post_code=$_POST['post_code'];
  
$phone_num=$_POST['phone_num'];
  
$status=$_POST['status'];
  
$children=$_POST['children'];
  
$father_name=$_POST['father_name'];
  
$father_occ=$_POST['father_occ'];
  
$father_income=$_POST['father_income'];
  
$father_alive=$_POST['father_alive'];
  
$mother_name=$_POST['mother_name'];
  
$mother_occ=$_POST['mother_occ'];
  
$mother_income=$_POST['mother_income'];
  
$mother_alive=$_POST['mother_alive'];
  
$family_status=$_POST['family_status'];
  
$bro_sis=$_POST['bro_sis'];
  
$bro_num=$_POST['bro_num'];
  
$sis_num=$_POST['sis_num'];
  
$your_num=$_POST['your_num'];
  
$school_m1=$_POST['school_m1'];
  
$major_m1=$_POST['major_m1'];
  
$end_year_m1=$_POST['end_year_m1'];
  
$gpa_m1=$_POST['gpa_m1'];
  
$school_m4=$_POST['school_m4'];
  
$major_m4=$_POST['major_m4'];
  
$end_year_m4=$_POST['end_year_m4'];
  
$gpa_m4=$_POST['gpa_m4'];
  
$school_other=$_POST['school_other'];
  
$major_other=$_POST['major_other'];
  
$end_year_other=$_POST['end_year_other'];
  
$gpa_other=$_POST['gpa_other'];
  
$ref_person_name=$_POST['ref_person_name'];
  
$relationship=$_POST['relationship'];
  
$ref_person_num=$_POST['ref_person_num'];
  
$how_to_know=$_POST['how_to_know'];
  
$rec_name=$_POST['rec_name'];
  
$rec_num=$_POST['rec_num'];
  
$area=$_POST['area'];
  
$other_media=$_POST['other_media'];

  echo 
"photo=$photo";
  echo 
"xname=$xname";
  echo 
"surname=$surname";

 
?>
บันทึกการเข้า
ลองเอาขึ้นโฮส มันทำได้แหละ

แต่ในเครื่องเหมือนเดิม

 ฮือๆ~
บันทึกการเข้า
เบิ้ล อีกที

มันเป็นแบบนี้เลย




 ไม่ล่ะ
บันทึกการเข้า
หน้า: 1 ... 4 5 6 7 8 9 10 [11] 12
 
 
Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2006-2007, Simple Machines | Thai language by ThaiSMF Valid XHTML 1.0! Valid CSS!