Contact form is correct in Dreamweaver, and not when viewing live on internet
I had to create a new contact form, however, it's not 'acting' properly when viewed on the internet, however it does when in dreamweaver. Any thoughts as to why?
An outside company originally designed and coded our website and the old code no longer works with the new platform our hosting company is using. And the email link isn't working.
Below are the Style and Source Code I've used.
Style:
#formwrapper {
width: 200px;
height: auto;
background color: #FFF;
}
form {
width: 200px;
height: auto;
background-color: #5A5A5A;
}
fieldset {
background-color: #000;
border: none;
padding: 10px;
}
h10{
font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif";
font-size: 16px;
font-weight: bold;
font-color: #FFF;
}
label {
width: 250px;
display: block;
font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif";
font-size: 14px;
color: #FFF;
margin-top:5px;
margin-right:0px;
margin-bottom:5px;
margin left:0px;
}
input {
width: 250px;
border: thin solid #000;
margin-bottom:10px;
}
textarea {
width: 250px;
border: thin solid #000;
margin-bottom: 10px;
}
.btn{
width: 50px;
height: 20px;
font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif";
color: #000;
font-size: 14px;
font font-weight: bold;
background-color:#FFFFFF;
}
<?php
$email="sales@conterraindustries.com";
$name=$_POST['Your Name'];
$phone=$_POST['Your Phone Number'];
$address=$_POST['Your Email'];
$message=$_POST['Your Message'];
mail($mail, $name, $phone, $address, $message,);
Print "Your message has been sent. Thank you"
?>
Source Code:
<form id="formwrapper"><form action="contactform.php" method=post></form>
<fieldset>
<h10>Contact Form</h10>
<label for="name">Your Name</label>
<input name="name" type="text" size="40" max elngth="100" />
<label for="email">Your Email</label>
<input name= "email" type="text" size="40" maxlength="100" />
<label for="phone"> Your Phone Number</label>
<input name="phone" type="text" size="40" maxlength="100"/>
<label for="message">Your Message</label>
<textarea name="message" cols="40" rows="25"></textarea>
<input class="btn" name="submit" type="submit" value=SEND/>
</fieldset>
</form>
