that old Malformed Headers problem again!!!!! HELP!!!!!!


Posted on 16th Feb 2014 07:03 pm by admin

I've read the http://www.phpfreaks.com/forums/index.php/topic,37442.0.html

I don't think my code outputs any blank lines (I can't find it anyway)

I am including a functions file in my project all over the place which works fine. However on this one page (which calls the following functions - clue there, I think?!) I get the internal server error.

Can anyone spot the error? I'm stuck and it's gotta be done by tonight.



function checkField($postKey)
{
global $tGlobalErrorMessage;
global $aGlobalRegYears;

$returnValue = FALSE;

if (isset($_POST["txtEmailAddress"]))
{
switch ($postKey)
{
case "lstYearPlate":
if(!in_array($_POST[$postKey], $aGlobalRegYears))
{
$tGlobalErrorMessage .= "Please select Year/registration from the dropdown list.";
}
break;
}
$returnValue = TRUE;
}
else
{

$returnValue = FALSE;
}
return $returnValue;
}
function validQuoteRequest()
{
global $tGlobalErrorMessage;
$bAllOk = true;
//$bAllOk = checkField("txtEmailAddress");

if (! isset($_POST["txtEmailAddress"]) && ! isset($_POST["txtTelephone"]))
{
$bAllOk = FALSE;
$tGlobalErrorMessage .= "Please enter at least ONE of either telephone or email address so we can get in touch.";
}

if ($_POST["chkDeclaration"] != "on")
{
$returnValue = FALSE;
$tGlobalErrorMessage .= "Please confirm mileage, not written off, not private hire and ownership 'I hereby certify that...'.";
}

if ($bAllOk)
{
$tGlobalErrorMessage = "";
}
else
{
//echo $tGlobalErrorMessage;
}
return $bAllOk;
}

280 Like 51 Dislike
Previous php-forum Next php-forum
Other php-forum

Will this protect from mysql injection?
I do not want anything like DROP TABLE to work or any type of coding..

Heres my code.. is it

Reading waves
Hi,

I am trying to find a way of finding the highs and lows on a graph line, the line points

How To Make More Than One Redirection with PHP on the same page?
Hey im trying to do a direction page where it open differently link direction pages every time som

foreach and array need help combining
Hi guys.

Here's the code

Code: array(
'tag' => 'code',<

Multiple Options for a Single Page
For this example I want to use the Handlers option which is under Fed Admin and all the related codi

CURL XML Request [From C to PHP]
Hi,

I need some help converting this into something that will work with PHP.

Code: #

Echo multiple lines of html code
Hi guys,

I would like to know if there is a way to echo multiple lines of html codes.

Image loading
Hi Developers,

I'm trying to display an image from images/image.gif getting the url from mysq

Users and Groups with PHP Classes
Hi,

I have setup what I hope to be a good working User class. Now I want to introduce group m

I need help on this PHP code
Hi everybody, I made some kind of mistake while editing the code below. As you see, at the 3 row my

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash