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;
}

No comments posted yet

Your Answer:

Login to answer
280 Like 51 Dislike
Previous forums Next forums
Other forums

PHP SUBMIT
Code: <input name="doLogin" type="image" src="images/loginsubmit.jpg

Material Issuing for receiving batch
Dear All experts in MM/ PP,

Material issuing from main stores to factory is currently usi

present value of sequence?
Hi

Please help me to find out the present value of sequence?

Thanks

php mysql query from input textbox
Hi,

I have a text box, in that i have given the mysql query. I can able to get the query in v

form variables from database help.
Hi all,

I would like to have a form that gives you options based on the results of an mysql q

CE 7.1 and External GIS integration
Hi All,

We want to develop an application on CE 7.1 which uses GIS features from an exter

ASP.NET 2.0 - Enter Key - Default Submit Button
Hi,One of the most annoying things in developing web pages is handling the "Enter key" for form subm

ctype() validation - allowing illegal characters
Hello,
I use ctype() to filter and validate a user form. However, I am trying to allow certain c

Internal Server Error issues
This has been bothering me for weeks and I've been trying to solve it without asking for help, but e

Filename like the user name
I am creating a form and storing the values in file. Could anyone please tell me how to write a code

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