hello...
my entire project is working fine.
but when i uploaded it on host..
it doesnt work..
prb arise when i enter correct username and password..
thenafter i doesn;t get redirected to destined page
thanks
9 2675
Give us the code please........
-
-
<?php
-
-
-
-
error_reporting(0);
-
session_start();
-
if(!isset($_SESSION['stdname'])){
-
$_GLOBALS['message']="Session Timeout.Click here to <a href=\"index.php\">Re-LogIn</a>";
-
}
-
else if(isset($_REQUEST['logout'])){
-
unset($_SESSION['stdname']);
-
$_GLOBALS['message']="You are Loggged Out Successfully.";
-
header('Location: index.php');
-
}
-
?>
-
<html>
-
<head>
-
<title>VEQ-DashBoard</title>
-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
-
<link rel="stylesheet" type="text/css" href="oes.css"/>
-
</head>
-
<body>
-
<?php
-
-
if($_GLOBALS['message']) {
-
echo "<div class=\"message\">".$_GLOBALS['message']."</div>";
-
}
-
?>
-
<div id="container">
-
<div class="header">
-
<img style="margin:10px 2px 2px 10px;float:left;" height="80" width="200" src="images/logo.gif" alt="OES"/><h3 class="headtext"> VIT UNIVERSITY </h3><h4 style="color:#ffffff;text-align:center;margin:0 0 5px 5px;"><i>...A place to learn; A chance to grow</i></h4>
-
</div>
-
<div class="menubar">
-
-
<form name="stdwelcome" action="stdwelcome.php" method="post">
-
<ul id="menu">
-
<?php if(isset($_SESSION['stdname'])){ ?>
-
<li><input type="submit" value="LogOut" name="logout" class="subbtn" title="Log Out"/></li>
-
<?php } ?>
-
</ul>
-
</form>
-
</div>
-
<div class="stdpage">
-
<?php if(isset($_SESSION['stdname'])){ ?>
-
-
-
-
<img height="600" width="100%" alt="back" src="images/trans.png" class="btmimg" />
-
<div class="topimg"><BR > <BR > <BR >
-
<p><img height="500" width="600" style="border:none;" src="images/stdwelcome.jpg" alt="image" usemap="#oesnav" /></p>
-
-
<map name="oesnav">
-
<area shape="circle" coords="158,118,61" href="viewresult.php" alt="View Results" title="Click to View Results" />
-
<area shape="circle" coords="450,120,70" href="stdtest.php" alt="Take a New Test" title="Take a New Test" />
-
<area shape="circle" coords="300,250,60" href="editprofile.php?edit=edit" alt="Edit Your Profile" title="Click this to Edit Your Profile." />
-
<area shape="circle" coords="150,375,70" href="practicetest.php" alt="Practice Test" title="Click to take a Practice Test" />
-
<area shape="circle" coords="450,375,70" href="resumetest.php" alt="Resume Test" title="Click this to Resume Your Pending Tests." />
-
</map>
-
</div>
-
<?php }?>
-
-
</div>
-
-
<?php
-
include('footer.php');
-
?>
-
</div>
-
</body>
-
</html>
-
In your first code, i can see lots of new line has been printed at the beginning of the code. This new line is data for php
If you have already sent data then you cannot redirect using header function. If your warning was enabled you would get an warning, such as header is already sent, or something like that.
So, remove all the unnecessary white space and characters make sure your first character is <? and do not print any data unless all the verification is finished
I removed all unnecessary whitespace and characters..
but still its not working..
its because of i cant implement your second paragraph ..
can u please tell me what to do exactly..
Thanks
on first code on line 70, there is a header function called but before that you printed html code, so this function wont work.
So now exactly what to do?? How can i write that code before html code?
Thanks...but it displays a blank page
@chirag vora
Did you find a solution? It's doing the same thing for me!
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Jeff Alu |
last post by:
Hi, I'm moving a website to a new location for a friend of mine. The old
site
http://www.infomercialavails.com
Is working fine.
However, the php files at the new location seem to be having...
|
by: Jamie Burns |
last post by:
Can anyone tell me how I can modify the Server String header?
At the moment it is:
Server: Apache/1.3.27 (Unix) PHP/4.3.3
But I would like it to become:
Server: Apache/1.3.27 (Unix)...
|
by: pinbot |
last post by:
As far as I know, http headers should not work after content has been
written. This is how my production box is working, but for some reason
on my dev box I was getting away with a location header...
|
by: John Crowley |
last post by:
I keep running into this over and over again...
I want a block server control that renders a header and footer, and child
controls in between.
But I don't want a templated control, for the...
|
by: Nicholas |
last post by:
Here is the issue:
1. I would like to create an ASP.Net/C# control to append a dynamic
header and footer to **every** web page (depending on the page the
content of each will vary).
I can...
| |
by: kapil singhal via DotNetMonster.com |
last post by:
I have a C#/.Net 1.1 client talking to a Java based web service. I want to
make it a stateful service and i found this solution only:
1. the instance IDs are transferred in the SOAP headers.
2....
|
by: Kory |
last post by:
HI,
I'm using WSE 2.0 SP3 on both client and server. I'm also using .NET Web
services for both client and server.
On the server side, I have trace turned on and I see two messages for each...
|
by: Bob |
last post by:
Hi,
I have created a webrequest that is failing at the server because it has
Encoding =UTF-16 in the header. The server people want me to remove the
entry altogether.
I can't see where I have...
|
by: Petri Savolainen |
last post by:
Hello,
Is there a way to get at the "Received" header(s) or is there something
in imaplib or imap server implementations that hides these? If not, what
IMAP FETCH command should be used? I've...
|
by: freefony |
last post by:
please help me with this
<?php
$sc=$_POST;
$name=$_POST;
$emp=$_POST;
include("conn.php");
$qry="select employer from corper";
$rst=mysql_query($qry) or die(mysql_error());
<select...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |