01.
<?
02.
$a
=
$_POST
[
'text1'
];
03.
$b
=
$_POST
[
'text2'
];
04.
$c
=
$_POST
[
'text3'
];
05.
$d
=
$_POST
[
'text4'
];
06.
$e
=
$_POST
[
'text5'
];
07.
$f
=
$_POST
[
'text6'
];
08.
include
(
"connect.php"
);
09.
$sql
=
"insert into customer(cus_id,cus_title,cus_fname,cus_lname,cus_add,cus_tel)values('$a','$b','$c','$d','$e','$f')"
;
10.
$query
= mysql_query(
$sql
,
$connect
);
11.
12.
13.
?>
14.
<script language=
"javascript"
>
15.
alert (
"ทำการบันทึกลงฐานข้อมูลเรียบร้อยเเล้วค่ะ"
);
16.
window.location.replace(
"show.php"
)
17.
</script>