IE explorer is not letting me send this email form

Discussion in 'PHP' started by gusduenas, Nov 9, 2012.

  1. #1
    Hello There, I have this code on the html form:

    <section id="formMafle">

    <form id="form"action="http://maflephoto.com/mafleMailSender.php" method="post" target="_blank" >
    <input name="firstName" type="textarea" value="First name" size="86" maxlength="90" class="ui-widget-content" /><br /><br />
    <input name="lastName" type="textarea" value="Last Name" size="86" maxlength="90" class="ui-widget-content" /><br />
    <br />
    <input name="email" type="email" value="email" size="86" maxlength="90" class="ui-widget-content"/><br /><br />
    <input name="phone" type="tel" value="Phone Number" size="86" maxlength="90" class="ui-widget-content"/><br /><br />
    <input name="weddingDate" type="date" value="Wedding Date" size="86" maxlength="100" class="ui-widget-content"/><br />
    <br />

    <textarea name="aboutYou" cols="65" rows="22" wrap="hard" class="ui-widget-content">
    write us some lines about your great day.</textarea>
    <br />
    <br />

    <input name="submit" type="submit" value="submit" class="ui-widget-content"/>
    </form>
    </section>

    and here is my code with the mailsender.php

    <?php

    /*$to = 'info@maflephoto.com';
    $from = $_POST['email'];
    $subject = $_POST['subject'];
    $message= $_POST['message'];
    $headers = 'From: $from' . "\r\n" .
    'Reply-To: webmaster@example.com' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

    mail($to, $subject, $message, $headers);
    */



    $to = 'info@maflephoto.com';

    $subject ="we like to have rates for our wedding on ". $_POST['weddingDate'];

    $message = "wedding date:". $_POST['weddingDate']. " ". "from: ". $_POST['firstName']. " ". $_POST['lastName']." </BR> ". $_POST['phone']. " </BR> ". $_POST['aboutYou'];
    $email = $_POST['email'];
    $from = $_POST ['firstName']. $_POST['lasName'];

    $headers = "From: $email";

    if(mail($to,$subject,$message,$headers)){
    echo $from." "."email has been sent, thanks for contacting Mafle Photography, a representative will be contacting you shortly";
    }else{ echo"email failed, revisar";}

    ?>

    so far it works perfectly on safari, chrome, firefox on mac and pc and android but when it comes to IE8, it cannot send anything and the cursor transforms into a hand with an exclamation mark. but when I turn off the security...it can work properly, how can I make this work out without to ask the user to take out the security by default on IE8?.


    Thanks.

    Gus
     
    gusduenas, Nov 9, 2012 IP
  2. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #2
    simple answer. Those tags are html5 and as far as I am aware IE8 does not support html5
     
    stephan2307, Nov 9, 2012 IP
  3. gusduenas

    gusduenas Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Ok, what about IE9, I have a laptop with windows 7 I'm assuming is IE8 the native browser the laptop have, but What if IE9 then? Also should I have to change those tags to divs?
     
    gusduenas, Nov 9, 2012 IP