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;
}
Changing files over
Just thought I'd start with the new forums looking really nice .Ok basically I've made this site www.sampleestateagent.com and the CMS and search function is all done for the buying part of the site.
Curl timeout breaks script
So im having difficulties with skipping timeout error in curlmy script calls different functions my problem is lets say if in function2 is curl timeout error it wont continue with function3 but kills
Get last modified date of web page
Hai All, In php how can i get last modified date of a give web page . I have tried to get last modified from the header but for some pages the server of that webpage doesn't returns lastmodified
function not returning the correct value
I have a program that needs to return a value from a function. I have an output statement inside the function just to see what the output is, and it sems to work. However, upon returning the function
How to generate a text file using php...?
Hi, Can anyone give me code to generate a text file using phpThanks in advance
Lining up columns nicely.
Hello everyone, I'm having problems with making columns line up properly. Here is my code:
replacements
I have a variable in my PHP script like ASSFDDDDDDDDDDDDDASDDDDDDDDARYTRHKKHHHHHHHHHHH and positions 5-10I want to replace these positions with another color .$newpat="<font
Run function every 5 mins ??
I have a function PostMessage()How can I run it every 5 mins ??
Getting number of affected rows in SQLPLUS..
Hi everyone,
How to load mysql (and other) extensions into PHP
How to load mysql (and other) extensions into PHP PHP Development forum discussing coding practices, tips on PHP, and other PHP-related topics. PHP is an open source scripting language that has taken