# Form working in Firefox, but not IE?

**URL:** <https://forum.kirupa.com/t/form-working-in-firefox-but-not-ie/306730>\
**Category:** programming\
**Created:** [March 21, 2010, 9:54am UTC](https://forum.kirupa.com/t/form-working-in-firefox-but-not-ie/306730 "2010-03-21T09:54:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![twinturbo](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@twinturbo](https://forum.kirupa.com/u/twinturbo)\
**Post date:** [March 21, 2010, 9:54am UTC](https://forum.kirupa.com/t/form-working-in-firefox-but-not-ie/306730/1 "2010-03-21T09:54:08Z")

</div>

I am really not sure what I am doing wrong here (I removed the actual email addresses as this is for a client). Everything is fine in Firefox - form submits, gets received, etc. In IE, it either submits, but doesn’t get received in email or gives the “Message Delivery Failed” message that I set as default when something goes wrong.

Thanks for any help you can provide!

\<?php

```
                                    if(isset($_POST['submit'])) {
                                        
                                        
                                    $firstname = $_POST['firstname'];
                                    $lastname = $_POST['lastname'];
                                    $email = $_POST['email'];
                                    $phone = $_POST['phone'];
                                    $address = $_POST['address'];
                                    $city = $_POST['city'];
                                    $state = $_POST['state'];
                                    $zipcode = $_POST['zipcode'];
                                    $other = $_POST['other'];
                                    
                                    
                                     if(is_array($_POST['available']))
                                    {
                                        foreach($_POST['available'] as $value) {
                                            $check_avail .= "

```

-$value  
";  
}  
}

```
                                     if(is_array($_POST['volunteer']))
                                    {
                                        foreach($_POST['volunteer'] as $value) {
                                            $check_vol .= "

```

-$value  
";  
}  
}

```
                                    $to = "email@website.com";
                                    $subject = "Volunteer Form from"." ".$firstname." ".$lastname;
                                    $body = " ".$firstname." ".$lastname." wrote:

```

“;  
$body .= " I am interested in volunteering for:”.$check\_vol." “.$other.”

“;  
$body .= " I am available during the:”.$check\_avail."

“;  
$body .= “Contact info for”.” “.$firstname.” “.$lastname.”:  
“;  
$body .= " Phone Number:”." “.$phone.”  
";  
$body .= " “.$email.”  
";  
$body .= " “.$address.” “.$city.” “.$state.” ".$zipcode;

```
                                    $header = "From: [EMAIL="email@website.com"]email@website.com[/EMAIL]

```

";  
$header .= "Reply-To: [email@website.com](mailto:email@website.com)  
";

```
                                    }
                                    
                                    if (mail($to, $subject, $body, $header)) {
                                      echo("&lt;h3&gt;Thank you! Your message has been sent.&lt;/h3&gt;");
                                        
                                     } else {
                                      echo("&lt;h3&gt;Oh no! Message delivery failed...Please try again.&lt;/h3&gt;");
                                     }
                 
                                 ?&gt;
```
