Jump to content

internet explorer erorr


alin19

Recommended Posts

why is'n this page opened in internet explorer?

 

if i write that path in the browser the page opens

 

<?php
include ("config.php");
include ("login.php");

if (isset ($_SESSION['logIN'])&&($_SESSION['logIN']==true))
{
include ("header.php");
?>
<style type="text/css">
body{margin:10px;border:1px solid black;width:70%;height:90%;}
</style>
<body>

<form method="POST">
<table>
<tr>
	<td><i>Cod BO:</i>
	<td><select name='id_bo'><?php $queryS="SELECT `cod_bo` FROM `clienti`";  
	if ($r=mysql_query($queryS))
		{
			while ($row = mysql_fetch_array($r))
			{
			echo "<option ";
			if ((isset ($_POST['id_bo']))&&($_POST['id_bo']==$row[0]))
			echo "selected ";
			echo "value=$row[0]> $row[0] </option>";
			}
		}
		?></select></td>
<td>Data Start:</td><td><input type="text" name="dataStart" value="2007-01-01" size="7"></td><td>Data End</td><td><input type="text" name="dataEnd" value="<?php echo date("Y-m-d"); ?>" size="7" ></td>
</tr>
<tr>
	<td>Tip Raport</td><td><select name="tip">
			    
				<option value="OPERATIUNI">OPERATIUNI</option>
				<option value="FINANCIAR">FINANCIAR</option>
</tr>
<tr><td></td><td><input type="submit" name="submit" value="Cauta"></td></tr>
</table>
<br>
<table>
<tr>
<td><img src="imagini\acroread.png" name="pdf" height="30" width="30"></td>
<td><img src="imagini\excel8.png" name="xls"  height="30" width="30"></td>
<td><img src="imagini\text.png" name="txt"  height="30" width="30"></td>
</tr>
<tr>
<td><input type="radio" name="format"  value="pdf" checked  > </td>
<td><input type="radio" name="format" value="xls"disabled> </td>
<td><input type="radio" name="format" value="txt" disabled > </td>
</tr>
</table>
</form>
<hr>
<?php
									if (isset($_POST['submit']))
									{
										if (($_POST['tip']=='FINANCIAR')&&($_POST['format']=='pdf'))
										{
										$document='pdf/fisa_financiara.php';
										}

										if (($_POST['tip']=='OPERATIUNI')&&($_POST['format']=='pdf'))
										{
										$document='pdf/fisa_operatiuni.php';
										}

										if (($_POST['tip']=='EXTRAS_CONT')&&($_POST['format']=='pdf'))
										{
										$document='pdf/extras_de_cont.php';
										}



									$_SESSION['id_bo']=$_POST['id_bo'];
									$_SESSION['dataStart']=$_POST['dataStart'];
									$_SESSION['dataEnd']=$_POST['dataEnd'];
								    
													[color=red]echo "<SCRIPT LANGUAGE='javascript'>
														<!--
														window.open ('$document')
														-->
														</SCRIPT>";[/color]

									}

}
		else
		{
		echo "verificati userul si parola</br>";
		echo "<a href='index.html'>BACK</a>";
		}


?>
</body>

Link to comment
https://forums.phpfreaks.com/topic/117492-internet-explorer-erorr/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.