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
51
Other forums
losing variables between php brackets
Hi
have got this code:
Code: $id=mysql_result($result,0,"itemid");
$title=mys
mod_rewrite.c on windows ??
why it's not working on windows while it's working on other hosts???
this is the code i got
Pulling out some result data from MYSQL
Hey Guys,
I've built a PHP page that has a for just imagine something like registration form
why isn't this PHP code working ???
it's suppose to find a name on the database.
<?php
$s = $_POST["lname&
error with opendir
when i do this
if ($handle = opendir($dir)) {
while (false !== ($file = readdir($han
Add weeks in a query?
I have a SQL that summarizes the quantity per week. The weeks that has no value does not exist in th
add 20 000 to the rowcnt
Hi ...
I need to add 20 000 to the row count but just cant find a way to do this i am new to php
ldap connection
We are using ldap to get user information from the domain controller. It was working before. Recentl
phpMailer will not connect using SMTP
I am trying to use phpMailer with smtp:
Code: [Select]$mailer = new PHPMailer();
$mailer-&
noob cURL help
I have a pretty basic form that I need to cURL post to a file in my includes folder (includes/login.