no results on IE8

Hello guys

I have a problem with IE8.
I created a very simple form and a very simple php script but i cant see results in IE8. It works just fine with Firefox and Chrome but it doesnt look to work in IE.

Form:

			echo"<form method='POST'>";
				echo "<th align='left'>phone:</th>";
				echo "<td><input type='text' name='phone'></td>";
				echo "<td><input type='submit' value='OK' name='submitPhone'></td>";
			echo"</form>";

and the script in the same php file

			if(isset($_POST['submitPhone']))
			{

				$phone=$_POST['phone'];


				$result2=mysql_query("SELECT phone, tomeas, orofos, eidikotita, onoma, mail FROM contact_table WHERE phone LIKE '%$phone%' ");
				$row2=mysql_fetch_array($result2);



					echo "<table style='border:1px #000000 solid'>";
						echo "<tr>";
							echo "<th width='130px' nowrap>title1</th>";
							echo "<th width='250px' nowrap>title2</th>";
							echo "<th width='200px' nowrap>title3</th>";
							echo "<th width='150px' nowrap>title4</th>";
							echo "<th width='200px' nowrap>title5</th>";
						echo "</tr>";
					echo "</table>";

					while($row2)
					{
						if($phone==$row2['phone'])
					        {            
							echo "<table style='border:1px #000000 solid'>";
								echo "<tr>";
									echo "<td width='130px' nowrap>".($row2['orofos'])."</td>";
									echo "<td width='250px' nowrap>".($row2['eidikotita'])."</td>";
									echo "<td width='200px' nowrap>".($row2['onoma'])."</td>";
									echo "<td width='150px' nowrap>".($row2['tilefono'])."</td>";
									echo "<td width='200px' nowrap><a href='mailto:".($row2['mail'])."'>".($row2['mail'])."</a></td>";
								echo "</tr>";
							echo "</table>";
						}
						$row2=mysql_fetch_array($result2);
					}

			}

what DOCTYPE have you chosen? (just saying as if you are using only work IE9 +)

if you are using any form of HTML5??? then it doesnt work in IE8

Sorry for the delay

i use

i tested everything in this page but nothing :frowning:

http://www.w3.org/QA/2002/04/valid-dtd-list.html

post the whole code please.

Sponsor our Newsletter | Privacy Policy | Terms of Service