Jun 25th, 2011, 7:44 AM
Found this tech note: http://modules.formtools.org/submission_...ds_example
I want to combine First Name and Last Name fields into one field for use elsewhere I tried this and it did not work:
if ( (isset($_POST["first_name"]) && !empty($_POST["first_name"])) &&
(isset($_POST["last_name"]) && !empty($_POST["last_name"])) )
{
$_POST["name"] = "{$_POST["first_name"]}_{$_POST["last_name"]}";
}
Does this work for creating a merged field if I am using FormTools internal forms?
I want to combine First Name and Last Name fields into one field for use elsewhere I tried this and it did not work:
if ( (isset($_POST["first_name"]) && !empty($_POST["first_name"])) &&
(isset($_POST["last_name"]) && !empty($_POST["last_name"])) )
{
$_POST["name"] = "{$_POST["first_name"]}_{$_POST["last_name"]}";
}
Does this work for creating a merged field if I am using FormTools internal forms?