?
Path : /home/admin/public_html/old/ |
Current File : /home/admin/public_html/old/volsave.php |
<? @session_start(); ob_start(); require_once "include/tdate.php"; require_once "include/connect.php"; require_once "include/connectdb.php"; if($_FILES["productsphoto"]["name"] != "") { $name=$_FILES['productsphoto']['name']; $tmp=$_FILES['productsphoto']["tmp_name"]; $date_time=date("Y-m-d H:i:s"); $oldname=explode(".",$name); $ext = ""; $ext = ".".$oldname[count($oldname)-1]; $photo_1 =date('YmdHis').$ext; copy($tmp,"IMG/".$photo_1); }else{ $photo_1 = ""; } mysql_query("INSERT INTO regisvol (id,cover_dance_list_name_1,cover_dance_list_age_1,teamtel,teammail,knowfrom,productsphoto) values('','$_POST[cover_dance_list_name_1]','$_POST[cover_dance_list_age_1]','$_POST[teamtel]','$_POST[teammail]','$_POST[knowfrom]','$photo_1')") or die (mysql_error()); ?> <html> <head> <title><? echo "$headtxt"; ?></title> <!-- Fireworks MX Dreamweaver MX target. Created Sat Apr 02 10:29:23 GMT+0700 (SE Asia Standard Time) 2011--> <body bgcolor="#ffffff"> <div align="center"><strong> </strong> <table width="89%" border="0" align="center" cellpadding="1" cellspacing="1"> <tr> <td width="100%" colspan="2"><table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#E9E9E6"> <tr> <td><div align="center"> <table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td><div align="center"><br> <br> <img src="images/note_accept.png" width="64" height="64"><br> <br> บันทึกข้อมูลเรียบร้อยแล้วค่ะ<br> <br> ขอบคุณค่ะ<br> <br> <br> <br> </div></td> </tr> </table> </div></td> </tr> </table></td> </tr> <tr> <td colspan="2"><div align="center"><br> </div></td> </tr> </table> </div> </body> </html>