
August 14th, 2004, 11:01 PM
|
|
Registered User
|
|
Join Date: Aug 2004
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Help with PHP Code for site mail. (dreamweaver 4 extention)
 OK,
Heres a perppendicular question for you... I am new to PHP coding and I have searched high and low for a script that i can use for emailing.
I have used and maintained serveral scripts, however I found a script most may have heard of if they use or used Dreamweaver version 4.
The script was SenderPHP. After doing all it asked me to and inserting the rigt code, it came up with an error.
Code:
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/nsw/theb0b/public_html/mail_test.php3 on line 24
Parse error: parse error, expecting `','' or `';'' in /home/nsw/theb0b/public_html/mail_test.php3 on line 24
)
The code used is below:
PHP Code:
<?
$rootdir = "../mailer/";
$dir = "/";
$success = "thankyou.htm";
$failure = "error.htm";
$email_var = "templates";
$To = "telusdesigns@ep.net.au";
$template = "The following person has downloaded a software:
name: %name%
phone: %phone%
email: %email%
downloaded software: %software%";
$autosubject = "Thankyou - Telus Designs";
$autoreply = "Dear %name%,
Thank you for downloading %software%. We hope you will enjoy using it!
Sincerely yours,
Dee and Lee
Telus Designs";
$subject = "Template Prices";
$success = $dir . $success;
$failure = $dir . $failure;
$thedirectory = $rootdir . "sender.phtml";
echo "<form action = \"$thedirectory\" method = \"post\" name = \"templates"">\n";
echo "<input type = \"hidden\" name = \"to\" value = \"$to\">\n"; echo "
<input type = \"hidden\" name = \"subject\" value = \"$subject\">
\n"; echo "
<input type = \"hidden\" name = \"success\" value = \"$success\">
\n"; echo "
<input type = \"hidden\" name = \"failure\" value = \"$failure\">
\n"; echo "
<input type = \"hidden\" name = \"dir\" value = \"$dir\">
\n"; echo "
<input type = \"hidden\" name = \"template\" value = \"$template\">
\n"; echo "
<input type = \"hidden\" name = \"required\" value = \"$required\">
\n"; echo "
<input type = \"hidden\" name = \"autosubject\" value = \"$autosubject\">
\n"; echo "
<input type = \"hidden\" name = \"autoreply\" value = \"$autoreply\">
\n"; echo "
<input type = \"hidden\" name = \"email_var\" value = \"$email_var\">
\n"; echo "
<input type = \"hidden\" name = \"rootdir\" value = \"$rootdir\">
\n"; ?>
Now I know there is a problem, however I have no idea where. Any help would be greatly appreciated.
Azzaka 
|