Upload a form to MYSQL

已完成 已发布的 7 年前 货到付款
已完成 货到付款

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.

MySQL PHP

项目ID: #11891040

关于项目

19个方案 远程项目 活跃的7 年前

授予:

shailendra041090

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.

$10 USD 在1天内
(172条评论)
7.0

有19名威客正在参与此工作的竞标,均价$44/小时

saagark22

Hi, I can send the data to MySQL instead of mailing it. Please message me for any discussion. Thanks.

$66 USD 在0天内
(375条评论)
7.3
maxtechsl

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

$30USD 在1天里
(103条评论)
6.6
virtcon

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.

$25 USD 在0天内
(32条评论)
6.1
ProfSoftStudio

++ 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: 更多

$133 USD 在3天内
(67条评论)
5.6
viralrathod1

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

$20USD 在1天里
(27条评论)
5.0
WeAreCoders

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!

$25USD 在1天里
(62条评论)
5.0
karlmc15

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

$15USD 在1天里
(30条评论)
4.8
DevelopingGuru

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!

$25USD 在1天里
(14条评论)
4.2
allWebDesignPro

A proposal has not yet been provided

$30 USD 在2天内
(4条评论)
4.0
lonek

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 :)

$20 USD 在0天内
(1条评论)
3.0
rajesh7186

Hello Sir, I will do this job if you give me this job opportunity let me know if you have any question thanks, rajesh

$20 USD 在0天内
(7条评论)
2.7
mahendrase51

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 更多

$25USD 在1天里
(2条评论)
1.2