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
Redirect not working after making a POST/GET
Hi Everyone,
I am a novice in PHP. Here I have 2 pages, one page with a textbox and button an
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
url- go to webpage
i have an input text field and submit button.
how do i make the url entered into the textfiel
How do i do multi uploads?.
Hey i would like to do this : http://hosting.mrkrabz.net/
I've got the base down you can uplo
Am I setting up my sites oldschool?
Ok,
When I create a site I open a basic template that I have created that consists of a css f
array_combine() trouble w/csv file
I have a problem with a piece of code I wrote to import some records from a csv file into mysql. I h
retrieving policy name inside the function called by this particular policy
Hi there,
I've playing around with dbms_rls package, trying to set up some security repo
max() problem
I have a while loop to get image names.
Code: $imagequery = mysql_query("SELECT * FROM ad_i
Using the $_GET variable to view certain records
Hello,
First let me explain my problem, I have 2 pages the first page pull a list of Guide ti
image upload script not working with png
The basic process of this php code is to take the submitted file, convert it to a small JPG thumbnai