Solved

form not working in IE7

Posted on 2011-03-17
4
171 Views
Last Modified: 2012-05-11
Hi, the reservation form in our website appears to be working great for us, but some customers have mentioned that they can not use it:

http://restaurantkalimera.nl/dev/?page_id=27

They say that they entered their information in the form, but we can not see their submissions in the log text file of the form or the automated email notifications we receive.

Is there anything we can change in css or javascript, to ensure maximum compatibility with all browsers after IE7?

Thank you
0
Comment
Question by:darkbluegr
  • 3
4 Comments
 
LVL 20

Accepted Solution

by:
Mark Brady earned 500 total points
ID: 35160710
You will need to be more specific. What happens when some customers try to use it? Errors? Blank page? What exactly do they see?
What browser are they using and which version - important information as some browsers have specific bugs but there are always work-arounds.
 The more you can tell us the quicker we can help you. Thanks
0
 
LVL 20

Expert Comment

by:Mark Brady
ID: 35160801
Also it would help if you posted you form processing code (the code that processes and emails the form data - usually a php script).
0
 

Author Comment

by:darkbluegr
ID: 35162548
Hi, thanks for the quick reply, the customers aren't getting any error messages, and I do not know exactly what they see because usually they will just call us after the fact -- and say that they have already completed the website form without further details.

they all mentioned that they are using IE but they do not know which version.

I had about 5 customers call me about this issue, and about 100 submissions from other customers were received successfully.

Here is the php code

Thank you
<?php
/**
 * Template Name: Fun template
 *
 */

get_header(); 

      $error=0;
      $mail_sent=0;
	 if ($_POST["check_send"]==1){
	   if (!empty($_POST["email"]) && !empty($_POST["naam"]) && !empty($_POST["telefoon"]) && !empty($_POST["opmerkingen"]) && (ereg("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $_POST['email'])))
	   {
			   $message = "naam: ".$_POST["naam"]."<br/>";
			   $message .= "email: ".$_POST["email"]."<br/>";
			   $message .= "telefoon: ".$_POST["telefoon"]."<br/><br/>";
			   $message .= $_POST["opmerkingen"];
			   
                  $handle = fopen("wp-content/themes/kalimera/contact.txt", 'a');
                  $log_message = str_replace("<br/>","
",$message);
                  fwrite($handle, "
                  
                  
".$log_message);
                  
			   $HTML = $message;
			   
			   $from= $_POST["email"];
			   
			   $headers = "From: Kalimera <mail@kalimera.nl>\r\n"; 
			   $headers .= "MIME-Version: 1.0\r\n"; 
			   $boundary = uniqid("HTMLEMAIL"); 
			   $headers .= "Content-Type: multipart/alternative;".
						 "boundary = $boundary\r\n\r\n"; 
			   $headers .= "This is a MIME encoded message.\r\n\r\n"; 
			   $headers .= "--$boundary\r\n".
						 "Content-Type: text/plain; charset=ISO-8859-1\r\n".
						 "Content-Transfer-Encoding: base64\r\n\r\n"; 
			   $headers .= chunk_split(base64_encode(strip_tags($HTML))); 
			   $headers .= "--$boundary\r\n".
						 "Content-Type: text/html; charset=ISO-8859-1\r\n".
						 "Content-Transfer-Encoding: base64\r\n\r\n"; 
			   $headers .= chunk_split(base64_encode($HTML)); 
			   
			   $mail_sent = mail("mail@kalimera.nl","Contact via Kalimera.nl","",$headers);
			   
			   if ($mail_sent) unset($_POST);
	   }else{
			   $error = 1;
	   }   
	 }
		  
?>

		<div id="container">
		<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
			<div id="content" <?php post_class(); ?>>

				<h1 class="FFF page-title"><?php echo get_the_title();?></h1>

				<div class="Avenir-light entry-content">
					<?php the_content(); ?>
				</div><br/>
				    
					<div id="resform" class="contact_form">
				       <form action="" method="post">
						 <span class="Avenir-heavy">NAAM*</span>	&nbsp;<input type="text" name="naam" class="input required" value="<?php echo $_POST["naam"];?>"/><br />
						 <span class="Avenir-heavy">EMAIL*</span>&nbsp;<input type="text" name="email" id="email" class="input required" value="<?php echo $_POST["email"];?>"/><br />
						 <span class="Avenir-heavy">TELEFOON*</span>&nbsp;<input type="text" name="telefoon" class="input required" value="<?php echo $_POST["telefoon"];?>"/><br />
						 <div id="opmerkingen_label" class="Avenir-heavy">VRAAG OF<br/> OPMERKING*</div>
						 &nbsp;<textarea id="opmerkingen" name="opmerkingen" class="textarea requried"><?php echo $_POST["opmerkingen"];?></textarea><br />
						 <?php if ($error==1){?><div class="contact_error">* Please fill all required fields.</div><?php }?>
						 <?php if ($mail_sent==1){?><div class="contact_sent">Your message is sent.</div><?php }?>
						 <input type="hidden" name="check_send" value="1">
						 <input type="submit" id="resend" name="resend" value="VERZENDEN" class="resend-contf"/>&nbsp;
						 <input type="button" name="reset" id="reset" value="WISSEN" class="reset-contf"/>
					   </form>
				    </div> <!-- resform-->

                    <!--<div class="Avenir-light entry-content">
                         Door technische problemen is het op dit moment helaas niet mogelijk om via internet te reserveren of contact met ons op te nemen. Wij bieden u hiervoor onze excuses aan. U kunt wel per e-mail reserveren - <a href="mailto:mail@kalimera.nl" style="color: black;">mail@kalimera.nl</a> - of telefonisch via (030) 238 4444.
				    </div><br/>-->

					<?php 
					$id = 155;
					$new_page = get_page($id); ?>
					<h1 class="FFF page-title"><?php echo $new_page->post_title;?></h1>

					<div class="Avenir-light entry-content">
						 <?php echo $new_page->post_content; ?>
						 <div id="map_canvas"></div>
					</div>

				<div class="fb-content">

				</div><!-- .fb-content -->

			</div><!-- #content -->
		<?php endwhile; ?>
		</div><!-- #container -->


<?php get_footer(); ?>

Open in new window

0
 
LVL 20

Expert Comment

by:Mark Brady
ID: 37791033
I don't see any obvious mistakes in your form code but I do not have IE to test it with. Are you able to do some testing with IE yourself? If so I would do a simpler version of your form and make sure to form variables are being sent properly. Usually with IE you get problems when trying to change classnames or change an onclick event or something like that but yours seems to be ok for that stuff. Sorry I can't help firther - I haven't used IE for years and never looked back! Of course it is good to be able to test your pages in IE so I send mine to my work colleague who still uses it.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now