我的问题很简单,但我找不到解决方案 我可以使用safari,opera和chrome插入数据库,但无法在Internet Explorer和firefox中插入内容 一些帮助将不胜感激
if (isset($_SESSION['pseudo']) && isset($_SESSION['pass'])){ // people connected or not
if(mysql_result($res,0)==0 ) {// if key doesn't appear in database, show add button
?>
<form method="post" action="">
<input type="image" src="../../images/favoris.png" name="insert" class="insert" value="insert">
</form>
<?php
}else{ ?>
<form method="post" action="">
<input type="image" src="../../images/delete.png" name="delete" class="delete" value="delete">
</form>
<?php
}
}
if (isset($_POST['insert']) ) // if button add is clicked, all informations will be add in database
{
$sql = "INSERT INTO favoris (id, client, profil, photo, prenom, reference, age, lien) VALUES('','$pseudo' ,'$pseudo$referenceBase','$photoBase','$prenomBase', '$referenceBase', '$ageBase','$lienBase')";
mysql_query($sql) or die('Erreur SQL ! '.$sql.'<br>.mysql_error());
echo '<p style= "position: absolute; color: #b9121b; margin-left: 170px; margin-top: 366px"> Profil added!</p>
<script type="text/javascript"> window.setTimeout("location=(\'\');",1000) </script>';}
else{
'<SCRIPT LANGUAGE="JavaScript">document.location.href="../../index.php"</SCRIPT>';
}