เมนู

แสดงโพสต์

ส่วนนี้ให้คุณดูโพสต์ทั้งหมดของสมาชิกท่านนี้ (เฉพาะโพสต์ในส่วนที่คุณมีสิทธิ์เข้าถึง)

เมนู แสดงโพสต์

หัวข้อ - Thapaparpat13

#1
อยากทราบว่าเว็บไซต์ที่มีขึ้นให้เรากดยอมรับการขอเก็บ cookies  
ถ้าต้องการทำแบบนี้บ้าง ต้องใช้ Tool ตัวไหนในการทำ และเก็บ cookies ผู้เข้าชมเว็บไซต์คะ

มีผู้รู้คนไหนพอทราบรายละเอียดบ้างไหมคะ แล้วจะสามารถหาอ่านได้จากที่ไหนคะ

ขอบคุณมากๆ ค่ะ



#2
ธนพรคลินิกเปิดโปรโมชั่นเดือน "สิงหาคม" นี้



ท่านใดอยากสวยอย่าหล่อทั้ง รักษาสิว,เสริมจมูก,เลเซอร์หน้าใส
เชิญเลือกโปรโมชั่นได้ตามใจชอบเพราะความสวยความหล่อมันหยุดกันไม่ได้ยังไงก็ต้องจัดลำดับความสำคัญของตัวเองให้เป็นที่หนึ่งไว้ก่อน

:wanwan016: :wanwan005:
#3

ขอสอบถามผู้รู้
ใครพอทราบ Extension ของ Magento สำหรับ Image Optimizer และล้างแคชบ้าง
และ Optimize JS กับ CSS บ้างคะ

อยากได้มากจริงๆ ตอนนี้เว็บช้า ไม่ถึง 80% เลยค่ะ อยู่ที่ 50 เอง
รบกวนช่วยด้วยนะคะ

ขอบคุณค่ะ
#4
คือเราทำตาม Google PageSpeed Insights ทุกอย่างแล้ว ว่าให้แก้ในจุดๆไหน เว็บถึงจะเร็วขึ้น

แต่พอทำเสร็จ ก็เร็วอยู่นะ คะแนนอยู่ที่ 60+ แต่พอลองใส่ url เข้าไปอีกที ก็กลับมาเป็นเหมือนเดิมคือคะแนนตามในรูปค่ะ

อยู่ที่ 40 กว่าตลอด เหมือนกับว่า รูปที่เราอัพเข้าไปในผ่าน ftp มันขยายขนาดไฟล์เอง ยกตัวอย่างเช่น จากที่เราใส่ไว้ 24kb รูปขยายเพิ่มเป็น 89kb

เราลองเปลี่ยน permission เป็น 644 แล้ว แต่ permission ถูกเปลี่ยนกลับมาเป็น 777 อัตโนมัติ ใครเคยเจอปัญหาแบบนี้บ้างคะ

รบกวนช่วยหน่อยนะคะ จนปัญญาแล้วจริงๆ ไม่รู้จะหาทางแก้อย่างไรแล้ว ขอบคุณค่ะ ส่วน CMS ที่เราใช้ เป็น e-commerce magento นะคะ

ขอบคุณมากค่ะ


#5
ขอขอบคุณเจ้าของกระทู้จริงๆ ค่ะ ที่มาแบ่งปันความรู้กัน
จากกระทู้คุณ pugkung  http://www.thaiseoboard.com/index.php/topic,35028.0.html
และคุณ EThaiZone  http://www.thaiseoboard.com/index.php/topic,6920.msg82893.html#msg82893

หมายเหตุ :
1. ที่ตั้งหัวข้อใหม่ เนื่องจากกฏของบอร์ดไม่ให้ขุดกระทู้เก่า ไม่รู้ว่าเราเข้าใจถูกป่าวนะ
2. อยากให้บอกต่อกระทู้ที่มีประโยชน์ต่อผู้ที่เข้ามาศึกษาค้นคว้า

เหตุผลมีเท่านี้จ้า ผิดพลาดประการใด เราต้องขออภัยมา ณ ที่นี้ด้วย เนื่องจากเราเป็นมือใหม่ของบอร์ดนี้

จุดประสงค์ คือแค่ต้องการแบ่งปันความรู้กัน...เท่านั้นเอง


อ้างถึงจาก: pugkung ใน 22 สิงหาคม 2008, 10:47:54
นี้คือ เท่าที่ผมรวบรวมได้นะครับ
ถ้าว่าง ๆ ผมจะอัพเดทเพิ่มขึ้นเรื่อย ๆ สำหรับสคริปหรือ Code PHP ที่น่าสนใจนะครับ
อ้างถึง
การเข้ารหัส e-mail
เทคนิคใช้ if แบบ ไม่มี if
เทคนิคการสร้าง 00001 (เทคนิคนี้จากคุณ Tee++; )
การใช้เครื่องหมาย ?
การสั่ง php ให้ พิมพ์ออกหน้าจอ โดยไม่ใช้ echo และ printf
วิธีเพิ่มความเร็วให้กับ php อีกนีด
ใช้ลูปอย่างไรให้เหมาะสม
กันสแปมเมล์
ตกม้าตายกะ header
Function ที่มักจะใช้ร่วมกับ header คือพวก ob ต่างๆ by Tee++
function ใน PHP ที่ไม่ค่อยมีคนใช้กัน eval()
เทคนิคพิเศษที่ถูกซ่อน ระหว่าง string และ array
array_walk() คำสั่งที่หลาย ๆ คนไม่ได้ใช้มัน แต่ มีประโยชน์มาก ๆ  by Tee++
เทคนิคเพิ่มความเร็ว และลดการใช้งาน mysql (Caching to Speed)
เราจะมาเพิ่มระบบเช็คเวลา แคช
การเรียกพาท
การจัดรูปแบบ บทความ (มั่ง เพราะมันไม่มีชื่อ functoin)
การใช้คำสั่ง Mysql เบื้องต้น
อยากจะเขียน PHP เป็น ต้องทำอย่างไร
วิธีการทำผลการค้นหาแสดงเป็น %
เวลาตัดทดศนิยมด้วยฟังค์ชั่น round มันจะปัดเศษด้วย ทำอย่างไรถึงจะไม่ให้มันปัดเศษ
การทำ sitemap ให้อยู่ในรูป gzip
การตั้งค่า Parameter ในสภาพติดลบ
การทำรายการที่มี comma คั่น
การเรียกรายการข้อความโดยไม่เกิดปัญหา
ตอนพิเศษ : Loop in the loop
การใช้ cURL แทน file_get_contents by lowprofile
agent มาให้เพิ่มเติมครับ ( Agent ของ bot ล้วนๆ / 1 บรรทัดต่อ 1 agent ) by lowprofile
การแทรกโค้ด HTML ใน PHP แบบง่าย ๆ by Pipo
การใช้ include กับวิธีของอันข้างบน by lowprofile
ความแตกต่างระหว่าง include กะ require by lowprofile
คำเตือนเรื่องการใช้ include by icez
วิธีการทำระบบ Tags ตามแบบฉบับ WEB2.0
สำหรับบางสคิปบางตัวที่ทำงานเป็นเวลานานๆ by aomnaruk
เกี่ยวกับการสืบทอด Value ของ PHP ที่ภาษาอื่นไม่ทำกัน by tarnroma
preg_match V.1
ตัวอย่างการใช้ fsockopen ในการส่งข้อมูลแบบ POST
วิธีทำ redirect page แบบเว็บ anony อะไรซักอย่าง จำ url ไม่ได้แล้ว  by mixture
เรื่องการรับส่งค่า ระหว่าง window หลัก และ popup และการเรียกใช้ parent ระหว่าง iframe กับ main iframe by nuijang24
การหน่วงเวลาของ PHP by แบบนี้ไม่ต้องสืบ
สคริปทำ sub domain
เทคนิคฝึกสมองอย่างโปเกม่อน! เอ้ย EThaiZone
@ ใน php
สคริป Related จาก Google
User Online TXT ฉบับ EThaiZone
ฟังค์ชั่นแปลงภาษาไทยเป็น utf8
ฟังค์ชั่นแปลง tis620 เป็น utf-8
การเรียงชื่อไฟล์ใน Directory by ฟาร์มเฮ้า
glob() และคำอธิบาย
การเขียน Regex เพื่อเช็คภาษาไทย
คลาสแปลง UTF8 เป็น punycode
ฟังค์ชั่นแปลง utf8 กลับเป็น tis620
เอาไว้ดึง Google Keyword Suggestion by aomnaruk
การ sort Array by thenetxx
ความหมายของ Error ใน PHP
ความเป็นไปได้ของ 1 ใน 100
การเขียนตรวจสอบ Keyword Density อย่างง่ายๆ
โค้ดทำ highlight keyword
Random Cron Script
ดึงพาทโดยตรงของยูทูป
การเขียนตรวจสอบ Keyword Density V.2
Dynamic Path (น่าจะใช่นะ)
Regular Expression
Ban IP สำหรับหน้าที่ไม่ต้องการให้ IP นั้น ๆ เข้า (คิดว่าคงใช่นะ)
หวังว่าคงจะมีประโยชน์นะครับ  :)

สำหรับ เทคนิค ที่ไม่ได้ Credit คนเขียนไว้ นี้ เป็นของ คุณ EthaiZone หมดเลยนะครับ  :)
ปล. ดูลำบากกันไหมครับ ถ้าลำบาง แนะนำหน่อยนะครับว่าทำไงให้ดูได้ง่าย ๆ
#6
คือกำลังจะทำเว็บไซต์ E-commerce ที่เปิดให้สั่งสินค้า และชำระเงินผ่านบัตรเครดิตได้

จำเป็นจะต้องมี SSL Certificate เพื่อเพิ่มความน่าเชื่อ และความปลอดภัยให้กับลูกค้าค่ะ

อยากทราบว่าจะต้องติดต่อของเจ้าที่ไหนดี ราคาเท่าไร และขั้นตอนการทำ ต้องทำอย่างไรบ้างคะ

หรือเราแค่หาเจ้าผู้ให้บริการ แล้วให้ทางผู้ให้บริการทำทั้งหมดคะ

#7

ไม่รู้ว่าตั้งถูกห้องหรือป่าวนะค่ะ น่าจะมีให้เลือกหลายๆห้องเหมือน pantip  :wanwan012: คือตอนนี้เราใช้ cms e-commerce magento อยู่ค่ะ ต้องการหาระบบตัดบัตรเครดิต

ที่ดูน่าเชื่อถือ ลูกค้าไม่ต้องกลัวกังวลว่าเงินจะสูญหาย  หรือโดนแฮกระหว่างทาง แต่ทีนี้ ใน magento เชื่อมต่อกับ paypal ไว้แล้วในระบบ เพียงแต่เรารู้สึกว่า หาข้อมูลศึกษายากมากเลย

ส่วนภายในเว็บไซต์ paypal เรารู้สึกว่าอ่านแล้ว เข้าใจยาก เหมือนใช้ google translation ดูซับซ้อน และค่าธรรมเนียมค่อนข้างเก็บหลายรายการเกินไป และแพงด้วย

ค่าธรรมเนียมนี่ ถ้าแพงไม่เท่าไร แต่ทว่า อ่านแล้วดูซับซ้อน ดูยุ่งยาก อยากได้ที่สรุปคร่าวๆ ว่าใช้อย่างไร สมัครอย่างไร ต้องใช้หลักฐานอะไรบ้างในการสมัคร

จะโดนหัก หรือเรียกเก็บค่าธรรมเนียมตอนไหนบ้าง หรือมีอะไรแอบแฝงหรือไม่ ต้องถอนเงินเข้าบัญชีบริษัทอีกที วิธีการถอนทำอย่างไร หรือยอดเงินที่ลูกค้าตัดบัตรมา จะเข้าบัญชีบริษัทเลย

พอจะมีใครที่ทราบ พร้อมแนะนำ หรือขอวิธีศึกษาต่อจาก link ไหนได้บ้างไหมค่ะ หาดูแล้ว มีแต่ข้อมูลสมัยหลายปีก่อน ซึ่งค่าธรรมเนียม และวิธีการต่างๆได้เปลี่ยนแปลงไปมาก

ขอบคุณค่ะ


#8
ไม่รู้ว่าตั้งถูกห้องหรือป่าวนะค่ะ น่าจะมีให้เลือกหลายๆห้องเหมือน pantip  :wanwan012: คือตอนนี้เราใช้ cms e-commerce magento อยู่ค่ะ ต้องการหาระบบตัดบัตรเครดิต

ที่ดูน่าเชื่อถือ ลูกค้าไม่ต้องกลัวกังวลว่าเงินจะสูญหาย  หรือโดนแฮกระหว่างทาง แต่ทีนี้ ใน magento เชื่อมต่อกับ paypal ไว้แล้วในระบบ เพียงแต่เรารู้สึกว่า หาข้อมูลศึกษายากมากเลย

ส่วนภายในเว็บไซต์ paypal เรารู้สึกว่าอ่านแล้ว เข้าใจยาก เหมือนใช้ google translation ดูซับซ้อน และค่าธรรมเนียมค่อนข้างเก็บหลายรายการเกินไป และแพงด้วย

ค่าธรรมเนียมนี่ ถ้าแพงไม่เท่าไร แต่ทว่า อ่านแล้วดูซับซ้อน ดูยุ่งยาก อยากได้ที่สรุปคร่าวๆ ว่าใช้อย่างไร สมัครอย่างไร ต้องใช้หลักฐานอะไรบ้างในการสมัคร

จะโดนหัก หรือเรียกเก็บค่าธรรมเนียมตอนไหนบ้าง หรือมีอะไรแอบแฝงหรือไม่ ต้องถอนเงินเข้าบัญชีบริษัทอีกที วิธีการถอนทำอย่างไร หรือยอดเงินที่ลูกค้าตัดบัตรมา จะเข้าบัญชีบริษัทเลย

พอจะมีใครที่ทราบ พร้อมแนะนำ หรือขอวิธีศึกษาต่อจาก link ไหนได้บ้างไหมค่ะ หาดูแล้ว มีแต่ข้อมูลสมัยหลายปีก่อน ซึ่งค่าธรรมเนียม และวิธีการต่างๆได้เปลี่ยนแปลงไปมาก

ขอบคุณค่ะ


#9
คือเวลาที่มีคนมาลงทะเบียนสมัครสมาชิก เราจะต้องส่งเมล์ตอบกลับอัติโนมัติ เพื่อให้เขาคลิกลิงค์ยืนยันการสมัครสมาชิกจากทางอีเมล์ที่เขากรอกมา

และเข้ามาสู่หน้าเว็บไซต์เราเพื่อเข้าสู่ระบบ ใครพอทราบบ้างค่ะ ว่าจะทำอย่างไร พอดีลองใช้ PHP เขียนแล้วค่ะ แต่ปรากฎว่ามันไม่ยอมส่งเมล์อัตโนมัติไปหา

คนที่มาลงทะเบียนสมัครสมาชิก ใครพอจะทราบวิธีแก้ไขบ้างค่ะ ว่ามันเป็นเพราะอะไร ด้านล่างเป็นโค้ดทั้งหมด แต่ละหน้าที่เขียนค่ะ เรียงลำดับดังนี้ค่ะ

save_register.php , activate.php , register.php

<?php require('../Connections/cont.php'); 

    
session_start();


?>







<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Register</title>
<style type="text/css">
<!--
body {

margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
#p4 {
      font-size: 14px;
      font-weight: bold;
          color: #000000;
  text-align:center;
      padding:10px;
      background-color:rgb(170,212,255);opacity:0.6;
   
   }

</style>
<style type="text/css">
input[type=text], select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
input[type=email], select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
input[type=password], select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type=submit] {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type=submit]:hover {
    background-color: #45a049;
}

div {
    border-radius: 5px;
    background-color: #ffffff;
    padding: 40px;
}
</style>
<style type="text/css">
.button {
    position: relative;
    background-color: #4d4d4d;
    border: none;
    font-size: 12px;
font-weight: bold;
    color: #FFFFFF;
    width: 100px;
    height: 29px;
    text-align: center;
    -webkit-transition-duration: 0.4s; /* Safari */
    transition-duration: 0.4s;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
}


.button:after {
    content: "";
    background: #90EE90;
    display: block;
    position: absolute;
    padding-top: 300%;
    padding-left: 350%;
    margin-left: -20px!important;
    margin-top: -120%;
    opacity: 0;
    transition: all 0.8s
}

.button:hover {background-color: #ffffff; color:#000000;}

.button:active:after {
    padding: 0;
    margin: 0;
    opacity: 1;
    transition: 0s
}
</style>

</head>
<body>
<script language="javascript">
function fncSubmit()
{
alert("ยินดีต้อนรับสู่สมาชิก Acneclub Tanapornclinic กรุณา Login เพื่อรับสิทธิประโยชน์ต่างๆในเว็บไซต์ค่ะ");
if(document.form1.username.value == "")
{
alert('Please input Username');
document.form1.username.focus();
return false;

if(document.form1.password.value == "")
{
alert('Please input Password');
document.form1.password.focus();   
return false;
}
if(document.form1.password.value.length < 4 || document.form1.password.length > 6)
{
alert('กรุณาระบุรหัสผ่านอย่างน้อย 4 ตัวอักษร แต่ไม่เกิน 6 ตัวอักษร และต้องเป็นตัวเลขหรือตัวอักษรภาษาอังกฤษเท่านั้น');
document.form1.password.focus();   
return false;

if(document.form1.password2.value == "")
{
alert('Please input Confirm Password');
document.form1.password2.focus();     
return false;

if(document.form1.password.value != document.form1.password2.value)
{
alert('Confirm Password Not Match');
document.form1.password2.focus();     
return false;

if(document.form1.name.value == "")
{
alert('Please input Name');
document.form1.name.focus();   
return false;
}

format_mail=/^([a-zA-Z]{1,}) ([a-zA-Z0-9\_-.]{1,}) @([a-zA-Z0-9-\_]{1,}) ([.]{1,1}) ([a-zA-Z0-9-\_.]{1,})$/;
if(!(format_mail.test(document.form1.email.value)))
{
alert("รูปแบบอีเมล์ไม่ถูกต้อง กรุณาใส่อีเมล์ให้ถูกต้อง");
document.form1.email.focus();
return false;

}


document.form1.submit();

}
</script>

<body bgcolor="#FFFFFF">
<div align="center">
<table id="Table_01" width="101%" border="0" cellpadding="0" cellspacing="0">
    <tr>
<td align="center"> <?php include("head.html");?>
            </td>
</tr>
<tr>
<td align="center" background="images/bgmenu.jpg">
<?php include("menu1.html");?></td>
</tr>
         <tr>
<td width="1530" align="center">
  <table id="Table_" width="1128" border="0" cellpadding="0" cellspacing="0" style = "margin-bottom:20px;">
  <tr>
    <td><img src="images/register-01.jpg" width="341" height="118" alt=""></td>
   
  </tr>
  <tr>
    <td colspan="2"><img src="images/question-answer_03.jpg" width="1128" height="9" alt=""></td>
  </tr>
   </table>
   </td>
    </tr>
</table>
   <table id="Table_01" width="1128" border="0" cellpadding="0" cellspacing="0" style = "margin-top:20px;" >
    <tr>
   <td align="center" >
   
      <?php
error_reporting
error_reporting() & ~E_NOTICE );      
$cont mysql_pconnect("localhost","admin_tanporn","XNLfpn1o");
mysql_query("SET NAMES utf8",$cont);
$result mysql_select_db("admin_tanporn",$cont); 

$username $_POST['username'];
$password $_POST['password'];
$name $_POST['name'];
$email   $_POST['email'];

$sql "SELECT * FROM 2014_member WHERE username = '$username' ";
$result mysql_query($sql);
$array mysql_fetch_array($result);
if(
$array)
{
    echo 
"Username already exists!";

}
else{
        
$sql "INSERT INTO 2014_member (username,password,name,email,active,SID) VALUES ('".$_POST["username"]."', 
'"
.$_POST["password"]."','".$_POST["name"]."','".$_POST["email"]."','".session_id()."','No')";
$result mysql_query($sql);

$Uid mysql_insert_id();
?>

<table width="538" border="0" cellpadding="0" cellspacing="0" style="border: 5px solid #007eff;">
<tr>
   <td height="53"  id="p4">
<?php   
if ($result)
{
echo "<h2>You're Welcome!</h2> <h3>ระบบได้รับข้อมูลการสมัครสมาชิกของคุณแล้ว<p></h3>"?>

<h2 align="center" style="color: #007fff; font-size:18px; font-family:Tahoma, Geneva, sans-serif"><strong>กรุณาตรวจสอบอีเมล์เพื่อยืนยันการสมัครสมาชิก</strong></h2>
<?php

echo "Register Completed!<br>Please check your email to activate account";

$strTo $_POST["email"];
$strSubject "Activate Member Account";
$strHeader "Content-type: text/html; charset=windows-874
"
// or UTF-8 //
$strHeader .= "From: [email protected]
Reply-To: [email protected]"
;
$strMessage "";
$strMessage .= "Welcome : ".$_POST["name"]."<br>";
$strMessage .= "=================================<br>";
$strMessage .= "Activate account click here.<br>";
$strMessage .= "http://www.tanapornclinic.com/acneclub/activate.php?sid=".session_id()."&uid=".$Uid."<br>";
$strMessage .= "=================================<br>";
$strMessage .= "Tanapornclinic.Com<br>";

$flgSend mail($strTo,$strSubject,$strMessage,$strHeader); 

?>

<?php       
}
    
else
{
echo "ไม่สามารถสมัครสมาชิกได้<p>";
            

}

}
mysql_close();
?>

</td>
</tr>
</table>
 
<p align="center" style="color: #007fff">&nbsp;</p>
<p align="center" style="color: #060"><a href="index.php"><button class="button" name="button" id="button" >กลับสู่หน้าหลัก</button></a></p>
    </td>
    </tr>       
</table>

   <table id="Table_01" width="101%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td background="images/bgfooter.jpg" align="center">
<?php include("foot.html");?></td>
</tr>
</table>

</div>


</body>
</html>


<?php require_once('../Connections/cont.php'); 
    
session_start();

?>

<?php
if (!function_exists("GetSQLValueString")) {
function 
GetSQLValueString($theValue$theType$theDefinedValue ""$theNotDefinedValue ""
{
  if (
PHP_VERSION 6) {
    
$theValue get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  }

  
$theValue function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch (
$theType) {
    case 
"text":
      
$theValue = ($theValue != "") ? "'" $theValue "'" "NULL";
      break;    
    case 
"long":
    case 
"int":
      
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case 
"double":
      
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case 
"date":
      
$theValue = ($theValue != "") ? "'" $theValue "'" "NULL";
      break;
    case 
"defined":
      
$theValue = ($theValue != "") ? $theDefinedValue $theNotDefinedValue;
      break;
  }
  return 
$theValue;
}
}
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Register</title>
<link rel="stylesheet" href="table.css">

<body>
<style type="text/css">
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
input[type=text], select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
input[type=email], select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
input[type=password], select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type=submit] {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type=submit]:hover {
    background-color: #45a049;
}

div {
    border-radius: 5px;
    background-color: #f2f2f2;
    padding: 40px;
}
</style>

</head>
<body>
<script language="javascript">
function fncSubmit()
{
if(document.form1.username.value == "")
{
alert('Please input Username');
document.form1.username.focus();
return false;

if(document.form1.password.value == "")
{
alert('Please input Password');
document.form1.password.focus();   
return false;
}
if(document.form1.password.value.length < 4 || document.form1.password.length > 6)
{
alert('กรุณาระบุรหัสผ่านอย่างน้อย 4 ตัวอักษร แต่ไม่เกิน 6 ตัวอักษร และต้องเป็นตัวเลขหรือตัวอักษรภาษาอังกฤษเท่านั้น');
document.form1.password.focus();   
return false;
}
if(document.form1.password2.value == "")
{
alert('Please input Confirm Password');
document.form1.password2.focus();     
return false;

if(document.form1.password.value != document.form1.password2.value)
{
alert('Confirm Password Not Match');
document.form1.password2.focus();     
return false;

if(document.form1.name.value == "")
{
alert('Please input Firstname');
document.form1.name.focus();   
return false;
}

if(document.form1.surname.value == "")
{
alert('Please input Lastname');
document.form1.surname.focus();   
return false;
}   
format_mail=/^([a-zA-Z]{1,}) ([a-zA-Z0-9\_-.]{1,}) @([a-zA-Z0-9-\_]{1,}) ([.]{1,1}) ([a-zA-Z0-9-\_.]{1,})$/;
if(!(format_mail.test(document.form1.email.value)))
{
alert("รูปแบบอีเมล์ไม่ถูกต้อง");
document.form1.email.focus();
return false;

}
document.form1.submit();
}
</script>


<div align="center">
  <table id="Table_01" width="101%" border="0" cellpadding="0" cellspacing="0">
    <tr>
<td align="center"> <?php include("head.html");?>
            </td>
</tr>
<tr>
<td align="center" background="images/bgmenu.jpg">
<?php include("menu1.html");?></td>
</tr>
    <tr>
      <td>
       
   
         <?php
        $cont 
mysql_pconnect("localhost","admin_tanporn","XNLfpn1o")or die ("ติดต่อ Host ไม่ได้");
mysql_query("SET NAMES utf8",$cont); //
//$sql = "Use Board"; //เรียกใช้ฐานข้อมูลชื่อว่า Board
$result mysql_select_db("admin_tanporn",$cont)or die ("ติดต่อฐานข้อมูลไม่ได้"); 

?>

<?php

  $sql 
"SELECT * FROM 2014_member WHERE SID = '".trim($_GET['sid'])."' AND mem_id = '".trim($_GET['uid'])."' ";
  
$result mysql_query($sql);
  
$array mysql_fetch_array($result);
  if(!
$array)
  {
    echo 
"Activate Invalid !";

  }
  else
  {  
$sql "UPDATE 2014_member SET active = 'Yes'  WHERE SID = '".trim($_GET['sid'])."' AND mem_id = '".trim($_GET['uid'])."' ";
     
$result mysql_query($sql);
 echo "Activate Successfully !";
 
  }
  
mysql_close();
       

?>


</td>
    </tr>
   
  </table>
     <table id="Table_01" width="101%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td background="images/bgfooter.jpg" align="center">
<?php include("foot.html");?></td>
</tr>
</table>
</div>
</body>
</html>


<?php require_once('../Connections/cont.php'); 
    
session_start();

?>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Register</title>
<link rel="stylesheet" href="table.css">

<body>
<style type="text/css">
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
input[type=text], select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
input[type=email], select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
input[type=password], select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type=submit] {
    width: 100%;
    background-color: #b2b2b2;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type=submit]:hover {
    background-color: #b2b2b2;
}

#re {
    border-radius: 5px;
    background-color: #f2f2f2;
    padding: 40px;
}
</style>

</head>
<body>
<script language="javascript">
function fncSubmit()
{
alert("ยินดีต้อนรับสู่สมาชิก Acneclub Tanapornclinic กรุณา Login เพื่อรับสิทธิประโยชน์ต่างๆในเว็บไซต์ค่ะ");
if(document.form1.username.value == "")
{
alert('Please input Username');
document.form1.username.focus();
return false;

if(document.form1.password.value == "")
{
alert('Please input Password');
document.form1.password.focus();   
return false;
}
if(document.form1.password.value.length < 4 || document.form1.password.length > 6)
{
alert('กรุณาระบุรหัสผ่านอย่างน้อย 4 ตัวอักษร แต่ไม่เกิน 6 ตัวอักษร และต้องเป็นตัวเลขหรือตัวอักษรภาษาอังกฤษเท่านั้น');
document.form1.password.focus();   
return false;
}
if(document.form1.password2.value == "")
{
alert('Please input Confirm Password');
document.form1.password2.focus();     
return false;

if(document.form1.password.value != document.form1.password2.value)
{
alert('Confirm Password Not Match');
document.form1.password2.focus();     
return false;

if(document.form1.name.value == "")
{
alert('Please input Firstname');
document.form1.name.focus();   
return false;
}


format_mail=/^([a-zA-Z]{1,}) ([a-zA-Z0-9\_-.]{1,}) @([a-zA-Z0-9-\_]{1,}) ([.]{1,1}) ([a-zA-Z0-9-\_.]{1,})$/;
if(!(format_mail.test(document.form1.email.value)))
{
alert("รูปแบบอีเมล์ไม่ถูกต้อง");
document.form1.email.focus();
return false;

}


document.form1.submit();


}
</script>


<body bgcolor="#FFFFFF">
<div align="center">
<table id="Table_01" width="101%" border="0" cellpadding="0" cellspacing="0">

    <tr>
<td align="center"> <?php include("head.html");?>
            </td>
</tr>
<tr>
<td align="center" background="images/bgmenu.jpg">
<?php include("menu1.html");?></td>
</tr>
    <tr>
<td width="1530" align="center">
  <table id="Table_" width="1128" border="0" cellpadding="0" cellspacing="0" style = "margin-bottom:20px;">
  <tr>
    <td><img src="images/register-01.jpg" width="341" height="118" alt=""></td>
   
  </tr>
  <tr>
    <td colspan="2"><img src="images/question-answer_03.jpg" width="1128" height="9" alt=""></td>
  </tr>
   </table>
   </td>
    </tr>
</table>
<table id="Table_01" width="1128" border="0" cellpadding="0" cellspacing="0"> 
    <tr>
      <td>
</div>
<div class="CSSTableGenerator" >
<table id="table" width="1128" style = "margin-top:20px;">
<tr>
   <td>สมัครสมาชิก</td>     
</tr>
</table> 
</div>
<div id="re">

  <form id="form1" name="form1" method="post" action="save-register.php" OnSubmit="return fncSubmit();"  >
   
    <label for="name">Username</label>
    <input type="text" id="username" name="username" value="username">
   
    <label for="password">Password</label>
    <input type="password" id="password" name="password" value="password">
   
    <label for="password">Confirm Password</label>
    <input type="password" id="password2" name="password2">
   
    <label for="fname">Full name</label>
    <input type="text" id="name" name="name">

    <label for="email">E-mail</label>
    <input type="email" id="email" name="email">
 
    <input class="w3-btn w3-blue" name="submit" type="submit" id="submit" value="Register">
  </form>
</div>

       
</td>   
</tr>

       
</table> 
  <table id="Table_01" width="101%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td background="images/bgfooter.jpg" align="center">
<?php include("foot.html");?></td>
</tr>
</table>

</body>
</html>
#10
ต้องการทราบรายละเอียด พร้อมค่าธรรมเนียมต่างๆ ในการสมัคร paypal หรือค่าธรรมเนียมทั้งหมดที่ต้องเสีย

สำหรับบริการรับชำระเงินภายในเว็บไซต์ค่ะ หาข้อมูลไม่ค่อยเจอเลย มีแต่ของในเว็บไซต์ paypal ค่ะ

#11
เรื่องมันเริ่มต้นมาจาก อยากมีอาชีพเสริม อยากมีรายได้เพิ่ม เพราะที่มีอยู่เริ่มรู้สึกว่าไม่พอใช้  :P

ส่วนความรู้ที่พอจะมีติดตัวบ้าง ก็เกี่ยวกับเรื่องการทำเว็บไซต์จ้า แต่ไม่ได้เก่งระดับเทพ

ถ้าสมมติว่า จะเริ่มต้นบริการรับทำเว็บไซต์ควรเริ่มยังไงดี แล้วควรจะคิดราคาอย่างไร

ขอบคุณสำหรับทุกความคิดเห็นจ้า