#38164 [NEW]: Contact form - Output Error
| From: | ana dot garment at mail dot telepac dot pt | Date: | Thu, 20 Jul 2006 14:45:27 +0000 |
| Subject: | #38164 [NEW]: Contact form - Output Error | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-32005@lists.php.net to get a copy of this message | ||
From: ana dot garment at mail dot telepac dot pt
Operating system: Widnows XP
PHP version: Irrelevant
PHP Bug Type: Website problem
Bug description: Contact form - Output Error
Description:
------------
Dear Sirs,
We are changing our website and included 1 option for contacts made with
PHP.
We have published it and we have an Output Erro.
I believe there is a problem with our file, hereby, and sk you kindly to
help us or let us know who can help.
Waiting to hear from Y/,
Thanks for Y/ help,
B.Regards
Ana Ferreira
---
www.garmentadvisors.com
Reproduce code:
---------------
<HTML>
<HEAD>
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<TITLE>menu_p</TITLE>
</HEAD>
<?
if(!empty($_POST['sender_mail']) || !empty($_POST['sender_message']) ||
!empty($_POST['sender_subject']) || !empty($_POST['sender_name']))
{
$to = "garment@mail.telepac.pt";
$s_name = $_POST['sender_name'];
$s_mail = $_POST['sender_mail'];
$subject = stripslashes($_POST['sender_subject']);
$body = stripslashes($_POST['sender_message']);
$body .= "\n\n---------------------------\n";
$body .= "Mail enviado por: $s_name <$s_mail>\n";
$header = "From: $s_name <$s_mail>\n";
$header .= "Reply-To: $s_name <$s_mail>\n";
$header .= "X-Mailer: PHP/" . phpversion() . "\n";
$header .= "X-Priority: 1";
if(@mail($to, $subject, $body, $header))
{
echo "output=sent";
} else {
echo "output=error";
}
}else {
echo "output=error";
}
?>
<BODY bgcolor="#FFFFFF" topmargin="0" leftmargin="0">
<table border="0" width="100%" height="100%"
cellpading="0"
cellspacing="0">
<tr>
<th><!-- URL's used in the movie-->
<!-- text used in the movie-->
<!--menu--><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="835" HEIGHT="627" id="menu_p" ALIGN="">
<PARAM NAME=movie VALUE="menu_p.swf"> <PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="menu_p.swf" quality=high
bgcolor=#FFFFFF WIDTH="835" HEIGHT="627" NAME="menu_p"
ALIGN=""
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT></th>
</tr>
</table>
</BODY>
</HTML>
Expected result:
----------------
We excpect that contact database is sent directly to our email adress
(garment@mail.telepac.pt)
Actual result:
--------------
output=error
--
Edit bug report at http://bugs.php.net/?id=38164&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38164&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38164&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38164&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=38164&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=38164&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=38164&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=38164&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=38164&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=38164&r=support
Expected behavior: http://bugs.php.net/fix.php?id=38164&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=38164&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=38164&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=38164&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38164&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=38164&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=38164&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=38164&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=38164&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=38164&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=38164&r=mysqlcfg