superdezign wrote:You are making output on line 12 of header.php before your header() call. Once output is made, default headers are sent, and are no longer available for modification.
here is the header.php :-
Code: Select all
<?php
session_start();
?>
<!-- saved from url=(0014)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Speed Mail</title>
<style type="text/css">td img {display: block;}body {
background-color: #999999;
}
</style>
</head>
<body topmargin="0">
<center>
<div>
<table border="0" cellpadding="0" cellspacing="0" width="664">
<!-- fwtable fwsrc="header.png" fwbase="header.gif" fwstyle="Dreamweaver" fwdocid = "1048292929" fwnested="0" -->
<tr>
<td><img src="../header/spacer.gif" width="51" height="1" border="0" alt="" /></td>
<td><img src="../header/spacer.gif" width="122" height="1" border="0" alt="" /></td>
<td><img src="../header/spacer.gif" width="268" height="1" border="0" alt="" /></td>
<td><img src="../header/spacer.gif" width="29" height="1" border="0" alt="" /></td>
<td><img src="../header/spacer.gif" width="145" height="1" border="0" alt="" /></td>
<td><img src="../header/spacer.gif" width="49" height="1" border="0" alt="" /></td>
<td><img src="../header/spacer.gif" width="1" height="1" border="0" alt="" /></td>
</tr>
<tr>
<td rowspan="3" bgcolor="#FFFFFF"></td>
<td rowspan="2"><img name="Title" src="include/header/Title.gif" width="122" height="50" border="0" id="Title" alt="" /></td>
<td colspan="2" rowspan="3" bgcolor="#FFFFFF"></td>
<td colspan="2" valign="top" bgcolor="#FFFFFF"><p style="margin:0px"></p></td>
<td><img src="include/header/spacer.gif" width="1" height="26" border="0" alt="" /></td>
</tr>
<tr>
<td rowspan="3"><img name="Stamp" src="include/header/Stamp.gif" width="145" height="72" border="0" id="Stamp" alt="" /></td>
<td rowspan="4" bgcolor="#FFFFFF"></td>
<td><img src="include/header/spacer.gif" width="1" height="24" border="0" alt="" /></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"></td>
<td><img src="include/header/spacer.gif" width="1" height="45" border="0" alt="" /></td>
</tr>
<tr>
<td rowspan="2" colspan="3"><img name="Menu" src="include/header/Menu.gif" width="441" height="17" border="0" id="Menu" alt="" /></td>
<td rowspan="2" bgcolor="#FFFFFF"></td>
<td><img src="include/header/spacer.gif" width="1" height="3" border="0" alt="" /></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"></td>
<td><img src="include/header/spacer.gif" width="1" height="14" border="0" alt="" /></td>
</tr>
</table>
</div>
Here is the submit.php :-
Code: Select all
<?php
require_once("dbconn\dbconn.php");
require_once("include\header.php");
?>
<style type="text/css">
<!--
.style1 {font-family: Verdana, Arial, Helvetica, sans-serif}
.style3 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; }
-->
</style>
<script type="text/javascript">
<!--
function delayer()
{
window.location = "../javascriptredirect.php"
}
//-->
</script>
<link href="css/mail22.css" rel="stylesheet" type="text/css" />
<?php
$_SESSION['userid'] = $_POST['userid'];
$_SESSION['password'] = $_POST['password'];
$_SESSION['repassword'] = $_POST['repassword'];
$_SESSION['name'] = $_POST['name'];
$_SESSION['address'] = $_POST['address'];
$pref = "admin";
$date1 = date("Y-m-d");
$ad = "admin";
global $queary;
?>
<table border="0" cellpadding="0" cellspacing="0" width="664">
<!-- fwtable fwsrc="body.png" fwbase="registration.gif" fwstyle="Dreamweaver" fwdocid = "1797656754" fwnested="0" -->
<tr>
<td><img src="registration/spacer.gif" width="23" height="1" border="0" alt="" /></td>
<td><img src="registration/spacer.gif" width="618" height="1" border="0" alt="" /></td>
<td><img src="registration/spacer.gif" width="23" height="1" border="0" alt="" /></td>
<td><img src="registration/spacer.gif" width="1" height="1" border="0" alt="" /></td>
</tr>
<tr>
<td height="300" valign="top" bgcolor="#EBE8E8"><p style="margin:0px"></p></td>
<td valign="middle" bgcolor="#EBE8E8">
<div>
<p align="center" style="margin:0px">
<?php
// SQL QUERY ///////////////////////////////////////////------------------------
if(pref != $ad)
{
$queary = 'INSERT INTO email_registration (user_id,pass,name,address,date1) VALUES('.$_SESSION['userid'].','.$_SESSION['password'].','.$_SESSION['name'].','.$_SESSION['address'].','.$date1.')';
}
elseif(pref == 'admin')
{
$queary = 'INSERT INTO email_registration (user_id,pass,name,address,preference,date1) VALUES('.$_SESSION['userid'].','.$_SESSION['password'].','.$_SESSION['name'].','.$_SESSION['address'].','.$ad.','.$date1.')';
echo $queary;
}
echo $queary;
header("Refresh: 10; url=index.php");
?>
</p>
</div>
</td>
<td valign="top" bgcolor="#EBE8E8"><p style="margin:0px"></p></td>
<td><img src="registration/spacer.gif" width="1" height="300" border="0" alt="" /></td>
</tr>
</table>
<?php
require_once("include\footer.php");
?>
and footer.php :-
Code: Select all
<title>Speed Mail</title>
<style type="text/css">
<!--
.style6 {
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
}
a:link {
color: #000000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: underline;
color: #333333;
}
a:active {
text-decoration: none;
}
.style7 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
}
-->
</style>
<div>
<table border="0" cellpadding="0" cellspacing="0" width="664">
<!-- fwtable fwsrc="Footer.png" fwbase="Footer.gif" fwstyle="Dreamweaver" fwdocid = "219680605" fwnested="0" -->
<tr>
<td><img src="footer/spacer.gif" width="216" height="1" border="0" alt="" /></td>
<td><img src="footer/spacer.gif" width="448" height="1" border="0" alt="" /></td>
<td><img src="footer/spacer.gif" width="1" height="1" border="0" alt="" /></td>
</tr>
<tr>
<td valign="top" bgcolor="#FFFFFF"><p style="margin:0px"></p></td>
<td valign="top" bgcolor="#FFFFFF"><p align="left" class="style7" style="margin:0px"><a href="index.php" target="_self">Index</a> | <a href="contect.php" target="_blank">Contect Us</a> | <a href="about.php" target="_self">About Us</a> </p></td>
<td><img src="footer/spacer.gif" width="1" height="18" border="0" alt="" /></td>
</tr>
<tr>
<td valign="middle" bgcolor="#FFFFFF"><p align="left" style="margin:0px"><span class="style6"><strong> Powered By</strong> <a href="http://www.techinfocomp.com" target="_blank">Techinfocomp</a></span></p></td>
<td valign="top" bgcolor="#FFFFFF"><p style="margin:0px"></p></td>
<td><img src="footer/spacer.gif" width="1" height="36" border="0" alt="" /></td>
</tr>
</table>
</div>
</center>
</body>
</html>
[s]Pl[/s]
PLEASE solve the problem Thanks
& [s]pl[/s]
PLEASE tell me that what is the problem Thanks
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:11. Please use proper, complete spelling when posting in the forums. AOL Speak, leet speak and other abbreviated wording can confuse those that are trying to help you (or those that you are trying to help). Please keep in mind that there are many people from many countries that use our forums to read, post and learn. They do not always speak English as well as some of us, nor do they know these aberrant abbreviations. Therefore, use as few abbreviations as possible, especially when using such simple words.
Some examples of what not to do are ne1, any1 (anyone); u (you); ur (your or you're); 2 (to too); prolly (probably); afaik (as far as I know); etc.