mikal
-
Posts
2 -
Joined
-
Last visited
Never
Posts posted by mikal
-
-
Is it possible to take an online appliction and writtin in pure php...and basically cut out the code and stick it in a DWmx template like macromedia record store free application. (if your aware of it).
I have some programmers coding an application for me, but the interface is killing me. I know DWmx but not PHP and MySql very well. Im asking them to redesing it or program it to work inside specific DW templates, this way i can keep the usablity ....usable.
Any advice our knowledge would be helpful.
Thanks.
Two emails on php form sumbission
in PHP Coding Help
Posted
???
My form works, but I get two emails:
In the From part when i test it I get the person email address who sent it.
AND
I get one from Apache
Can anyone tell me how to stop this. Not savvy enough to figure it out with tutorials I seen.
My thank you page which submits the results look like this code:
<?php
/*$ip = $_POST['ip'];*/
$httpref = $_POST['httpref'];
$httpagent = $_POST['httpagent'];
$visitor = $_POST['visitor'];
$visitormail = $_POST['visitormail'];
$notes = $_POST['notes'];
$attn = $_POST['attn'];
if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,".")))
{
echo "<h2>Use Back - Enter valid e-mail</h2>\n";
$badinput = "<h2>Feedback was NOT submitted</h2>\n";
echo $badinput;
}
if (eregi('http:', $notes)) {
die ("Do NOT try that! ! ");
}
if(empty($visitor) || empty($visitormail) || empty($notes )) {
echo "<h2>Use Back - fill in all fields</h2>\n";
}
$todayis = date("l, F j, Y, g:i a") ;
$attn = $attn ;
$subject = "Case Referral from HornLaw-referral.com";
$notes = stripcslashes($notes);
$message = " $todayis [EST] \n
Attention: $attn \n
Message: $notes \n
From: $visitor ($visitormail)\n
Additional Info : IP = $ip \n
Browser Info: $httpagent \n
Referral : $httpref \n
";
$from = "From: $visitormail\r\n";
mail("MyAddress@ThisDomain.com", $subject, $message, $from);
?>
<p align="left">
<span class="price"><span class="price">Date</span>:</span> <?php echo $todayis ?>
<br />
<span class="style22"><span class="style23">Thank You</span>:</span> <?php echo $visitor ?> <br />
( <?php echo $visitormail ?> )
<br />
<span class="price"><span class="style23">Message</span>:</span><br />
<?php $notesout = str_replace("\r", "<br/>", $notes);
echo $notesout; ?>
<br />
<?php echo $ip ?>
Any help out there. An advanced Thank you of any help.
m