Upload a form to MYSQL
$10-30 USD
货到付款
I need this simple lines of PHP to upload the info to a MYSQL instead of sending a email. Same function with the cookie control. Just remove the PHPmailer part and do a connect to a MYSQL. I will add the db name, server, user and psw myself.
I will provide the new DB field names when you have accepted the job.
<?php
session_start();
require_once "mailer/[login to view URL]";
include('../[login to view URL]');
$reload = '';
if(isset($_GET['timer'])){
$File1 = $datarray[base64_decode($_GET['timer'])];
$Company = $_SESSION['company'];
$Contact = $_SESSION['Contact'];
$Phone = $_SESSION['Phone'];
$UEmail = $_SESSION['UEmail'];
$Projectname = $_SESSION['Projectname'];
$Whoareyou = $_SESSION['Whoareyou'];
$Contactpermission = $_SESSION['Contactpermission'];
$to = "XX";
$body = $Company.";".$Contact.";".$Phone.";".$UEmail.";".$Projectname.";".$Whoareyou.";".$Contactpermission."; ".$linkid.";".date("Y-m-d H:i:s")."; ".$_SERVER['REMOTE_ADDR']."; ".$File1;
$subject = "Nedladdning";
$header = "From:XX \r\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-type: text/html\r\n";
$retval = mail ($to,$subject,$body,$header);
header ("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header('Content-Type: application/octetstream');
header("Content-Transfer-Encoding: Binary");
header("Content-length: ".filesize($File1));
header("Content-disposition: attachment; filename=\"".$File1."\"");
readfile($File1);
} else {
if(isset($_POST['linkid'])){
$Company = $_SESSION['company'] = $_POST['Company'];
$Contact = $_SESSION['Contact'] = $_POST['Contact'];
$Phone = $_SESSION['Phone'] = $_POST['Phone'];
$UEmail = $_SESSION['UEmail'] = $_POST['UEmail'];
$Projectname = $_SESSION['Projectname'] = $_POST['Projectname'];
$linkid = $_POST['linkid'];
$Whoareyou = $_SESSION['Whoareyou'] = $_POST['Whoareyou'];
$Contactpermission = $_SESSION['Contactpermission'] = $_POST['Contactpermission'];
setcookie("allowed", "yes", time() + 1800, "/"); // 3600 = 1 hour
$File = $datarray[$linkid];
$to = "XX";
$body = $Company.";".$Contact.";".$Phone.";".$UEmail.";".$Projectname.";".$Whoareyou.";".$Contactpermission."; ".$linkid.";".date("Y-m-d H:i:s")."; ".$_SERVER['REMOTE_ADDR']."; ".$File;
$subject = "Nedladdning";
$header = "From:XX \r\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-type: text/html\r\n";
$retval = mail ($to,$subject,$body,$header);
$_SESSION['filepending'] = $linkid;
header ("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header('Content-Type: application/octetstream');
header("Content-Transfer-Encoding: Binary");
header("Content-length: ".filesize($File));
header("Content-disposition: attachment; filename=\"".$File."\"");
readfile($File);
}
}
?>
Anyone mailing directly or outside [login to view URL] will be banned and reported.
Thanks for looking.
项目ID: #11891040
关于项目
授予:
HI, i can easily easily upload this form to mysql, I can do this job now only. Please provide me detail. I can do this in 30mint only.
有19名威客正在参与此工作的竞标,均价$44/小时
Hi, I can send the data to MySQL instead of mailing it. Please message me for any discussion. Thanks.
Hello, I am ready to provide solution as per requirement at the earliest. I assure you quality work and support after completion. Please open message board for further discussion. Regards Evina
Hey. Over 10 years of web development experience, ready to start. Let's meet and discuss all the needed details via chat. Best regards, John.
++ This is my job. I'm ready to begin now. Pm for me. Thanks Looking forward to hear from you, Feel free to talk about this interesting stuff, give us any questions you have to know more about us ;-) Thanks Oleg! P.S: 更多
hello i am ready to done work as per requirement for mail sending please reply me i am ready to start the work right now please reply me thanks
Dear, I am new in freelancer but I have 4 years experience in PHP ,If you hire me i will give excellent work and quality services for you and your requirements. Have a nice day!
Hi, I read your project descriptions. I'm an experienced Wordpress developer from Hanoi, Vietnam. So kindly leave message for me, then i'll discuss it in depth. Best regards
Hi. Having working in PHP before, I believe I will be able to finish you task with full professionalism and great work. Hoping to have a positive response. Good luck!
Hello. I'm an experienced PHP / MySQL programmer, can do this task for you in a couple of hours. Let me know if you want to chat :)
Hello Sir, I will do this job if you give me this job opportunity let me know if you have any question thanks, rajesh
I am comfortable in correcting the website. We are ready to start the project immediately. I am sincerely interested to work with you. We have a very resourceful team and great portfolio with us. mahendra 更多