Hi I have a couple coding questions,
In the code below do I replace the whole variable such as $url with http://www.mysite.com or "http://www.mysite.com"
or do I have to add to the variable such as $url="http://www.mysite.com"
also on this line: <form method="post" action="suggest.php"> does it need to be "mysuggest.php" or
do I leave it at "suggest.php"
Here is the link to the script: http://www.thewebmasterzone.com/scripts/free-scripts-51.html
Thanks, John
Directions:
Open mysuggest.php and modify the variables below;
select which language pack you want to use :
tur.lang.php for Turkish
eng.lang.php for English
include("eng.lang.php");
$sitename="enter your site's name here ";
will be displayed in the "From" field of the mail
$url="enter your site address here e.g. [url]http://www.yoursite.com[/url]";
will be displayed in the body of the mail
$adminmail="enter your e-mail address here";
$mailtosender="1";
Code:
/* building the mail body */
$mailbody="$suggestionfor ".$rname."\n\n";
$mailbody.=$siteownermessage."\n";
$mailbody.=$url."\n\n";
$mailbody.="$from ".$sname."\n";
$mailbody.="$sendersmail ".$smail."\n\n";
if (!empty($message))
{
$mailbody.=$sname." $wrote\n";
$mailbody.="-----------------------------------\n";
$mailbody.=$message;
}
$mailbody.="\n-----------------------------------\n";
$mailbody.=$author;
$mailheaders="From: $sitename<$adminmail>\n";
/* building the body of the mail for the sender */
if ($mailtosender=="1")
{
$smailbody=$sname.",\n";
$smailbody.=$thankyoumessage."\n";
$smailbody.="\n-----------------------------------\n";
$smailbody.=$author;
$smailheaders="From: $sitename<$adminmail>\n";
mail($smail,$thankyousubject,$smailbody,$smailhead
ers);
}
/* sends the mail */
if (@mail($rmail,$mailsubject,$mailbody,$mailheaders)
)
{
msg( "$mailsent","$rmail");
}
else
{
msg ("$error","$mailproblem");
}
// displays the form if no submission
}
-------------------------------------------------------------------------