Jump to content

[SOLVED] Warning: session_start() headers already sent error - Driving me Nuts!


hummerton

Recommended Posts

Hello all :)

 

I am trying my sister in laws site and I keep getting an error with my coding. I am more of a designer than coder and I can't figure this out. It is on the following page:

 

http://faceandbodyportorange.com/contact-us.php

 

Here is my coding.. I call different PHP pages (header and left) so I didn't have to change on all pages, just once. Here is the coding for this page:

 

<?php include 'header.php'; ?>
<?php include 'left.php'; ?>

						<td align="left" valign="top">
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
					                <tr>
					                	<td align="left" valign="top">
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
					                      		<tr>
				                        			<td width="265" align="left" valign="top"><img src="images/inner_main1.jpg" alt="Welcome to Face&Body.com!" width="268" height="123" /></td>
		                			        		<td align="left" valign="top"><img src="images/inner_main2.jpg" alt="Welcome to Face&Body.com!" width="262" height="123" /></td>
		                      					</tr>
					                   		</table>
								</td>
							</tr>
					                <tr>
					                	<td align="left" valign="top">
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
					                      		<tr>
					                        		<td align="left" valign="top">
											<table width="100%" border="0" cellspacing="0" cellpadding="0">
					                				<tr>
					                					<td align="left" valign="top">
													<table width="100%" border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td> </td>
													</tr>
					                              					<tr>
					                                					<td height="45" align="left" valign="top">
															<table width="100%" border="0" cellspacing="0" cellpadding="0">
					                                    						<tr>
					                                      							<td width="8" align="left" valign="top"><img src="images/br_cor1.jpg" alt="cor" width="8" height="32" /></td>
					                                      							<td align="right" valign="middle" bgcolor="#674007">
																	<table width="98%" border="0" cellspacing="0" cellpadding="0">
					                                          							<tr>
					                                            								<td align="left" valign="middle" class="inner_txtheader">Contact Face & Body Healthy Aging</td>
					                                          							</tr>
					                                      								</table>
																</td>
					                                      							<td width="8" align="left" valign="top"><img src="images/br_cor2.jpg" alt="cor" width="8" height="32" /></td>
					                                    						</tr>
					                                						</table>
														</td>
					                              					</tr>
					                <tr>
					                	<td align="left" valign="top">
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td> </td>
									</tr>
									<tr>
										<td align="left" valign="middle" class="txt_nor"><b>Face & Body Healthy Aging</b><br>900 N. Swallowtail Drive, #105<br>Port Orange, FL 32129<br>(386) 788-8480 (Office)<br>(386) 679-5346 (Jen)<br>(386) 212-1386 (Tami)<br>(386) 589-7197 (Mariah)
										</td>
									</tr>
									<tr>
										<td><?php include 'html-contact-form.php'; ?></td>
									</tr>
									</table>
								</td>
							</tr>
					                </table>
			        	        	                				</table>
												</td>
											</tr>
					                				</table>
										</td>
									</tr>
									</table>
								</td>
							</tr>
							</table>
						</td>
					</tr>
				        </table>
				</td>
			</tr>
			<tr>
			        <td align="left" valign="top"> </td>
			</tr>
<?php include 'footer.php'; ?>

 

 

Anyone know this? I am about to lose my mind! I did read the READ FIRST thread at http://www.phpfreaks.com/forums/index.php/topic,37442.0.html, but I am not sure what it means by closing the code?! Remember, designed not programmer.. I am lucky I got this far :)

 

Thanks,

 

Rob

 

Link to comment
Share on other sites

Your contradicting yourself. I do not have that directly contradicts I tried removing before, but then my capthca didn't work. You only need session_start once. Remove it from ALL the included files and place it at the top of the main file. Ensure that there are no whitespaces before the opening PHP block.

Link to comment
Share on other sites

The header function used to direct also sends headers (as the name suggests :)) You could echo out an html redirect if you really wanted to forward to a different page. You could just change the order of your code, but that could get complicated.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.