Developer Support »

Remove field name from email  (See more user questions)

Hi

Thank you for your question.

You will need to change the code in the script to do that. I don't know if
you have my free script or my Pro script. I will show you how to do it in
the free script. Locate this long line of code in my script
(FormToEmail.php):

function
build_message($request_input){if(!isset($message_output)){$message_output
="";}if(!is_array($request_input)){$message_output =
$request_input;}else{foreach($request_input as $key =>
$value){if(!empty($value)){if(!is_numeric($key)){$message_output .=
str_replace("_"," ",ucfirst($key)).":
".build_message($value).PHP_EOL.PHP_EOL;}else{$message_output .=
build_message($value).", ";}}}}return rtrim($message_output,", ");}

Change it to this:

function
build_message($request_input){if(!isset($message_output)){$message_output
="";}if(!is_array($request_input)){$message_output =
$request_input;}else{foreach($request_input as $key =>
$value){if(!empty($value)){if(!is_numeric($key)){$message_output .=
build_message($value).PHP_EOL.PHP_EOL;}else{$message_output .=
build_message($value).", ";}}}}return rtrim($message_output,", ");}

I haven't tested this, but it should work.

Any questions, just let me know.

Best wishes.

Charles Sweeney
https://formtoemail.com
The world's easiest feedback script!

----- Original Message -----
Sent: Friday, November 21, 2008 10:43 AM
Subject: FormToEmail script


> Comments: A message from the Netherlands:
> Is it possible to send only the input in a field, and not the fieldname.
> Like:
> Name: Joe
> I want only:
> Joe
>
> Thank you.