-
I got it yeah!!!
Ok I get e-mails now
Only one issue yet. Th form is name,company,email and message.
I fill out the form like so:
name:joe
company:main
email:test@test.com
message: this is a test!
I get this in the e-mail:
from: Nobody
subject: testing mail
joemain
That is all I get all together one line now e-mail or message at all and no break like.
Name: Joe
Company: Main
E-mail: test@test.com
Message: This is a test!
This is the action script:
on (release) {
subject = "Testing Mail";
message = name+company+email2;
this.loadVariables("http://www.main.com/test/simplemail3.php", "POST");
mailstatus="Message being processed";}
The Php is:
<?php
$email ="info@main.com";
$subject = $HTTP_POST_VARS['subject'];
$message = $HTTP_POST_VARS['message'];
mail($email, $subject, $message);
echo "mailstatus=The mail has been sent!&thescript=done&";
?>
How do I resolve this issue?
Thanks
Last edited by tim_ver; 10-27-2004 at 06:08 PM.
-
Senior Member
You do as we did in earlier posts. To add linebreaks, newline
message="Name="+name+newline+"Company="+company+ne wline;
To get a "from" I dont know.
-
..
Updated with the scripts above.
Like this:
on (release) {
subject = "Testing Mail";
message="Name="+name+newline+"Company="+company+ne wline+"email2+newline+"message2;
this.loadVariables("http://www.main.com/test/simplemail3.php", "POST");
mailstatus="Message being processed";}
Does this give it the look of:
Name: Joe
Company: main
?
Last edited by tim_ver; 10-27-2004 at 06:25 PM.
-
.
message="Name="+name+newline+"Company="+company+ne wline+"email2="+email2+newline+"textmessage="+text message+newline;
it is only giving name,company is it in php where var is missing to send the last 2?
The php script is:
<?php
$email ="info@main.com";
$subject = $HTTP_POST_VARS['subject'];
$name = $HTTP_POST_VARS['name'];
$company = $HTTP_POST_VARS['company'];
$email2 = $HTTP_POST_VARS['email2'];
$message = $HTTP_POST_VARS['message'];
mail($email, $subject, $name, $company, email2, $message);
echo "mailstatus=The mail has been sent!&thescript=done&";
?>
It hangs on message being proccessed....
never sends it. Weird though I got name and company and not the other two so I added vars in php script and now notta.
Last edited by tim_ver; 10-28-2004 at 07:25 PM.
-
Senior Member
Try with...
mail($email, $subject, $message);
....as the the other variables are included from the "meddage" var in Flash.
-
..
That is what did work but only gave me:
whenI typed 1 2 3 4
I got
Name=1
Company=2
email2=
message=
I looked in the server error log and saw this:
[error] PHP Warning: mail() expects at most 5 parameters, 6 given in /home/bsp/public_html/test/simplemail3.php on line 8
[error] PHP Warning: mail() expects at most 5 parameters, 6 given in /home/bsp/public_html/test/simplemail3.php on line 5
php is:
<?php
$email ="info@main.com";
$subject = $HTTP_POST_VARS['subject'];
$name = $HTTP_POST_VARS['name'];
$company = $HTTP_POST_VARS['company'];
$email2 = $HTTP_POST_VARS['email2'];
$message = $HTTP_POST_VARS['message'];
mail($email, $subject, $name, $company, email2, $message);
echo "mailstatus=The mail has been sent!&thescript=done&";
?>
-
Senior Member
Theb you have to use less variables in the php ( like the one I wrote with just 3 ).
Im not good with php as I mentioned before.
An explanation would be that the email2 textfield is not in the same timeline that you send the variables from.
-
How do you get Flash to send CheckBoxes and List Boxes choices?
-
-
Senior Member
I have never used the built in boxes unfortunately. But to send all variables from the current timeline you would use...
this.loadVariables("script.php","POST");
-
..
pellepiano,
I checked and name,company and email2 are on layer 35 message is on layer 37 all seem to be on the timeline. Is there another way to check?
-
Senior Member
Maybe you gave the textfields instance names instead of variable names.
-
..
They all have just var names for"name,company and email" but message has a var and instance name.
I removed the instance name and still same thing.
Last edited by tim_ver; 11-02-2004 at 02:09 PM.
-
Senior Member
I dont know what it could be unfortunately.
-
..
Ok i have played with it a little and got it to send again but I get this.
Input is 1,2,3,4
name: 1
email: 3
company: 2
message: Name=1
Company=2
email2=
message=
name: 1
company: 2
email: 3
message: 4
Seems it is doubling up somewhere.
Ideas?
Php script is:
<?php
$email = "support@mainsite.com";
$subject = $HTTP_POST_VARS['subject'];
$message = $HTTP_POST_VARS['message'];
mail($email,$subject,$message);
echo "mailstatus=The mail has been sent!&thescript=done&";
?>
-
Senior Member
I dont get your description.
Whats the code on the submit button?
-
..
on (release) {
subject = "Testing Mail";
message="Name="+name+newline+"Company="+company+ne wline+"email2="+email2+newline+"message="+message+ newline;
this.loadVariables("simplemail.php","POST");
mailstatus="Message being processed";}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|