If anyone would be able to take a look at the code and help me in figuring out why it seems to only insert 1's and 0's into the mysql server, i would be forever grateful.
I'm tearing my hair out at...
//check that the required fields are not empty
if ($EmployeeName == '' || $EmployeeRef == '' || $DeclarationCheck == '')
{
$error = 'ERROR: Please fill in all required fields!';...
Thanks very much NogDog, I think i'm starting to get somewhere now!
I've commented out the mysql_real_escape_string piece and now it's progressing past that error.
//check that the required fields are not empty
if ($EmployeeName == '' || $EmployeeRef == '' || $DeclarationCheck == '')
{
$error = 'ERROR: Please fill in all required fields!';...
After I add error_reporting(E_ALL ^ E_NOTICE); to the php file, the error messages stop being logged to the log file and the front end doesn't display any errors either (apart from the if else error...
[Thu Oct 11 22:59:09 2012] [error] [client x.x.x.x] PHP Notice: Undefined variable: SumMiles in /home/test/public_html/Beta/Scripts/formsubmit.php on line 46,...
I posted two more replies to the thread but they are waiting for moderator approval before being posted for some reason.
Apologies that they may appear out of order!
The html for the form is below, which includes the calculation code for how to come up with those fields.
The sum values appear on the site when you type them live, but aren't posted for some...
Thanks for the replies guys.
I've added error_reporting(E_ALL ^ E_NOTICE); into the php file but it now doesn't report anything in the log file (but still errors on the front end) so i took it out...
Hi guys,
Thank you SO much for providing code like this, i'm successfully using it in a form i'm creating.
When i'm going through the form and inserting values into text boxes, the total...