Goedendag,

Ik heb een probleem met mijn website.
Ik ben bezig met het maken van een hyvesachtige profielensite,
maar nu heb ik het probleem dat $_POST['gegevens'] niet
wordt ingelezen in firefox. IE doet het wel.
Zie links: http://84.87.181.33/Klas 3e/pp/standaard/
en http://84.87.181.33/Klas 3e/pp/standaard/pimpen.php

Broncode pimpen.php:

<html>
<head>
<script type="text/javascript" src="forms.js"></script>
<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>





</head>
<body>
<? 



# De datum van vadaag:
$datum = date('d/m/Y'); 

# Als je geen bericht post:
if ($_SERVER['REQUEST_METHOD'] !== "POST") 
 {
 # Formulier om een bericht te posten:
?>

<font face="Calibri">

<TABLE BORDER="0" ALIGN="left">
<TR>
<TD WIDTH="225"><h3>Wijzig hier je pagina:</h3>Let op: alvorens je pagina te wijzigen wordt aangeraden deze style op te slaan.</TD>

</TR>
<TR>
<TD WIDTH="225">Styles:</TD>
<td><form name="form12" id="form12">
  <select name="styles" onchange="MM_jumpMenu('parent',this,0)">
      <option></option>
    <option value="http://localhost/Klas 3e/pp/standaard/writestyleparis.php">Paris by night</option>
        <option value="http://localhost/Klas 3e/pp/standaard/writestyleparis.php">Shoppen in Amsterdam</option>
            <option value="http://localhost/Klas 3e/pp/standaard/writestyleparis.php">Paris by night</option>
                <option value="http://localhost/Klas 3e/pp/standaard/writestyleparis.php">Paris by night</option>
  </select>
</form></td>
</TR>





<tr>
	<td class="question"><label for="country_other"><form name='form1'    method='POST' action='write.php'> <input type='hidden' name='status' value='verzenden'> 
Achtergrond van de pagina:</label></td>
	<td>
		<input type="radio"  name="country_other" id="1" rel="other_country" value="1" <?php $image = file_get_contents('achtergrondimage2.k4e'); if ( $image == "ja" ) { } else { echo 'checked="checked"'; } ?> />Kleur<br>
				<input type="radio"  name="country_other" id="2" rel="other_country3" value="2" <?php $image = file_get_contents('achtergrondimage2.k4e');   if ( $image == "ja" ) {echo 'checked="checked"'; } else {  } ?> />Afbeelding
			

	</td>
</tr>
<tr rel="other_country">
<?php $rel = 1 ?>
	<td class="question"><label for="other_country">
		<span class="accessibility">If not the Netherlands:</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kleur:</label></td>
	<td><input type="text" value='<?php $achtergrondcolor = file_get_contents('achtergrondcolor.k4e'); echo $achtergrondcolor; ?>' id="color3" name ="color3" size="12"><input id="colora3" type="button" value="" style="cursor:pointer;width:22px;height:22px;border:1px inset gray;background-color:'<?php $achtergrondcolor = file_get_contents('achtergrondcolor.k4e'); echo $achtergrondcolor; ?>'"  onclick="ShowLayer(3);"></td>

</tr>
<tr rel="other_country3">
<?php $rel = 2 ?>
	<td class="question"><label for="other_country">
		<span class="accessibility">If not the Netherlands:</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Afbeelding:</label></td>
	<td> <select name="menu1" >
    <option>[ Kies uw afbeelding ]</option>
    <?php
session_start();
$map1 = 'Afbeeldingen';
$map2 = '../Afbeeldingen';
$name1 = '<optgroup label="Opgeslagen afbeeldingen"></optgroup>';
$name2 = '<optgroup label="Eigen afbeeldingen"></optgroup>';

echo $name1;

 if ($handle = opendir($map2)) {
           while (false!=($file=readdir($handle))) {
               if($file != "." && $file != ".." && $file != ".htaccess" && !ereg("php", $file)){
                 
echo "<option value="; $echootje = $map2 . "/" . $file; echo $echootje;
$image111 = file_get_contents('achtergrondimage.k4e'); if ( $image111 == $echootje ) { echo ' selected >'; } else { echo '>'; } echo $file; echo "</option>";
               }
           }
   closedir($handle); 
        }   
        
echo $name2;

 if ($handle = opendir($map1)) {
           while (false!=($file=readdir($handle))) {
               if($file != "." && $file != ".." && $file != ".htaccess" && !ereg("php", $file)){
                 
echo "<option value="; $echootje2 = $map1 . "/" . $file; echo $echootje2; $image111 = file_get_contents('achtergrondimage.k4e'); if ( $image111 == $echootje2 ) { echo ' selected >'; } else { echo '>'; } echo $file; echo "</option>";
               }
           }
   closedir($handle); 
        }   

        
?>  
  </select></td>
</tr>
<tr rel="other_country3">
<?php $rel = 2 ?>
	<td class="question"><label for="other_country">
		<span class="accessibility">If not the Netherlands:</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Alternatieve kleur:</label></td>
	<td><input type="text" value='<?php $achtergrondcolor = file_get_contents('achtergrondcolor.k4e'); echo $achtergrondcolor; ?>' id="color3" name ="color3" size="12"><input id="colora3" type="button" value="" style="cursor:pointer;width:22px;height:22px;border:1px inset gray;background-color:'<?php $achtergrondcolor = file_get_contents('achtergrondcolor.k4e'); echo $achtergrondcolor; ?>'"  onclick="ShowLayer(3);"></td>

</tr>
<tr rel="other_country3">
<?php $rel = 2 ?>
	<td class="question"><label for="other_country">
		<span class="accessibility">If not the Netherlands:</span>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Positie:</label></td>
	<td><select name="positie2">
	    <option value="[ Kies een positie ]" class="Arial">[ Kies een positie ]</option>
    <option value="left" class="Arial" <?php $uitlijning = file_get_contents('uitlijning.k4e'); if ( $uitlijning == "left" ) { echo ' selected >'; } else { echo '>'; } ?>Links</option>
        <option value="right" class="Calibri" <?php $uitlijning = file_get_contents('uitlijning.k4e'); if ( $uitlijning == "right" ) { echo ' selected >'; } else { echo '>'; } ?>Rechts</option>
            <option value="denter" class="Comic" <?php $uitlijning = file_get_contents('uitlijning.k4e'); if ( $uitlijning == "center" ) { echo ' selected >'; } else { echo '>'; } ?>Midden</option>
       
</select></tr>
<tr rel="other_country3">
<?php $rel = 2 ?>
	<td class="question"><label for="other_country">
		<span class="accessibility">If not the Netherlands:</span>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Herhalen:</label></td>
	<td><select name="herhalen">
	    <option value="[ Kies een herhaaloptie ]" class="Arial">[ Kies een herhaaloptie ]</option>
	       <option value="no-repeat" class="Arial" <?php $repeat = file_get_contents('repeat.k4e'); if ( $repeat == "no-repeat" ) { echo ' selected >'; } else { echo '>'; } ?>Achtergrond niet herhalen</option>
  
    <option value="repeat" class="Arial" <?php $repeat = file_get_contents('repeat.k4e'); if ( $repeat == "repeat" ) { echo ' selected >'; } else { echo '>'; } ?>Achtergrond in alle richtingen herhalen</option>
        <option value="repeat-x" class="Calibri" <?php $repeat = file_get_contents('repeat.k4e'); if ( $repeat== "repeat-x" ) { echo ' selected >'; } else { echo '>'; } ?>Achtergrond horizontaal herhalen</option>
            <option value="repeat-y" class="Comic" <?php $repeat = file_get_contents('repeat.k4e'); if ( $repeat == "repeat-y" ) { echo ' selected >'; } else { echo '>'; } ?>Achtergrond verticaal herhalen</option>
       
</select></tr>
<tr rel="other_country3">
<?php $rel = 2 ?>
	<td class="question"><label for="other_country">
		<span class="accessibility">If not the Netherlands:</span>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fixeren:</label></td>
	<td><select name="fixing">
	    <option value="[ Kies een fixeeroptie ]" class="Arial">[ Kies een fixeeroptie ]</option>
	       <option value="scroll" class="Arial" <?php $fixing = file_get_contents('fixing.k4e'); if ( $fixing == "scroll" ) { echo ' selected >'; } else { echo '>'; } ?>Achtergrond niet fixeren (meescrollen)</option>
  
    <option value="fixed" class="Arial" <?php $fixing = file_get_contents('fixing.k4e'); if ( $fixing == "fixed" ) { echo ' selected >'; } else { echo '>'; } ?>Achtergrond fixeren (niet meescrollen)</option>
       
</select></tr>



<tr>
	<td class="question2"><label for="country_other2">Lettertype:</label></td>
	<td>
	
	</td>
</tr>
<tr>
	<td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Lettertype:</label></td>
	<td><select name="Lettertype">
		    <option value="[ Kies een lettertype ]" class="Arial">[ Kies een lettertype ]</option>
    <option value="Arial" class="Arial" <?php $image5 = file_get_contents('font.k3e'); if ( $image5 == "Arial" ) { echo ' selected >'; } else { echo '>'; } ?>Arial</option>
        <option value="Calibri" class="Calibri" <?php $image5 = file_get_contents('font.k3e'); if ( $image5 == "Calibri" ) { echo ' selected >'; } else { echo '>'; } ?>Calibri</option>
            <option value="Comic" class="Comic" <?php $image5 = file_get_contents('font.k3e'); if ( $image5 == "Comic" ) { echo ' selected >'; } else { echo '>'; } ?>Comic Sans</option>
            <option value="Times" class="times" <?php $image5 = file_get_contents('font.k3e'); if ( $image5 == "Times" ) { echo ' selected >'; } else { echo '>'; } ?>Times</option>
                <option value="Verdana" class="Verdana" <?php $image5 = file_get_contents('font.k3e'); if ( $image5 == "Verdana" ) { echo ' selected >'; } else { echo '>'; } ?>Verdana</option>

</select></tr>
<tr>
	<td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kleur:</label></td>
	<td><input type="text" value='<?php $fontcolor = file_get_contents('fontcolor.k3e'); echo $fontcolor; ?>' id="color10" name ="color10" size="12"><input id="colora10" type="button" value="" style="cursor:pointer;width:22px;height:22px;border:1px inset gray;background-color:'<?php $fontcolor = file_get_contents('fontcolor.k3e'); echo $fontcolor; ?>'"  onclick="ShowLayer(10);"></td>
</tr>

<TR>
<TD><input type='submit' target='_self' onclick="write.php"  value='Wijzigingen doorvoeren' name='B1'></TD>
<TD><input type='submit' onclick="window.open('preview.php');" value='Preview' name='B1'></TD>
</TR>

</TABLE>



  <!--COLOR PICKER WIDGET BEGIN -->
<div style="position:absolute;border:1px solid black;background-color:white;display:none;width:340px;height:420px;color:#000000;" id="main" imgLoc="">
</div>
<script language="JavaScript" src="cpick.js"></script>
</div> <br> 



</form>





</font>
</body>
</html>




Broncode write.php:

<?php

error_reporting(E_ALL);
ini_set("display_errors", 1);



$menu = $_POST['menu1'];
$menulala = $_POST['positie2'];
$menu3 = $_POST['herhalen'];
$menu4 = $_POST['fixing'];
$fontkleur = $_POST['color10'];
$font = $_POST['Lettertype'];

if ($menu == "[ Kies uw afbeelding ]")
{

$place = "U moet een afbeelding selecteren!";
$place2 = "U wordt automatisch teruggestuurd.";
$bakje = '<font face="Calibri">' . $place . '<br>' . $place2 . '</font><meta http-equiv="refresh" content="2;URL=pimpen.php" />';
echo $bakje;
}
elseif ($menulala == "[ Kies een positie ]")
{

$place = "U moet een positie selecteren!";
$place2 = "U wordt automatisch teruggestuurd.";
$bakje = '<font face="Calibri">' . $place . '<br>' . $place2 . '</font><meta http-equiv="refresh" content="2;URL=pimpen.php" />';
echo $bakje;
}
elseif ($menu3 == "[ Kies een herhaaloptie ]")
{

$place = "U moet een herhaaloptie selecteren!";
$place2 = "Gemaakte instellingen zijn verloren gegaan";
$place3 = "U wordt automatisch teruggestuurd.";
$bakje = '<font face="Calibri">' . $place . '<br>' . $place2 . '<br>' . $place3 . '</font><meta http-equiv="refresh" content="2;URL=pimpen.php" />';
echo $bakje;
}
elseif ($menu4 == "[ Kies een fixeeroptie ]")
{

$place = "U moet een fixeeroptie selecteren!";
$place2 = "U wordt automatisch teruggestuurd.";
$bakje = '<font face="Calibri">' . $place . '<br>' . $place2 . '</font><meta http-equiv="refresh" content="2;URL=pimpen.php" />';
echo $bakje;
}

else
{




//Schrijf achtergrond

if ( $_POST['country_other'] != 1 ){
$country = $_POST['menu1'];
$fixing = $_POST['fixing'];
$herhalen = $_POST['herhalen'];
$positie = $_POST['positie2'];
$kleur = $_POST['color3'];
$country1 = $_POST['country_other'];
$country = stripslashes($country);
$trans5 = '' . $country . '';
$invoeg5 = "background: url($trans5) $fixing $kleur $positie $herhalen;";

$gba = "nee";
}
else{

$invoeg5 = '<BODY BACKGROUND="' . $menu . '"';
$gba = "ja";
}

$l = fopen('achtergrond.k3e',"w");
fwrite ($l, $invoeg5);
fclose($l);

$ll = fopen('repeat.k4e',"w");
fwrite ($ll, $herhalen);
fclose($ll);

$lll = fopen('fixing.k4e',"w");
fwrite ($lll, $fixing);
fclose($lll);

$llll = fopen('uitlijning.k4e',"w");
fwrite ($llll, $positie);
fclose($llll);

$lllll = fopen('achtergrondcolor.k4e',"w");
fwrite ($lllll, $kleur);
fclose($lllll);

$llllll = fopen('achtergrondimage.k4e',"w");
fwrite ($llllll, $country);
fclose($llllll);

if ($country1 == 2)
{


$lllllla = fopen('achtergrondimage2.k4e',"w");
fwrite ($lllllla, "ja");
fclose($lllllla);

}
else
{


$llllllaa = fopen('achtergrondimage2.k4e',"w");
fwrite ($llllllaa, "nee");
fclose($llllllaa);

}

$place = "Wijzigingen doorgevoerd!";
$place2 = "U wordt automatisch doorgestuurd.";
$bakje = '<font face="Calibri">' . $place . '<br>' . $place2 . '</font><meta http-equiv="refresh" content="2;URL=index.php" />';
echo $bakje;


}



?>


Alvast bedankt!



PS codes zijn ook hier te vinden http://84.87.181.33/codes.txt
Ik denk dat het belangrijk is dat je je form een method meegeeft, bijvoorbeeld <form method="POST" ... >
Ik meot toegeven dat de code zo slecht wordt weergegeven, maar dat stond er al in..
Rogier Nell schreef op 26.08.2009 09:59
Ik meot toegeven dat de code zo slecht wordt weergegeven, maar dat stond er al in..

het wordt gewoon NIET weergegeven, dat is weer wat anders...
zet anders even [ignore]
je script
[/ignore] tags om je code.

Reageren