Posted by NurAzije on 12/27/05 21:35
I have this code:
<?php session_start();
if(!empty($_SESSION["username"]))
{
$usern=$_SESSION["username"];
$passw=$_SESSION["password"];
}else{
echo "<meta http-equiv=\"refresh\"
content=\"0;URL=index.php?alert=1\">";
}
include "functions.php";
include "config.php";
$userid=$_GET['userid'];
$username=$_GET['username'];
$password=$_GET['password'];
$firstname=$_GET['firstname'];
$lastname=$_GET['lastname'];
$fatherid=$_GET['fatherid'];
$motherid=$_GET['motherid'];
$registered=$_GET['registered'];
$birthdate=$_GET['birthdate'];
$partnerid=$_GET['partnerid'];
$birthplace=$_GET['birthplace'];
$deathdate=$_GET['deathdate'];
$deathplace=$_GET['deathplace'];
$graveplace=$_GET['graveplace'];
$userlevel=$_GET['userlevel'];
$gender=$_GET['gender']; ?>
<head>
<title>Modify the Tree</title>
<style type="text/css">
<!--
..url {
color: #cccccc;
text-decoration: none;
cursor: hand;
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0"
marginheight="0">
<br><br><br>
<table border="1" align="center" cellpadding="0" cellspacing="5"
bordercolor="#CCCCCC" bgcolor="#000000">
<tr>
<td align="center" bgcolor="#CCCCCC"><a
href="home.php">Home</a></td>
<td bgcolor="#CCCCCC"> </td>
</tr>
<tr>
<td width="140" bgcolor="#000000" valign="top"><table width="100%"
height="200" border="1" align="center" cellpadding="10" cellspacing="0"
bordercolor="#CCCCCC" bgcolor="#CCCCCC">
<tr>
<td height="10%" bgcolor="#CCCCCC">
<div align="left"></div></td>
</tr>
<tr>
<td height="10%" bgcolor="#000000">
<div align="left"><font color="#CCCCCC"><strong><a
href="view.php?userid=<? echo $_SESSION["userid"]; ?>" target="_self"
class="url">View
Own Tree</a></strong></font></div></td>
</tr>
<tr>
<td height="10%" bgcolor="#000000">
<div align="left"><font color="#CCCCCC"><strong><a
href="search.php" target="_self" class="url">Search
the Tree</a></strong></font></div></td>
</tr>
<?
if($_SESSION["userlevel"]==1)
{ ?>
<tr>
<td height="10%" bgcolor="#000000">
<div align="left"><font color="#CCCCCC"><strong><a
href="add.php" target="_self" class="url">Add
a User</a></strong></font></div></td>
</tr><? } ?>
<tr>
<td height="10%" bgcolor="#000000">
<div align="left"><font color="#CCCCCC"><strong><a
href="logout.php" target="_self"
class="url">Logout</a></strong></font></div></td>
</tr>
<tr>
<td height="50%" bgcolor="#CCCCCC">
<div align="left"></div></td>
</tr>
</table></td>
<td align="center" bgcolor="#cccccc">
<table><tr><td><div style="overflow:auto; width:550px;
height:400px;">
<form action="modify.php" method="get">
<table width="55%" border="0" cellpadding="2" cellspacing="1"
align="center">
<tbody>
<tr>
<th width="27%">Field</th>
<th width="73%">Value</th>
</tr>
<tr>
<td bgcolor="#d5d5d5"><b>userid</b></td>
<td bgcolor="#d5d5d5"> <? echo $userid; ?><input name="userid"
value="<? echo $userid; ?>" type="hidden">
</td>
</tr>
<tr>
<td bgcolor="#d5d5d5"><b>password</b></td>
<td bgcolor="#d5d5d5"> <input name="password" value="<? echo
$password; ?>" size="40" type="text">
</td>
</tr>
<tr>
<td bgcolor="#e5e5e5"><b>username</b></td>
<td bgcolor="#e5e5e5"> <input name="username" size="40"
type="text" value="<? echo $username; ?>">
</td>
</tr>
<tr>
<td bgcolor="#e5e5e5"><b>firstname</b></td>
<td bgcolor="#e5e5e5"> <input name="firstname" size="40"
type="text" value="<? echo $firstname; ?>">
</td>
</tr>
<tr>
<td bgcolor="#d5d5d5"><b>lastname</b></td>
<td bgcolor="#d5d5d5"> <input name="lastname" size="40"
type="text" value="<? echo $lastname; ?>">
</td>
</tr>
<tr>
<td bgcolor="#e5e5e5"><b>fatherid</b></td>
<td bgcolor="#e5e5e5"> <input name="fatherid" size="40"
type="text" value="<? echo $fatherid; ?>">
</td>
</tr>
<tr>
<td bgcolor="#d5d5d5"><b>motherid</b></td>
<td bgcolor="#d5d5d5"> <input name="motherid" size="40"
type="text" value="<? echo $motherid; ?>">
</td>
</tr>
<tr>
<td bgcolor="#e5e5e5"><b>registeration date</b></td>
<td bgcolor="#e5e5e5"> <input name="registered" size="40"
type="text" value="<? echo $registered; ?>">
</td>
</tr>
<tr>
<td bgcolor="#d5d5d5"><b>birthdate</b></td>
<td bgcolor="#d5d5d5"> <input name="birthdate" size="40"
type="text" value="<? echo $birthdate; ?>">
</td>
</tr>
<tr>
<td bgcolor="#e5e5e5"><b>partnerid</b></td>
<td bgcolor="#e5e5e5"> <input name="partnerid" size="40"
type="text" value="<? echo $partnerid; ?>">
</td>
</tr>
<tr>
<td bgcolor="#d5d5d5"><b>birthplace</b></td>
<td bgcolor="#d5d5d5"> <input name="birthplace" size="40"
type="text" value="<? echo $birthplace; ?>">
</td>
</tr>
<tr>
<td bgcolor="#e5e5e5"><b>deathdate</b></td>
<td bgcolor="#e5e5e5"> <input name="deathdate" size="40"
type="text" value="<? echo $deathdate; ?>">
</td>
</tr>
<tr>
<td bgcolor="#d5d5d5"><b>deathplace</b></td>
<td bgcolor="#d5d5d5"> <input name="deathplace" size="40"
type="text" value="<? echo $deathplace; ?>">
</td>
</tr>
<tr>
<td bgcolor="#e5e5e5"><b>graveplace</b></td>
<td bgcolor="#e5e5e5"> <input name="graveplace" size="40"
type="text" value="<? echo $graveplace; ?>">
</td>
</tr>
<tr>
<td bgcolor="#e5e5e5"><b>userlevel</b></td>
<td bgcolor="#e5e5e5"> <input name="userlevel" size="40"
type="text" value="<? echo $userlevel; ?>">
</td>
</tr>
<tr>
<td bgcolor="#e5e5e5"><b>gender</b></td>
<td bgcolor="#e5e5e5"> <input name="gender" size="40"
type="text" value="<? echo $gender;?>">
</td>
</tr>
</tbody>
</table><center>
<input name="submit" value="Add" type="submit">
<input type="reset"></center></form>
</div></td></tr></table>
</td>
</tr>
</table></body><? //just an end
?>
The error is:
Warning: session_start(): Cannot send session cache limiter - headers
already sent (output started at
/home/imtecba/public_html/sedin/add.php:1) in
/home/imtecba/public_html/sedin/add.php on line 1
Please help me,
Navigation:
[Reply to this message]
|