Solved

Get blank page ?

Posted on 2013-06-14
8
251 Views
Last Modified: 2013-06-14
Hi!

Have this page:

<?php // RAY_EE_login.php
error_reporting(E_ALL);
require_once('RAY_EE_config.php');
$table1 = 'Spm_Lokasjon';
// ACCESS TO THIS PAGE IS TESTED BUT NOT CONTROLLED
if ($uid = access_control(TRUE))
{
   $brukerID = brukerident('xxx');
   $navn = $_GET['Navn'];
   $lokk = $_GET['lokk'];
   $svar = $_GET['Svar']   
   $kundeid = kundeid();
   
   $REGJN = $_GET['REGJN'];

   if ($Svar=='reg')   
   {
      $test=oppdaterlokasjonen($lokk,$kundeid);
   }
    if ($Svar=='Ja')   
   {
       $oppdatersp = oppdater_spmorsmal($lokk,$kundeid);
	   $stat_trans = transaksjoner($navn,10,'DETTE ER EN TEST',$lokk,$svar,'','','2013-05-05',$kundeid,$brukerID);
	   $sjekkomfleresp = sjekk_om_flere_sposmal($lokasjon,$kundeid);
	   if ($sjekkomfleresp=='0')
	   {
	      $lokk = hent_neste_kontroller($kundeid,$brukerID)
		  
		  header("location: http://www.softkey.no/webtest/side3.php?Navn=<?php echo {$navn}; ?>&lokk=<?php echo {$lokk}; ?>&IDENT=<?php echo {$brukerID}; ?>");
	      exit;
	   }
   }   
}
else
{
        header("location: login.php");
	    exit;
}
?>
<!DOCTYPE html>

<html>
<head>
<meta charset="utf-8" />
<title>Test system</title>

</head>

<body>
<link rel="stylesheet" href="default.css">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<br><br>
<table summary="Services, or Links box template" class="servicesT" cellspacing="1" border="0">
<tr><td colspan="2" class="servHd" height="40"><?php echo $navn;?></td></tr>

<?php
$result3 = mysql_query("SELECT Spm_id,SpmTekst FROM {$table1} WHERE status=0 and Lokasjons_id={$lokk} and Kunde_id='{$kundeid}'") or die(mysql_error());
while ($row3 = mysql_fetch_array($result3)){
    $spid = $row3['Spm_id'];
	$spmtekst = $row3['SpmTekst'];
?>
<tr>
	<td class="servBodLspm" ><?php echo $spmtekst; ?></td>
</tr>
<?php
}

?>

</table>
<br><br><br><br>
<table width="100%">
<tr>

<fieldset id="actions" width="100%">

<td width="50%" colspan="2">  <a href="http://www.softkey.no/webtest/sporsmal.php?lokk=<?php echo $lokk; ?>&Kunde=<?php echo $kundeid; ?>&Navn=<?php echo $navn; ?>&REGJN=1"><input type="submit" id="JAKNAPP" value="Ja"></a></td>
<td width="50%"><a href="http://www.softkey.no/webtest/sporsmal.php?lokk=<?php echo $lokk; ?>&Kunde=<?php echo $kundeid; ?>&Navn=<?php echo $navn; ?>&REGJN=1"><input type="submit" id="NEIKNAPP" value="Nei"></a></td>
</fieldset>
</tr>
</table>
</body>
</html>

Open in new window


This page gives me a blank page, and get no errors from PHP code ?

What is wrong here ?

Have tryed to delete all PHP-code, and then the page is shown up
0
Comment
Question by:team2005
  • 4
  • 3
8 Comments
 
LVL 29

Expert Comment

by:IrogSinta
ID: 39247500
Well it looks like the only way you'll see your html is if $Svar is equal to "Ja" and $sjekkomfleresp is not equal to "0" since you have exit functions on lines 30 and 37.
0
 
LVL 2

Author Comment

by:team2005
ID: 39247528
Hi!

No, that isent the problem here.
Tryed to remove all the exit to, but same result
0
 
LVL 29

Expert Comment

by:IrogSinta
ID: 39247653
Looks like you're also missing semicolons on lines 21 and 52.
0
 
LVL 2

Author Comment

by:team2005
ID: 39247678
?
Semicolon after -> 52: <br><br> ??
And
21: {   Here is a semicolon already
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 51

Expert Comment

by:Julian Hansen
ID: 39247697
Before line 29 and 36 pu

die(__LINE__);

i.e

28:             die(__LINE__);
29:               header("location: http://www.softkey.no/webtest/side3.php?Navn=<?php echo {$navn}; ?>&lokk=<?php echo {$lokk}; ?>&IDENT=<?php echo {$brukerID}; ?>");

36:            die(__LINE__);
37:            header("location: login.php");

Run again and see if you get a dump of a line number
0
 
LVL 29

Accepted Solution

by:
IrogSinta earned 500 total points
ID: 39247710
Sorry, my browser rendered the numbers wrong. I meant lines 11 & 27.
0
 
LVL 2

Author Comment

by:team2005
ID: 39247722
Hi!

Get out line number 1 ?
0
 
LVL 2

Author Closing Comment

by:team2005
ID: 39247774
Thanks, that did it :)
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now