Hi
Is it possible to insert the contents of 2 form fields into one
database field by concatinating them together.
Something like this
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "frm_register")) {
$insertSQL = sprintf("INSERT INTO users (name, user_name, user_password, user_email, userGroup) VALUES (%s, %s, %s, %s, %s)",
GetSQLValueString($_POST['name'] . ' ' . $_POST['surname']),
GetSQLValueString($_POST['user_name'], "text"),
GetSQLValueString($_POST['user_password'], "text"),
GetSQLValueString($_POST['user_email'], "text"),
GetSQLValueString($_POST['userGroup'], "text"));
I tried the above and received this error -
Fatal error: Call to undefined function GetSQLValueString()