HTML - Cannot Modify Header Information
I've just inherited maintenance duties for this site, and have encountered a problem with headers. Here's the error I'm getting:
Warning: Cannot modify header information - headers already sent by (output started at /home/cookin/public_html/index.php:3) in /home/cookin/public_html/index.php on line 3 I've been trying to fix this all day, and can't seem to find the problem. Been looking for white space but can't find any. Maybe a fresh set of eyes will be able to see what's going on here. Thanks in advance to anyone who can offer any insight. Here's the header code: <head> <?php header('Content-type:text/html;charset=utf-8');?><?php require_once "/home/cookin/public_html/cmsAdmin/lib/viewer_functions.php"; list($homepageRecords, $homepageMetaData) = getRecords(array( 'tableName' => 'homepage', )); list($quotesRecords, $quotesMetaData) = getRecords(array( 'tableName' => 'quotes', 'limit' => '1', 'orderBy' => 'RAND()', 'loadUploads' => '0', 'allowSearch' => '0', )); ?> <link href="p7ap/p7ap_02.css" rel="stylesheet" type="text/css" media="all"> <script type="text/javascript" src="p7ap/p7APscripts.js"></script> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="shortcut icon" href="http://www.whatscookin.ca/favicon.ico"> <title>What's Cookin' Kitchen and Catering in Erin</title> <meta name="Description" content="What's Cookin' in the Village of Erin provides ready-to-go meals, event catering, special savouries and quality kitchen wares. Our products are made-from-scratch in small batches from our own recipes to ensure we offer only quality goodness and great flavour."> <meta name="Keywords" content="kitchen, erin, catering, organic foods, 100 mile diet, jo fillery, village of erin, hills of headwaters"> <link href="styles/whatsCookin.css" rel="stylesheet" type="text/css"> <link href="styles/whatsCookin_print.css" rel="stylesheet" type="text/css" media="print"> <!--[if IE 5]> <style>body {text-align: center;}#wrapper {text-align: left;}.menulist a {float: left; clear: both;} #column_wrapper {height: 1%;}</style> <![endif]--><!--[if lte IE 7]> <style>#wrapper, #footer, #masthead, #column_wrapper {zoom: 1;}</style> <![endif]--> <link href="navigation/p7PMMh10.css" rel="stylesheet" type="text/css" media="all"> <script type="text/javascript" src="navigation/p7PMMscripts.js"></script> </head> Similar TutorialsThis is my first plea for help in this forum. Here goes: Firstly I'm very new to all this, so this is probably very simple for some of you guys. Anyway, I got a free autoresponder from getresponse, I placed the script on a blogger.com page and it works great. However, it is one stupid looking, big, bulky, disproportioned piece of work. So, I'd love to be able to modify the size of it and maybe change the border, add a bit of colour or a jpeg or...well you know, jazz it up a bit. I submitted a ticket to their support section. They responded with a "get your website tech dude to do his thing, we can't help you" So, here I am, any ideas? Oh, do you need to see the script in order to advise me? Any help is really appreciated. Tony. Hi Guys, I've just started on my first Facebook Static FBML by inserting code generated by Emailmeform and used two codes I got from photobucket for the header and footer. The result unfortunately leaves two white lines above and below where the message is written. I want the whole box to be in the block blue color. Can anyone advise me what to do? I've posted the code below. Thanks, Colin HTML Code: <a href="http://s827.photobucket.com/albums/zz193/colinbrady1985/?action=view¤t=clubfbmlheader6.jpg" target="_blank"><img src="http://i827.photobucket.com/albums/zz193/colinbrady1985/clubfbmlheader6.jpg" border="0" alt="Photobucket"></a> <form method="post" action="http://www.emailmeform.com/fid.php?formid=534066" enctype="multipart/form-data" accept-charset="UTF-8"><table cellpadding="5" cellspacing="0" border="0" bgcolor="#01ABE8"><tr><td><font face="Arial Rounded MT Bold" size="3" color="#ED8E22">This is the first crucial question. Just type in your answer along with your email address to be in with a chance to win!</font> <div style="" id="mainmsg"> </div></td></tr></table><br><table cellpadding="3" cellspacing="0" border="0" bgcolor="#01ABE8"><tr valign="top"> <td nowrap><font face="Arial Rounded MT Bold" size="3" color="#ED8E22"></font></td> <td><textarea name="FieldData0" cols="160" rows="1"></textarea><br> </td></tr><tr> <td colspan="2"><table cellpadding=5 cellspacing=0 bgcolor="#01ABE8" width="100%"><tr bgcolor="#01ABE8"><td class="label" colspan="2"><font color="#ED8E22" face="Verdana" size="2"><b>Image Verification</b></font></td></tr><tr><td class="captcha" style="padding: 2px;" width="10"><img src="http://www.emailmeform.com/turing.php" id="captcha" alt="captcha"></td><td class="field" valign="top"><div><font color="#FFFFFF">Please enter the text from the image</font>:<br><input type="text" name="Turing" value="" maxlength="100" size="10"> [ <a href="#" onclick=" document.getElementById('captcha').src = document.getElementById('captcha').src + '?' + (new Date()).getMilliseconds()">Refresh Image</a> ] [ <a href="http://www.emailmeform.com/?v=turing&pt=popup" onClick="window.open('http://www.emailmeform.com/?v=turing&pt=popup','_blank','width=400, height=500, left=' + (screen.width-800) + ', top=100');return false;">What's This?</a> ]</div></td></tr></table></td></tr><tr> <td> </td> <td align="right"><input type="text" name="hida2" value="" maxlength="100" size="3" style="display : none;"><input type="submit" class="btn" value="SEND ANSWER" name="Submit"> <input type="reset" class="btn" value=" START AGAIN " name="Clear"></td></tr><tr><td colspan=2 align="center"><br></td></tr></table></form> i am trying to add a page to my site. i have to use this template. i want to show a graphic product link next to a descriptive text area. so far i can only get them to appear one under the other, not side by side. i think i need to split the page up into columns which i don't know how to do. also there are 2 lead-in paragraphs before the image and text...how do i just split the bottom of the page? thanks for any assistance. myheadhurts! Hello, I would like to put the following Javascript into some of my posts on my Message Forums, but the Invision Boards don't allow javascripts to execute. Therefore I can put only HTML code. Code: <script language="JavaScript1.2"> //Disable select-text script (IE4+, NS6+) function disableselect(e){ return false } function reEnable(){ return true } //if IE4+ document.onselectstart=new Function ("return false") //if NS6 if (window.sidebar){ document.onmousedown=disableselect document.onclick=reEnable } </script> Any help will much appreciated! Need some help with coding. I'm a designer with little experience with programming. 1. I want the video to be centered in its column on the blog 2. I want to be able to choose the cover frame of the video (the still image it displays before it plays). 3. There are slim black bars on the left and right of the video. I think it is from the player. Is there any way to remove those? This is the basic code I have now. Any help would be appreciated. <p><embed src="http://freevideocoding.com/flvplayer.swf?file=http://www.1-on-1fitnesstraining.com/blog_videos/intro_02_no_mograph.flv&autoStart=false" width="360" height="264" quality="high" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></p> recently i have been brosing thru many web templates and have downloaded some of the,.. well now i want to modify the text and put my text in those .. well i aint have any idea on how to do that..? well if text manipulations are possibly (which i think it is ) then hpw do i program it that on clicking this button it must go to the next page or load another page ....? i would be glad if you guys could help me out ... -------------------------------------------------------------------- professional web design Hi I am working on a new website and I would like to be able to modify my menu from one document instead of having to go through all of the 30 pages and copy and paste the code. Theres got to be a way to do this, the menu for each page just needs to point to another document for the code....ugh frustrating! Thanks for any help, Alex Im making a calendar table and i want to be able to change the color of the background depending on the status of the date. and i wanted to know were do i code the conditional statements to determine the color of the background? and hot do i make that text take me to a form when you click on it? thanks for the help, Tavo Hey, im trying to find out why the header on my website isnt at the top of the page. it also moves sometimes even though the code appears to be all the same. the address is www.themonsterbox.com thanks in advance for any help. Hello friends can u share with me div related information? I want to post information to another pages through links: for example, I want when clicking on a link "client" to go another page saying "Welcome Client" How could I do something like that..I know that I must use a form in order to post information to another pages...How to do it without using a form...Help please! Thanks in advance... Hi guys! I am writing this thread, because I need to know how to do a specific form. However, I do not know how it is called. On wikipedia is called "form builder" . I would like to do a form where people can choose different options. (thats a form). Then, after form submitted, it will be displayed their option on the on my site. Let me know if this is the right forum, becuase I am not really sure. Thank you DT i have a page with code below HTML Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Page-Enter" content="progid:DXImageTransform.Microsoft.Pixelate(enabled=false,duration=1,maxSquare=50)" /> <meta http-equiv="Page-Exit" content="progid:DXImageTransform.Microsoft.Pixelate(enabled=false,duration=1,maxSquare=50)" /> <script src="http://www.savethedevelopers.org/say.no.to.ie.6.js"></script> <title>Untitled Document</title> </head> <body> <img src="http://www.sf4stu.com/attachments/month_0804/20080412_7374481915abcecb4439HQ4ovRdyjWnf.gif" /> </body> </html> when i test locally, i saw there is a information bar right on my IE browser how could i stop the information bar? since i trust my code is save~ hi. i am developing a web application which includes tree view on left hand side and a table on right hand side which displays information if i clicked on any leaf of tree. This is the concept, i hv created view but unable to show information in right pane if i am gng to click on any link in tree view. Please help me I'm in the process of writing a blog (writing the php, not the content - yet) and I have hit a problem submitting links to digg. I have the appropriate code to produce a link thus: Code: <a href="http://www.digg.com/submit?phase=2&title=Test%20Gallery&url=http://www.tommedley.com/india/gallery.php?album=1&title=Test%20Gallery"> <img border=0 src="diggit.gif" alt="Digg It"></a> However as you can see Digg gets confused by the &title my page needs on the end of the url. I tried replacing that & with & but that still didn't work, Digg just cuts off the end and only sees the ?album=1. Is there a way around this? Fred Envirornment is IIS5 (Intranet) Looking for a way to Display Directory Listings in a more user friendly format. These files represent Policy and Procedures for different parts of the organization. Each can then be dozens for sub-directories and hundreds of files. If I use IIS5 and point to a directory that can be scanned like; href="www.nehcompass.neh/Resources/pandp/PBMC">PBMC2 I get an alpha listing that's fairly blah/ugly. On the other hand if I use the file IEE approach; href="file://websql/d$/Inetpub/viper/Resources/pandp/PBMC">PBMC I get IEE to present the information in a more pleasing format but I'm not happy showing the server, drive, and the full directory path. Is there another approach I'm overlooking? Thanks, Greg Hello, I'm having a bit of trouble pulling information from a text box. What I would like to do is this: 1) User enters a number in a text box 2) User clicks a submit button (or link, whatever works) 3) The data from the text box is inserted into a pre-defined link For example, the link could be http://mysite.com/view[project], where [project] is the data from the text box. If I entered '12345' in the text box, and then clicked submit, I would like a new page to open up to the site http://mysite.com/view12345. Hopefully that made sense... Is this even possible? Do you know of a better way to get the desired result? Hi everyone, I would like to know how to put a icon in the identify information. Thanks for your help, tecmeister Reference Link: {website taken off for personal reasons} If you visit the link I posted, what I want to happen, is when you click on the tabs Home, Giving Programs, Leave A Legacy or Make a Gift, I want the content of them to appear in the green box that is below the tabs. When you click on the tabs to the right - Events, Home, Home, I want their content to appear in the box that is below those tabs. I have that much figured out - but my question is - when you click on the links on the left, or on the right, the information in the opposite box (from the previous link that was clicked) goes away. Is there anyway to keep the information up in both boxes at all times? Example: If you click on Make a Gift - Tab content 4 here Tab content 4 here shows up in the green box below the tabs. BUT... when you click on Events to the right - TOOOOOOOOOOLS shows up - but 'Tab content 4 here' goes away. PROBLEM - I want 'Tab content 4 here' to stay up. Thanks so much in advance!! I've scoured the web for tutorials for this, but either there aren't many out there or I'm not entering the right keywords. I have (what I consider to be) a fairly secure knowledge of XHTML and CSS, but forms continue to baffle me. I've created a basic form: <form name="contact us"> <p>Name: <input type="text" name="name" /></p> <p>Email: <input type="text" name="email" /></p> <p>Subject: <input type="text" name="subject" /></p> <p>Content: <textarea name="comments" cols="40" rows="6"></textarea></p> <p><input type="submit" value="Submit" /></p> </form> How do I now receive the information the person has entered? I'd rather it didn't open their email client: I just want them to click the submit button and get a 'thank you, received your info' page. I don't mind how I receive the information, just as long as it gets to me! Thank you for your time. Amandine. |