kostenloser Webspace werbefrei: lima-city


Problem mit dem IE

lima-cityForumProgrammiersprachenPHP, MySQL & .htaccess

  1. Autor dieses Themas

    n********r

    Hier ich habe folgenden Script:

    <?php
    if(isset($_POST["register"]))
    {
      	include("function/function/verbindung.php");
    
    $sql = "UPDATE user SET email = '".$_POST['email']."', vorname ='".$_POST['vorname']."', nachname = '".$_POST['nachname']."',
    gender = '".$_POST['gender']."', geb_d = '".$_POST['geb_d']."', geb_m = '".$_POST['geb_m']."', geb_y = '".$_POST['geb_y']."',
    interessen = '".$_POST["interessen"]."', job = '".$_POST['job']."', icq = '".$_POST["icq"]."', aim = '".$_POST["aim"]."',
    yahoo = '".$_POST["yahoo"]."', msn = '".$_POST["msn"]."', skype = '".$_POST["skype"]."', irc = '".$_POST["irc"]."',
    homepage = '".$_POST["homepage"]."', get_pm = '".$_POST["get_pm"]."', get_newsletter = '".$_POST["get_newsletter"]."',
    online = '".$_POST["online"]."', new_posts_info = '".$_POST["new_posts_info"]."', threads_site = '".$_POST["threads_site"]."',
    posts_site = '".$_POST["posts_site"]."', members_site = '".$_POST["members_site"]."', signatur = '".$_POST["signatur"]."', avatar = '".$_POST["avatar"]."'
    WHERE username ='".$_SESSION["user_username"]."' AND password ='".$_SESSION["user_password"]."' AND id ='".$_SESSION["user_id"]."'";
    mysql_query($sql) OR die(mysql_error());
    
    	echo "<meta http-equiv=\"refresh\" content=\"0 function/user/profil_ready.php\">";
    }
      	include("function/function/verbindung.php");
    	include("function/function/mail.php");
    
    	$sql = "SELECT * FROM user WHERE password = '".$_SESSION["user_password"]."' AND username = '". $_SESSION["user_username"] ."'";
    	$result = mysql_query($sql) or die(mysql_error().'<br />Query: '.$sql);
    	while ($profil = mysql_fetch_array($result)) {
    			$email = $profil["email"];
    			$vorname = $profil["vorname"];
    			$nachname = $profil["nachname"];
    			$gender = $profil["gender"];
    			$interessen = $profil["interessen"];
    			$job = $profil["job"];
    			$icq = $profil["icq"];
    			$aim = $profil["aim"];
    			$yahoo = $profil["yahoo"];
    			$msn = $profil["msn"];
    			$skype = $profil["skype"];
    			$irc = $profil["irc"];
    			$get_pm = $profil["get_pm"];
    			$get_newsletter = $profil["get_newsletter"];
    			$online = $profil["online"];
    			$new_posts_info = $profil["new_posts_info"];
    			$new_pm_info = $profil["new_pm_info"];
    			$homepage = $profil["homepage"];
    			$signatur = $profil["signatur"];
    			$avatar = $profil["avatar"];
    			$threads_site = $profil["threads_site"];
    			$posts_site = $profil["posts_site"];
    			$members_site = $profil["members_site"];
    			$geb_d = $profil["geb_d"];
    			$geb_m = $profil["geb_m"];
    			$geb_y = $profil["geb_y"];
    
    	}
    	echo'<center>
    <br>
    <form action="forum.php?action=profil" name="register" method="post">
    <table class="small" cellspacing="0">
    	<tr>
    		<td colspan="2" class="a2"><b><br>Pflichtangaben</b></td>
    	</tr>
    				<tr>
    					<td class="a0">E-Mail: </td><td class="a0"><input type="text" value="'.$email.'" name="email" class="register" size="30"></td>
    				</tr>
    
    	<tr>
    		<td colspan="2" class="a2"><b><br>Optionaleangaben</b></td>
    	</tr>
    				<tr>
    					<td class="a0">Vorname: </td><td class="a0"><input type="text" name="vorname" value="'.$vorname.'" class="register" size="30"></td>
    				</tr>
    				<tr>
    					<td class="a1">Nachname: </td><td class="a1"><input type="text" name="nachname" value="'.$nachname.'" class="register" size="30"></td>
    				</tr>
      				<tr>
        				<td class="a0">Geschlecht</td>
    										<td class="a0"><input type="radio" name="gender" value="0"' . ($gender == 0 ? ' checked="checked"' : '') . ' checked>m?nnlich&nbsp;
    										<input type="radio" name="gender" value="1"' . ($gender == 1? ' checked="checked"' : '') . '>weiblich
    										</td>
    					</tr>
      				<tr>
        				<td class="a1">Geburtstag</td>
    					<td class="a1">
    	  				<select name="geb_d">';
    					for ($i = 1; $i <= 31; $i++) {
    					if($i == $geb_d)
    					{
    					echo "<option value=\"".$i."\" selected>".$i."</option><br>";
    					}
    					else
    					{
    					echo "<option value=\"".$i."\">".$i."</option><br>";
    					}
    					}
    					echo'
    	  				</select>&nbsp;.
    	  				<select name="geb_m">
    	  				<option value="1"' . ($geb_m == 1? ' selected="selected"' : '') . '>Januar</option>
    					<option value="2"' . ($geb_m == 2? ' selected="selected"' : '') . '>Februar</option>
    					<option value="3"' . ($geb_m == 3? ' selected="selected"' : '') . '>M?rz</option>
    					<option value="4"' . ($geb_m == 4? ' selected="selected"' : '') . '>April</option>
    					<option value="5"' . ($geb_m == 5? ' selected="selected"' : '') . '>Mai</option>
    					<option value="6"' . ($geb_m == 6? ' selected="selected"' : '') . '>Juni</option>
    					<option value="7"' . ($geb_m == 7? ' selected="selected"' : '') . '>Juli</option>
    					<option value="8"' . ($geb_m == 8? ' selected="selected"' : '') . '>August</option>
    					<option value="9"' . ($geb_m == 9? ' selected="selected"' : '') . '>September</option>
    					<option value="10"' . ($geb_m == 10? ' selected="selected"' : '') . '>Oktober</option>
    					<option value="11"' . ($geb_m == 11? ' selected="selected"' : '') . '>November</option>
    					<option value="12"' . ($geb_m == 12? ' selected="selected"' : '') . '>Dezember</option>
    	 				</select>&nbsp;.
    	  				<select name="geb_y">';
    					for ($i = 1900; $i <= 2005; $i++) {
    					if($i == $geb_y)
    					{
    					echo "<option value=\"".$i."\" selected>".$i."</option><br>";
    					}
    					else
    					{
    					echo "<option value=\"".$i."\">".$i."</option><br>";
    					}
    					}
    					echo'</select>
    				</td>
     			 </tr>
    			 <tr>
    			 	<td class="a0">Interessen,Hobbys,Freizeit:</td><td class="a0"><textarea class="register" name="interessen" value="'.$interessen.'" cols="28" rows="5"></textarea></td>
    			 </tr>
    			 <tr>
    			 	<td class="a1">Besch?ftigung</td><td class="a1"><input type="text" name="job" value="'.$job.'" class="register" size="30"></td>
    		 	</tr>
    			 <tr>
    			 	<td class="a0">ICQ - Adresse: </td><td class="a0"><input type="text" name="icq" value="'.$icq.'" class="register" size="30"></td>
    		 	</tr>
    			 <tr>
    			 	<td class="a1">AIM - Adresse: </td><td class="a1"><input type="text" name="aim" value="'.$aim.'" class="register" size="30"></td>
    		 	</tr>
    			 <tr>
    			 	<td class="a0">YAHOO - Adresse: </td><td class="a0"><input type="text" name="yahoo" value="'.$yahoo.'" class="register" size="30"></td>
    			 </tr>
    			 <tr>
    			 	<td class="a1">MSN - Adresse: </td><td class="a1"><input type="text" name="msn" value="'.$msn.'" class="register" size="30"></td>
    			 </tr>
    			 <tr>
    			 	<td class="a0">Skype - Adresse: </td><td class="a0"><input type="text" name="skype" value="'.$skype.'" class="register" size="30"></td>
    			 </tr>
    			 <tr>
    			 	<td class="a1">irc: </td><td class="a1"><input type="text" name="irc" value="'.$irc.'" class="register" size="30"></td>
    			 </tr>
    			 <tr>
    			 	<td class="a0">Homepage: </td><td class="a0"><input type="text" name="homepage" value="'.$homepage.'" class="register" size="30"></td>
    			 </tr>
    	<tr>
    		<td colspan="2" class="a2"><b><br>Forumangaben</b></td>
    	</tr>
    			  <tr>
        				<td class="a1">Privatmitteilungen empfangen?</td>
    					<td class="a1"><input type="radio" name="get_pm" value="0"' . ($get_pm == 0 ? ' checked="checked"' : '') . ' checked>Ja&nbsp;
    					<input type="radio" name="get_pm" value="1"' . ($get_pm == 1? ' checked="checked"' : '') . '>Nein
    					</td>
    			</tr>
    			  <tr>
        				<td class="a0">Newsletter empfangen?</td>
    					<td class="a0"><input type="radio" name="get_newsletter" value="0"' . ($get_newsletter == 0 ? ' checked="checked"' : '') . ' checked>Ja&nbsp;
    					<input type="radio" name="get_newsletter" value="1"' . ($get_newsletter == 1? ' checked="checked"' : '') . '>Nein
    					</td> 				</tr>
    			  <tr>
        				<td class="a1">Onlinestatus verstecken?</td>
    					<td class="a1"><input type="radio" name="online" value="0"' . ($online == 0 ? ' checked="checked"' : '') . ' checked>Ja&nbsp;
    					<input type="radio" name="online" value="1"' . ($online == 1? ' checked="checked"' : '') . '>Nein
    					</td>
    					</tr>
    				<tr>
        				<td class="a0">Benachrichtigen bei neuem Beitrag?</td>
    					<td class="a0"><input type="radio" name="new_posts_info" value="0"' . ($new_posts_info == 0 ? ' checked="checked"' : '') . ' checked>Ja&nbsp;
    					<input type="radio" name="new_posts_info" value="1"' . ($new_posts_info == 1? ' checked="checked"' : '') . '>Nein
    					</td> 				</tr>
    				<tr>
    					<td class="a1">Benachrichtigen bei neuer PM?</td>
    					<td class="a1"><input type="radio" name="new_pm_info" value="0"' . ($new_pm_info == 0 ? ' checked="checked"' : '') . ' checked>Ja&nbsp;
    					<input type="radio" name="new_pm_info" value="1"' . ($new_pm_info == 1? ' checked="checked"' : '') . '>Nein
    					</td>
    				</tr>
    				<tr>
        				<td class="a0">Themen pro Seite</td>
    					<td class="a0">
    	  				<select name="threads_site">';
    					for ($i = 5; $i <= 100; $i = $i + 5) {
    					if($i == $threads_site)
    					{
    					echo "<option value=\"".$i."\" selected>".$i."</option><br>";
    					}
    					else
    					{
    					echo "<option value=\"".$i."\">".$i."</option><br>";
    					}
    					}
    					echo'
    					</select>
    					</td>
    				</tr>
    				<tr>
        				<td class="a1">Posts pro Seite</td>
    					<td class="a1">
    	  				<select name="posts_site">';
    					for ($i = 5; $i <= 100; $i = $i + 5) {
    					if($i == $posts_site)
    					{
    					echo "<option value=\"".$i."\" selected>".$i."</option><br>";
    					}
    					else
    					{
    					echo "<option value=\"".$i."\">".$i."</option><br>";
    					}
    					}
    					echo'</select>
    					</td>
    				</tr>
    				<tr>
        				<td class="a0">Mitglieder pro Seite</td>
    					<td class="a0">
    	  				<select name="members_site">';
    					for ($i = 5; $i <= 100; $i = $i + 5) {
    					if($i == $members_site)
    					{
    					echo "<option value=\"".$i."\" selected>".$i."</option><br>";
    					}
    					else
    					{
    					echo "<option value=\"".$i."\">".$i."</option><br>";
    					}
    					}
    					echo'</select>
    					</td>
    				</tr>
    			 <tr>
    			 	<td class="a1">Signatur:</td><td class="a1"><textarea class="register" name="signatur" value="'.$signatur.'" cols="28" rows="5"></textarea></td>
    			 </tr>
    			 <tr>
    			 	<td class="a0">Avatar: </td><td class="a0"><input type="text" name="avatar" value="'.$avatar.'" class="register" size="30"></td>
    			 </tr>
    	<tr>
    		<td colspan="2" class="a2"><center><input type="submit" name="register" value="Registrieren" class="register" size="30"></center></td>
    	</tr>
    </table>
    </form>
    </center>';
    ?>


    Also mein Problem ist das. Im Firefox ?ndert er die Daten und geht dann zur Seite forum.php.
    Aber im IE werden nur die Seiten ge?ndert und sie springt aber nicht zurkc zur anderen Seite.
    Was ist der Fehler
  2. Diskutiere mit und stelle Fragen: Jetzt kostenlos anmelden!

    lima-city: Gratis werbefreier Webspace für deine eigene Homepage

  3. Autor dieses Themas

    n********r

    habe festgestellt, das es wohl an diesem Eintrag liegen muss, wei? aber net warum:

    echo "<meta http-equiv=\"refresh\" content=\"0 function/user/profil_ready.php\">";
  4. a******9

    also, wenns nur im firefox geht und im ie nich, dann liegts wohl nich an einem php teil...
    versuchs mal so:
    echo '<meta http-equiv=\'refresh\' content=\'0; URL=function/user/profil_ready.php\'>';

  5. Autor dieses Themas

    n********r

    Danke das war das Problem.
    Jetzt klappt wieder alles.
  6. Diskutiere mit und stelle Fragen: Jetzt kostenlos anmelden!

    lima-city: Gratis werbefreier Webspace für deine eigene Homepage

Dir gefällt dieses Thema?

Über lima-city

Login zum Webhosting ohne Werbung!