Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old August 14th, 2004, 11:01 PM
Azzaka Azzaka is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 2 Azzaka User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation 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

Reply With Quote
  #2  
Old August 15th, 2004, 02:14 AM
midfielder100's Avatar
midfielder100 midfielder100 is offline
Master PIMP
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2004
Location: Santa Monica, CA
Posts: 728 midfielder100 User rank is Corporal (100 - 500 Reputation Level)midfielder100 User rank is Corporal (100 - 500 Reputation Level)midfielder100 User rank is Corporal (100 - 500 Reputation Level)midfielder100 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 15 h 23 m 2 sec
Reputation Power: 8
Send a message via AIM to midfielder100
First off, WHY DID YOU NOT POST THIS IN THE PHP FORUM. It was made for questions like this!!! On a lighter tone, try this code :

PHP Code:
<?php 
$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";
?>

Reply With Quote
  #3  
Old August 15th, 2004, 04:29 AM
Azzaka Azzaka is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 2 Azzaka User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Talking Thankyou

Thankyou....

Lee

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > Help with PHP Code for site mail. (dreamweaver 4 extention)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway