Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End can't get form on webpage to post to table/database on remote server Reply To: can't get form on webpage to post to table/database on remote server

#209632
Great Scott
Participant

and finally, the fnStrings.php file:

<?php
/********** STRING FUNCTIONS *********/
/*
Function Name: browserString
Arguments: $string
Returns:
trimmed and escaped string for browser output
*/
function browserString($string)
{
return nl2br(trim(htmlentities($string)));
}

/*
Function Name: dbString
Arguments: $string
Returns:
trimmed and escaped string for database entry
*/
function dbString($string)
{
$string=trim($string);
if (get_magic_quotes_gpc())
{
return $string;
}
else
{
return addslashes($string);
}
}
?>