IE wont show contact form!
Posted: Wed Feb 15, 2012 3:24 am
Hi Guys,
iv'e been trying to figure this one out all night, I have a ajax script in my background that gets new information and posts it on the content area of a page. (navigation).
works fine in all browsers.. BUT when I want my contact page shown, all browsers except for IE shows the damn page! why!?
as for the php code its:
iv'e been trying to figure this one out all night, I have a ajax script in my background that gets new information and posts it on the content area of a page. (navigation).
works fine in all browsers.. BUT when I want my contact page shown, all browsers except for IE shows the damn page! why!?
Code: Select all
<div class="fs1" align="center"><div class="nicealign" id="cfh">
<div class="contact" align="center">Contact Form<br /></div>
<form method="post" action="content/send_contact.php">
<ul>Subject</ul><br />
<input name="subject" type="text" id="subject"/><info>What is the topic?</info>
<br /><br />
<ul>Message</ul><br />
<textarea name="message" id="message"/>
</textarea><info>Write content here</info><br /><br />
<ul>Name</ul><br />
<input name="name" type="text" id="name"/>
<info>Full Name</info><br /><br />
<ul>Email</ul><br />
<input name="email" type="text" id="email"/>
<info>Valid Email Address</info><br /><br /><br />
<input type="submit" name="submit" value="Submit" style="height:20px;color:#CCC; background-color:#131313; border:solid 1px #666; width: 70px; font-size:11px;"/>
<input type="reset" name="submit2" value="Reset" style="height:20px;margin-left: 15px;color:#CCC; background-color:#131313; border:solid 1px #666; width: 70px; font-size:11px;"/>
</form></fieldset>
<br /></div></div><br />
<br /><br />
as for the php code its:
Code: Select all
<?php $name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$topic = $_POST['subject'];
$formcontent="From: $name \n\n Message: \n\n $message";
$recipient = "send@mail.com";
$subject = "$topic";
$mailheader = "From: $email \r\n";
mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");
?>
<meta http-equiv="refresh" content="5;url=http://yoururl.com">
<link rel="stylesheet" type="text/css" href="../css.css" />
<div class="infotool">
Your contact has been sent to our email, You'll be automaticly redirected in 5 seconds.<br /><br />
If not, press <a href="http://yoururl.com" target="_blank">here</a>