Menu
Hi there,
I was wondering if any of you knows any good tutorial on how to create an application form with PHP & MySQL.
I did a google search and I found only one that really helped me with my application ([url]http://www.princeton.edu/~daveh/dwphpclass_guide/mysql.html
Thanks in advance.
P.S. Also, Dreamweaver CS4 Dynamic Development – Lynda.com help me a lot with my application.
require_once("phpMailer/class.phpmailer.php");
require_once("phpMailer/class.smtp.php");
require_once("phpMailer/language/phpmailer.lang-en.php");
$to_name = "Name Surname";
$to = "[email protected]";
$subject = "New user has submitted the application form at ".strftime("%T", time());
$message = "This is a test.";
$message = wordwrap($message,70);
$from_name = "My Name";
$from = "[email protected]";
//PHP SMTP version
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->Host = "mail.mydomain.com";
$mail->Port =25;
$mail->SMTPAuth = false;
$mail->Username = "test";
$mail->Password = "XXXX";
$mail->FromName = $from_name;
$mail->From = $from;
$mail->AddAddress($to, $to_name);
$mail->Subject = $subject;
$mail->Body =<<<EMAILBODY
$result = $mail->Send();
echo $result ? 'Thanks for your registering... Your information has been recorded in our database.' : 'Error';
T_STRING' or
I tried and this is the result:
parse error, expectingT_VARIABLE' or `T_NUM_STRING' in C:xampphtdocsserthanks.php on line 35 T_STRING' or
?[/QUOTE]
0.1.9 — BETA 5.20