craigeves Posted May 20, 2008 Share Posted May 20, 2008 Hi - Can anyone help? I'm viewing my site in IE6 (!) and the PHP pages wont load unless i click 'Refresh'. Can anyone lend a solution or some advise? The URL is http://www.canyoucome.com/sites/dev/ The username is: laurag The password is: *removed* Many thanks in advance Craig edit removed password Quote Link to comment https://forums.phpfreaks.com/topic/106484-php-wont-load-unless-i-refresh/ Share on other sites More sharing options...
MadTechie Posted May 20, 2008 Share Posted May 20, 2008 Posting your username and password is risky at best, in anycase, it would seam to be a problem with the CMS code, your need to post the code which has the problem Quote Link to comment https://forums.phpfreaks.com/topic/106484-php-wont-load-unless-i-refresh/#findComment-545810 Share on other sites More sharing options...
bilis_money Posted May 20, 2008 Share Posted May 20, 2008 sorry i don't have IE6 here. but it work properly under my IE7. Quote Link to comment https://forums.phpfreaks.com/topic/106484-php-wont-load-unless-i-refresh/#findComment-545814 Share on other sites More sharing options...
paulman888888 Posted May 20, 2008 Share Posted May 20, 2008 Its properly your IE not the script. My advise get an update or a new pc or FIREFOX Quote Link to comment https://forums.phpfreaks.com/topic/106484-php-wont-load-unless-i-refresh/#findComment-546043 Share on other sites More sharing options...
craigeves Posted May 21, 2008 Author Share Posted May 21, 2008 Posting your username and password is risky at best, in anycase, it would seam to be a problem with the CMS code, your need to post the code which has the problem Hi - My code is below, although it happens on every page, which is weird. <? session_start(); extract($_REQUEST, EXTR_OVERWRITE); $uname=$_REQUEST['uname']; $upass=$_REQUEST['upass']; //echo $uname;die(); if (!isset($uname)) { ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Can You Come? Content Manager</title> <link href="assets/cpstyleslogin.css" rel="stylesheet" type="text/css" /> </head> <body id="cmhomepage"> <div id="wrapper"> <div id="header"></div> <div id="subheader">Content Manager</div> <div id="pagetitle">Login</div> <div id="content"> <div id="rightcolumn"><form action="logadm.php" method="post" > <table width="300" align="center" cellpadding="5" cellspacing="5"> <tr> <td class="rowBody">Username: <td><input type=text name="uname"> <tr> <td class="rowBody">Password: <td><input type=password name="upass"> <tr> <td colspan=2 align=center> <div align="center"> <input type=submit value="Login" size=20 class="button"> <? } else { $_SESSION['uname'] = strtolower($uname); $_SESSION['upass'] = $upass; header('location: main_admin.php'); }?> </table> </form> </div> </div> <div id="footer"> <?php include("footer.php"); ?> </div> </div> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/106484-php-wont-load-unless-i-refresh/#findComment-546368 Share on other sites More sharing options...
craigeves Posted May 21, 2008 Author Share Posted May 21, 2008 Its properly your IE not the script. My advise get an update or a new pc or FIREFOX It's not my IE6, it happens on every IE6 for some reason, my computer is new also. On the note of using Firefox, as a web developer and designer my designs should work cross browser. In todays world you should never design for just one platform. Quote Link to comment https://forums.phpfreaks.com/topic/106484-php-wont-load-unless-i-refresh/#findComment-546370 Share on other sites More sharing options...
MadTechie Posted May 21, 2008 Share Posted May 21, 2008 Yeah i agree its not likely to be your IE6, anyways, try this <?php if(!empty($_POST['uname']) && !empty($_POST['upass'])) { session_start(); $_SESSION['uname'] = strtolower($_POST['uname']); $_SESSION['upass'] = $_POST['upass']; header('location: main_admin.php'); exit(); } ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Can You Come? Content Manager</title> <link href="assets/cpstyleslogin.css" rel="stylesheet" type="text/css" /> </head> <body id="cmhomepage"> <div id="wrapper"> <div id="header"></div> <div id="subheader">Content Manager</div> <div id="pagetitle">Login</div> <div id="content"> <div id="rightcolumn"><form action="logadm.php" method="post" > <table width="300" align="center" cellpadding="5" cellspacing="5"> <tr> <td class="rowBody">Username: <td><input type=text name="uname"> <tr> <td class="rowBody">Password: <td><input type=password name="upass"> <tr> <td colspan=2 align=center> <div align="center"> <input type=submit value="Login" size=20 class="button"> </table> </form> </div> </div> <div id="footer"> <?php include("footer.php"); ?> </div> </div> </body> </html> EDIT: revised to make is easier to edit later Quote Link to comment https://forums.phpfreaks.com/topic/106484-php-wont-load-unless-i-refresh/#findComment-546374 Share on other sites More sharing options...
craigeves Posted May 22, 2008 Author Share Posted May 22, 2008 Actually looking at this again, the page that i previously quoted appears fine. This page and subsequent pages have the issue: Here is the code: <?php session_start(); extract($_REQUEST, EXTR_OVERWRITE); include ("func.php"); $uname= $_SESSION['uname']; $upass= $_SESSION['upass']; if(!auth_adm($uname, $upass)>0) header('Location:logadm.php?err=1'); $adminid=auth_adm($uname, $upass); $sql="select * from admin where id='$adminid'"; $rez=mysql_query($sql,$dblnk); $row=mysql_fetch_array($rez); $name=$row['name']; ?> <html> <head> <script> function confirmSubmit() { var agree=confirm("Are you sure you wish to delete it?"); if (agree) return true ; else return false ; } </script> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Can You Come? Content Manager</title> <link href="assets/cpstylesnew.css" rel="stylesheet" type="text/css" /> </head> <body id="events"> <div id="wrapper"> <div id="header"> <div id="topnavigation"> <ul> <li><a href="index.php" target="_blank">View Your Website</a></li> </ul> </div> </div> <div id="subheader">Content Manager</div> <div id="pagetitle">Logged in as <? echo $name;?></div> <div id="content"> <div id="navigation"> <?php include("cpanel_nav.php"); ?> </div> <div id="rightcolumn"> <h1>Manage Events</h1> <p><a href="add_event.php">Add Event</a></p> <table width="658" cellpadding="10"> <tr> <td class="rowheader">Current Events</td> <? $sql="select * from event order by event_date asc"; $rez=mysql_query($sql,$dblnk); while($row=mysql_fetch_array($rez)){ ?> <tr> <td width="413" valign="top" bgcolor="#E6EEEB" class="rowbody"><p><span class="eventname"><? echo $row['event'];?> </span></p> <p>RSVP Enabled: <? if($row['rsvp']==1) echo "Yes"; else echo "No"; ?> <br> Attending: <a href="att.php?event=<? echo $row['event'];?>&id=<? echo $row['id'];?>" class="links">Show</a> <br> Not Attending: <a href="unatt.php?event=<? echo $row['event'];?>&id=<? echo $row['id'];?>" class="links">Show</a></p> <p><a href="edit_event.php?id=<? echo $row['id']?>" class="links">Edit</a><br> <a href="delete.php?id=<? echo $row['id']?>" class="links" onClick="return confirmSubmit();">Delete</a> <? } ?> </p> </table> </div> </div> <div id="footer"> <?php include("footer.php"); ?> </div> </div> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/106484-php-wont-load-unless-i-refresh/#findComment-547173 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.