473,473 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

mail() IE vs Firefox

I'm trying to make a form work, which it does from Firefox (and
Netscape) but not from Internet Explorer.

The form is simple:
<form action="register.php" method="post"><p>';

print '
<p class="txtni">All Fields below are required:</p>
<span class="txtni">First Name:</span> <input type="text"
name="first_name" size="20" value="' . $_POST['first_name'] . '" /> <br />
<span class="txtni">Last Name:</span> <input type="text"
name="last_name" size="20" value="' . $_POST['last_name'] . '" /><br />
<span class="txtni">Email Address:</span> <input type="text"
name="email" size="40" value="' . $_POST['email'] . '" /><br /><br />
<span class="txtni">Phone Number:</span> <input type="text" name="phone"
size="20" value="' . $_POST['phone'] . '" /></p>
....
some instructions...

<p><span class="txt">Your Message:</span> <textarea "name="message"
cols="80" rows="5" value="' . $_POST['message'] . '"
/></textarea></span></p>
<p align="center"><input type="submit" name="submit" value="Send email
to Volunteer Coordinators!" /></p>
</form>'

I'm using the following to send the form results:

$body="Another Happy Volunteer has signed up,
Name: {$_POST['first_name']} {$_POST['last_name']}\n
Phone Number: {$_POST['phone']}\n
Email Address: {$_POST['email']}\n
Message: {$_POST['message']}";

mail("ma**@address.com", 'Another Happy Volunteer Had Signed Up',$body,
"From: ma**@addreess.com\r\n"."Reply-To: {$_POST['EMAIL']}");
When the form is sent via IE the field named "message" is dropped from
the email. When it's sent from Mozilla browsers the email is complete.

Does anyone have a clue why this works when sent from the Mozilla
browsers but not when sent from IE? Any clues as to how I might resolve
the problem.

Dave Pyles
Jul 17 '05 #1
3 2323
Dave Pyles said the following on 09/06/2005 00:07:
I'm trying to make a form work, which it does from Firefox (and
Netscape) but not from Internet Explorer.
<...SNIP CODE...>
When the form is sent via IE the field named "message" is dropped from
the email. When it's sent from Mozilla browsers the email is complete.

Does anyone have a clue why this works when sent from the Mozilla
browsers but not when sent from IE? Any clues as to how I might resolve
the problem.


What does the HTML that's produced look like? i.e. if you do View Source
in your browser, does the HTML look like you'd expect it to?

Also, change the script so that it echoes out some diagnostics so that
you check what values you're receiving.
--
Oli
Jul 17 '05 #2
1. In PHP associative array keys are case sensitive -

use:
"From: ma**@addreess.com\r\n"."Reply-To: {$_POST['email']}");
instead of:
"From: ma**@addreess.com\r\n"."Reply-To: {$_POST['EMAIL']}");

2. You have a " before your name property in the message text field of your
form, which causes it to be ignored as a field on form submission in IE.

use:
<textarea name="message"
instead of:
<textarea "name="message"

ECRIA
http://www.ecria.com
Jul 17 '05 #3
On 6/8/2005 7:50 PM, ECRIA Public Mail Buffer wrote:
1. In PHP associative array keys are case sensitive -

use:
"From: ma**@addreess.com\r\n"."Reply-To: {$_POST['email']}");
instead of:
"From: ma**@addreess.com\r\n"."Reply-To: {$_POST['EMAIL']}");

2. You have a " before your name property in the message text field of your
form, which causes it to be ignored as a field on form submission in IE.

use:
<textarea name="message"
instead of:
<textarea "name="message"

ECRIA
http://www.ecria.com

Thank You!! Thank You!! Thank You!!

Dave
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Rick | last post by:
Is there a way to use these two types of coding in the Mail function of PHP? Thanks for any help you can give it is most appreciated!! money_format('%i', $total) and print " <tr...
5
by: Kevin | last post by:
Hi all, This may not be a PHP issue, but I was hoping someone might know where to look. I have a web app that a client purchased which sends an email using PHP's "mail" function. If it sends a...
2
by: Domestos | last post by:
Need some help... I have a form and one of the fileds is a users e-mail address I have the validity set-up and the form now works, accepts data and posts to a mysql database - that side works...
8
by: Kerberos | last post by:
I have XHTML pages that I deliver as application/xhtml+xml I used to have a Javascript that hid an e-mail address from spam bots, but displayed properly the e-mail address on web browsers. How...
87
by: expertware | last post by:
Dear friends, My name is Pamela, I know little about CSS, but I would like to ask a question I have an image on a web page within a css layer: <DIV ID=MyLayer STYLE = "position:...
14
by: expertware | last post by:
Ok! to avoid confusion I will start a new argument. Thanks!! FIREFOX 1.0.7 AND IE6 viewed through DATATIME: a summary REPORT ===============================================================...
1
by: Max | last post by:
hi I used mailmessage object to send the mail, my smtp server don't require authentication, when i try to send the mail it shows error. following is the code to send mail. Dim mymail As New...
4
by: MMAS | last post by:
I've got my .net application set up to use gmail as a mail server (see code below). Everything works quite well, actually, EXCEPT for one particular email account. I've created an "admin" account...
3
by: jim | last post by:
Hi, I can't gte accents in the subject and body fields of an e-mail ! This is my code : document.location.href = 'mailto:webmaster@mysite.com?subject=the subject is éléphant&body=elephant is...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.