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)
Did you know?Explore Trending and Topic pages for more stories like this.
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;
}
No comments posted yet
Your Answer:
Login to answer
280
51
Other forums
PEAR in appliactiond development
When I was picking up PHP I went from procedural programming, fairly quickly into OOP, then after wr
php calculate
this code echoes correctly the sum but the inserted result is 0??
Code: <?php
$TotalNum
Problem with Subscreen
Dear Experts ,
I am facing a problem with the subscreens. My senario is as follows :
Beginner question regarding Array's
Hi everyone, the page im working on has an array of variable at the top...
Code: $define_li
what business processes?
Hi,
A general question. What business processes (like OTC - Order to Cach, P2P, R2R etc)
Help with form post data and arrays
Hi all,
I am new to this forum... It has been awhile since i have worked with arrays, and i a
Need help: how to catch acess of undefined class properties
Hello. I am learning OO with PHP and have hit a problem.
Some code runs as perfectly valid code,
Adding meta tags under Zend FW
Hello there, recently has come to my hands the FTP of a website which is running under Zend, I would
Function to extract email attachments using PHP IMAP
function extract_attachments($connection, $message_number) {
$attachments = array();
Losing 'page' data
I have this code that allows me to update my database. But after updating, I lose the $_GET['page']