Upload a form to MYSQL $10-30 USD Publicado hace más de 7 años
$10-30 USD Pagado a la entrega
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 del proyecto: 11891040
Información sobre el proyecto 19 propuestas
Proyecto remoto
Activo hace 8 años
¿Buscas ganar dinero? Dirección de email Postular a trabajos similares Beneficios de presentar ofertas en Freelancer Fija tu plazo y presupuesto
Es gratis registrarse y presentar ofertas en los trabajos
19 freelancers están ofertando un promedio de $44 USD por este trabajo
Hi, I can send the data to MySQL instead of mailing it. Please message me for any discussion. Thanks.
$66 USD en 0 día
5,0 (375 comentarios) 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
$30 USD en 1 día
4,8 (103 comentarios) 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 en 0 día
4,9 (32 comentarios) ++ 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:: I will share our final quote after having a discussion.
$133 USD en 3 días
4,9 (67 comentarios) 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
$20 USD en 1 día
5,0 (27 comentarios) 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!
$25 USD en 1 día
5,0 (62 comentarios) 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
$15 USD en 1 día
4,8 (30 comentarios) 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!
$25 USD en 1 día
5,0 (14 comentarios) A proposal has not yet been provided
$30 USD en 2 días
5,0 (4 comentarios) 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 en 0 día
5,0 (1 comentario) 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 en 0 día
5,0 (7 comentarios) 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_se51
$25 USD en 1 día
4,8 (2 comentarios)