script doesn't work in netscape

From: Date: Thu, 08 Feb 2001 23:52:11 +0000
Subject: script doesn't work in netscape
Groups: php.general 
Request: Send a blank email to php-general+get-38846@lists.php.net to get a copy of this message
When people log into the website in question, it passes the user ID and password to the login.php3 file, (included below). It works just fine in IE, but in Netscape (tested on 4.7) it gives a blank white screen. If we view source, all of the source code is there, and it shows no errors (errors flash in the source code in netscape) but it will not display in the screen. Any idea what the problem is? Is it in the code I have below? Any help greatly appreciated. -----------------login.php3--------------------------- <HTML><BODY> <?php switch ($position) { case "process": require('logon.inc'); $query = "select userid, company, active from registration where userid='$userid' and password='$password'"; $result = mysql_query($query); $row = @mysql_fetch_array($result); //test section start //print ("Id entered by user is $userid<br>"); //print ("Id retrieved from database is"); //print $row["userid"]; //print ("<br>"); //test section end if ($row["userid"] == $userid) { if ($row["active"] =="YES") { ?> <html><head></head><body bgcolor="#FFFFFF"> <center> <table valign=top nowrap> <tr> <td> <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0 ,0" ID=ptac WIDTH=393 HEIGHT=272 ALIGN=top> <PARAM NAME=movie VALUE="ptacwebsite.swf"> <PARAM NAME=loop VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="ptacwebsite.swf" quality=high bgcolor=#FFFFFF loop=false WIDTH=393 HEIGHT=272 ALIGN=top TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_ Version=ShockwaveFlash"> </EMBED> </OBJECT> </td> <td> <Center> Welcome back to the ColoradoPTAC website, <?PHP print $row['company']; ?>.<br><br> Please click <a href="registered/registered.html" target="_top">here</a> to complete the login process and begin using the site. </center> </td> </tr> <table> <?php } else { ?> <html><head></head><body bgcolor="#FFFFFF"> <center> <B> Your account has temporarily been disabled by the system administrator. If you feel this was done by mistake, please send an email to <a href="mailto:registration@coloradoptac.org"> registration@coloradoptac.org</a> to resolve the issue.<BR><BR> We apologize for any inconvenience this has caused. </B> </center> <?php } } else { ?> <html><head></head><body bgcolor="#FFFFFF"> <center> <B> Either you do not currently have a membership with us or you have entered an invalid Member ID/Password combination.<br><br> Please click <a href="register/register.htm" target="_top">here</a> to join<br><br>-OR-<br><br>Click <a href="index.htm">here</a> to try again. </B> </center> <?php } } ?> </BODY></HTML> ----------------------login.php3-------------------------------- Erik

« previous php.general (#38846) next »