[SOLVED] Weird Problem with Form in IE

This is a discussion on "[SOLVED] Weird Problem with Form in IE" within the PHP Forum section. This forum, and the thread "[SOLVED] Weird Problem with Form in IE are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 20th, 2007, 14:05
Jack Franklin's Avatar
Resources Administrator

SuperMember
Join Date: May 2007
Location: Cornwall, England
Posts: 1,268
Blog Entries: 7
Thanks: 10
Thanked 4 Times in 4 Posts
[SOLVED] Weird Problem with Form in IE

Hi Guys,

Attempting to create a contact form and having a very weird problem. In IE, the text area called 'name' cannot be clicked on, so therefore people can't fill it out, but it works fine in Firefox. Could someone please see if it is my PC or IE in general please. The address is http://www.jackfranklin.co.uk/contact.php


Here is the code:

Code: Select all
 
<form method="post" action="contact_form_response.php">
<span style="font-weight:bold;">Name:</span><br /><input name="name" type="text" size="50" maxlength="200" /><br />
<span style="font-weight:bold;">Email:</span><br /><input name="email" type="text" size="50" maxlength="200" />
<span style="font-weight:bold;">Comments:</span><textarea name="message" cols="50" rows="2"></textarea>
<input type="submit" name="submit_button" value="Submit" />
</form>
And the contact_form_response.php...

Code: Select all
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
// Validation
if(3 < strlen($name) && 3 < strlen($email) && 3 < strlen($message))
{
$email_message = <<< EMAIL
Message from websites contact form.
Name: $name
Email:$email
The message:
$message
EMAIL;
 
$headers = "cc:you@your_alternate_address.com\r\n"; 
 
 if(mail('jack@jackfranklin.co.uk','Contact form email', $email_message))
 {
  echo "Your email has been delivered, we will contact you shortly."; 
 }
 else 
 {
  echo "We had a problem sending the email.";
 }
 
 
}
else
{
  echo "You did not fill in the form properly. Please use the browser's 'back' button and update the form."; 
}
 
 
?>
Any ideas?

PS - I know that in FF the form displays over the top of the image.

Jack
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
Reply With Quote

  #2 (permalink)  
Old Dec 20th, 2007, 14:26
Jack Franklin's Avatar
Resources Administrator

SuperMember
Join Date: May 2007
Location: Cornwall, England
Posts: 1,268
Blog Entries: 7
Thanks: 10
Thanked 4 Times in 4 Posts
Re: Weird Problem with Form in IE

Ok, sorry for the waste of a thread, as I have now fixed the issue. It appears that IE does not like the form to be inside a <p> tag, and that was what caused the problem. Problem fixed.
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
Reply With Quote
  #3 (permalink)  
Old Dec 20th, 2007, 15:01
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Weird Problem with Form in IE

Yes, if you try validating your code it may point out these errors for you.
Mark this thread as solved?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #4 (permalink)  
Old Dec 20th, 2007, 15:58
Jack Franklin's Avatar
Resources Administrator

SuperMember
Join Date: May 2007
Location: Cornwall, England
Posts: 1,268
Blog Entries: 7
Thanks: 10
Thanked 4 Times in 4 Posts
Re: Weird Problem with Form in IE

Yep
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[solved] Weird blue Box toastyrat2 Starting Out 6 Mar 4th, 2008 11:40
[SOLVED] PHP contact form problem fl0w PHP Forum 12 Jan 31st, 2008 17:56
got a weird PS problem shammy2007 Graphics and 3D 2 Dec 29th, 2007 02:27
[SOLVED] Form Post Problem weasel PHP Forum 15 Oct 9th, 2007 12:20
Weird display problem in IE Paul.Yeoman Web Page Design 7 Jan 27th, 2006 14:42


All times are GMT. The time now is 11:45.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43