473,544 Members | 2,424 Online
Bytes | Software Development & Data Engineering Community
+ 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="registe r.php" method="post">< p>';

print '
<p class="txtni">A ll Fields below are required:</p>
<span class="txtni">F irst Name:</span> <input type="text"
name="first_nam e" size="20" value="' . $_POST['first_name'] . '" /> <br />
<span class="txtni">L ast Name:</span> <input type="text"
name="last_name " size="20" value="' . $_POST['last_name'] . '" /><br />
<span class="txtni">E mail Address:</span> <input type="text"
name="email" size="40" value="' . $_POST['email'] . '" /><br /><br />
<span class="txtni">P hone Number:</span> <input type="text" name="phone"
size="20" value="' . $_POST['phone'] . '" /></p>
....
some instructions...

<p><span class="txt">You r Message:</span> <textarea "name="mess age"
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**@addr ess.com", 'Another Happy Volunteer Had Signed Up',$body,
"From: ma**@addreess.c om\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 2328
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.c om\r\n"."Reply-To: {$_POST['email']}");
instead of:
"From: ma**@addreess.c om\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="mess age"

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.c om\r\n"."Reply-To: {$_POST['email']}");
instead of:
"From: ma**@addreess.c om\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="mess age"

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
535
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 class=orderpage> \n"; print " <td align=center>$CSQTY</td>\n";
5
1374
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 message of the format: jsmith@example.com <John Smith>, it arrives with a from line looking like this: From: jsmith@example.com...
2
1351
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 great... I now need to use the e-mail field in the form to send a mail back to the user who entered the form to let them know registration was a...
8
1868
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 would you show an e-mail address in the browser but protecting it from spam bots? What works for text/html doesn't for application/xhtml+xml, such as...
87
9497
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: absolute;top:68px; left:563px; width:640px;height:480px;"> <IMG src="ReportImageBox_12.54.52.png" width=640 height=480></IMG>
14
2300
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 =============================================================== by Pamela Datatime Team -----------------
1
1380
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 MailMessage Dim smtp As SmtpMail smtp.SmtpServer = "mailhost.gujarat.gov.in" mymail.To = "mahesh@cybersurfindia.com"
4
3642
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 that I'd like to use to send emails from since GMail automatically replaces the "from" field with whoever you're using to send emails from. When I...
3
2463
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 said éléphant in french !' ; When the e-mail appears, I get weird characters instead of the wanted clean accents.
0
7438
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7632
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7720
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5309
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4930
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3430
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1850
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
996
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
677
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.