Jump to content

Urgent Form Email help.


lszanto

Recommended Posts

I have a simple form email below but for some reason it doesn't work in ie, is there any reason why cause I have no idea why its not working.

 

order.html

            <form method="post" action="http://lszanto.hosttds.com/taylororder.php" >    
                <p>
                    <b>Order -</b><br />
                    The decks are $7 for customers in North America and $9 anywhere outside. You can only pay with paypal ( Click on CAD - Canadian Dollars in the drop menu when sending the money), but I will accept Canadian cash through the mail also (not American).  You can only order one at a time, I had to close black diamond last year because people were ordering 4 at a time. To order please fill out the form and click 'submit'. The information will be emailed to me, shortly after I will reply to confirm your order and give you my paypal adress.
                    <br /><br />
                    
                    Full Name -<br />
                    <input type="text" name="name" />
                    <br />
                    Email -<br />
                    <input type="text" name="email" />
                    <br />
                    Continient -<br />
                    <select name="continent" >
                        <option value="North America" onclick="pChange('$7');" >North America</option>
                        <option value="South America" onclick="pChange('$9');" >South America</option>
                        <option value="Europe" onclick="pChange('$9');" >Europe</option>
                        <option value="Asia" onclick="pChange('$9');" >Asia</option>
                        <option value="Australia" onclick="pChange('$9');" >Australia</option>
                        <option value="Africa" onclick="pChange('$9');" >Africa</option>
                        <option value="Mars" onclick="pChange('$9');" >Mars</option>
                        <option value="Other" onclick="pChange('$9');" >Other</option>

                    </select>
                    <br />
                    Address -<br />
                    <textarea name="address" ></textarea>
                    <br />
                    Comments -<br />
                    <textarea name="comments" ></textarea>
                    <br />
                    <input type="submit" value="submit" />
                    <input type="reset" value="reset" />
                    
                    <div id="price" >
                        <u>Total</u>: $7
                    </div>
                </p>
            </form>

 

taylororder.php

<?php

if(isset($_POST['name'])) {
   if($_POST['name'] != "" && $_POST['email'] != "" && $_POST['address'] != "") {
        //Get vars.
        $name = $_POST['name'];
        $email = $_POST['email'];
        $continient = $_POST['continent'];
        $address = $_POST['address'];
        $comments = $_POST['comments'];
        
        //Make email.
        $to = "[email protected]";
        $from = $email;
        $subject = "Black Diamond Order";
        $message = "Black Diamond Order, details below.\n\nName: $name\n\nEmail: $email\n\nContinient: $continient\n\nAddress:\n $address\n\nComments:\n$comments\n\nthanks, Black Diamond Site";
        $header = "From: $from";
        
        $mail = mail($to, $subject, $message, $header);
    } else {
        header("Location: http://llucass.sitesled.com/bd/error.html");
    }
} else {
    header("Location: http://llucass.sitesled.com/bd");
}

echo <<<EOD
<?xml version="1.0" encoding="UTF-8"?>\n
EOD;

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Black Diamond Fingerboards</title>
<style type="text/css" >
<!--

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #333;
}

.header {
    position: relative;
    top: 40px;
    margin: 0 auto;
    width: 500px;
    height: 60px;
    border-bottom: #fff 1px solid;
    padding-bottom: 5px;
    text-align: right;
    background-image: url('http://llucass.sitesled.com/bd/diff.png');
    background-repeat: no-repeat;
}

.header .menu {
    position: relative;
    top: 40px;
    right: 30px;
}

.header .menu a {
    font-family: verdana;
    font-size: 11px;
    color: #fff;
    text-decoration: none;
    margin-right: 10px;
}

.header .menu a:hover {
    border-bottom: #fff 2px solid;
    padding-bottom: 6px;
    color: #0c3;
}

.header .menu .on {
    border-bottom: #fff 2px solid;
    padding-bottom: 6px;
    color: #0c3;
}

.header a {
    color: #333;
}

.content {
    position: relative;
    top: 40px;
    width: 500px;
    margin: 0 auto;
}

.content p {
    font-family: verdana;
    font-size: 10px;
    color: #fff;
    
}

-->
</style>
</head>
<body>

        <div class="header" >
            <a name="home" >.</a>
        
            <span class="menu" >
                <a href="http://llucass.sitesled.com/bd/index.html#home" >home</a>
                <a href="http://llucass.sitesled.com/bd/index.html#decks" >decks</a>
                <a href="http://llucass.sitesled.com/bd/index.html#order" >order</a>
            </span>
        </div>
        
        <div class="content" >
            <p>
                <?php
                
                if($mail) {
                    echo "You're order had been sent. I will reply shortly confirming your purchase, and give you my paypal adress. ";
                } else {
                    echo "Error, there was a problem sending the email please click <a href=\"http://llucass.sitesled.com/bd/index.html#order\" >back</a> and try again.";
                }
                
                ?>
            </p>
        </div>

</body>
</html>

 

Please help.

Link to comment
https://forums.phpfreaks.com/topic/47833-urgent-form-email-help/
Share on other sites

I have a simple form email below but for some reason it doesn't work in ie, is there any reason why cause I have no idea why its not working.

 

That implies it works with some other browser.  Is that correct? If so, what happens with IE that doesn't happen with some other browser, or vice versa.  If it doesn't work in any browser, explain exactly what "doesn't work".

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.