mail($_POST['field_2'],$mysubject,"phpFormGenerator - Form submission","
That is what I have, The Form Information is sent to whatever Value they fill in the Email Field. But, I want to have it so that I get a Copy of the Email sent to me as well. So I would like to Change:
mail($_POST['field_2'],$mysubject,"phpFormGenerator - Form submission","
To
mail($_POST['field_2'],blah@blah.com,$mysubject,"phpFormGenerator - Form submission","
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You have the right idea but the mail() function looks for comma separated values so your example will confuse the mail() function by shifting in new values for fields that would reslut in unexpected behavior.
Try surrounding the two email addresses with quotes to keep the email addresses associated with the first {send to} field of the mail() function.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've tried Moving around some Values around, like this.
mail("$_POST['field_2'],dune44@t-and-a.host22.com",$mysubject,"phpFormGenerator - Form submission","
And
mail("$_POST['field_2']dune44@t-and-a.host22.com",$mysubject,"phpFormGenerator - Form submission","
And
mail(($_POST['field_2'],dune44@t-and-a.host22.com),$mysubject,"phpFormGenerator - Form submission","
But It comes up with
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /example/example/example/form/tmp/persistent/Postulio Form/processor.php on line 8
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I would have thought the first example would work. I have examples with both comma separated addresses and semi-colon separated values.
Try creating a variable with both addresses first then put the variable in the first mail() field.
$mailto=$_POST['field_2'].",dune44@t-and-a.host22.com";
mail(($mailto,$mysubject,"phpFormGenerator - Form submission","
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
mail($_POST['field_2'],$mysubject,"phpFormGenerator - Form submission","
That is what I have, The Form Information is sent to whatever Value they fill in the Email Field. But, I want to have it so that I get a Copy of the Email sent to me as well. So I would like to Change:
mail($_POST['field_2'],$mysubject,"phpFormGenerator - Form submission","
To
mail($_POST['field_2'],blah@blah.com,$mysubject,"phpFormGenerator - Form submission","
You have the right idea but the mail() function looks for comma separated values so your example will confuse the mail() function by shifting in new values for fields that would reslut in unexpected behavior.
Try surrounding the two email addresses with quotes to keep the email addresses associated with the first {send to} field of the mail() function.
Hello Everet,
I've tried Moving around some Values around, like this.
mail("$_POST['field_2'],dune44@t-and-a.host22.com",$mysubject,"phpFormGenerator - Form submission","
And
mail("$_POST['field_2']dune44@t-and-a.host22.com",$mysubject,"phpFormGenerator - Form submission","
And
mail(($_POST['field_2'],dune44@t-and-a.host22.com),$mysubject,"phpFormGenerator - Form submission","
But It comes up with
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /example/example/example/form/tmp/persistent/Postulio Form/processor.php on line 8
I would have thought the first example would work. I have examples with both comma separated addresses and semi-colon separated values.
Try creating a variable with both addresses first then put the variable in the first mail() field.
$mailto=$_POST['field_2'].",dune44@t-and-a.host22.com";
mail(($mailto,$mysubject,"phpFormGenerator - Form submission","
Correction:
mail($mailto,$mysubject,"phpFormGenerator - Form submission","
The double left bracket was a mistake.
Thanks that worked.
But
In your Post, Not knowing if it was a Mistake or not, you put (( instead of (. after the mail