[RESOLVED] Please Help With PHP : flash contact form won't send emails
Hello again community,
Could someone please help me. My contact form does not send messages to my email account.
I have been facing several issues with my online flash portfolio. My website content and buttons were all made with Flash CS3 using Actionscript 2.0. I used a php script that will interact with my flash contact form to send messages to my email. Then i inserted my swf file into an html blank page i made with Dreamweaver Cs3.
My server uses PHP 5.2.17. I think the variables in my contact form are not being prompted correctly since I may be using old PHP scripting. I do not know where to being to fix this issue.
I am attaching my php file to see if this helps to define the cause.
Thank you in advance for your assistance.
if this is your complete script, it lacks the opening <?
In that case it would also match some ancient (10 years ago) convention to automatically import variables.
Today you need to do something like
if this is your complete script, it lacks the opening <?
In that case it would also match some ancient (10 years ago) convention to automatically import variables.
Today you need to do something like
Code:
$subject = $_REQUEST['subject'];
for every variable
Musicman
Hi again,
I tried reformatting my php code using the coding for each variable as I think you suggested, but my contact form did not send a message to my email after i tested my movie.
Could you revise my PHP code please? Incase this helps to pinpoint my errors, I am also attaching the Action Script 2.0 that is assigned to my SEND and CLEAR Buttons within my Flash movie's contact form.
SEND BUTTON As2 code:
Code:
on (release) {
if (name eq "" or subject eq "" or message eq "" or email eq "") {
stop();
} else {
loadVariablesNum("emailform.php", 0, "POST");
gotoAndStop(2);
}
}
------------------------------------------------------------------
CLEAR FORM BUTTON As2 code:
Code:
on (release) {
name = "";
subject="";
message="";
email="";
}
How to make email account setting for receiving PHP messages
Originally Posted by Musicman
Things you should consider once it is working: the email should be checked to NOT contain unwanted characters such as newlines
Musicman
Thank you for helping me understand how to make the PHP code work.
I do not know where to look in my email account for the setting you mentioned above (do not contain unwanted characters). Could you give me an idea of the location for that email option please? My email account is with Gmail.
and all these people would get the bad guy's rubbish message from your server
Musicman
Hello Musicman,
Wow thank you for helping me with that stream of code and telling me the necessity of it. Well thanks to you my contact form is functioning well.
I am doubting something I noticed when i sent my self an email is normal. When i received the message, the user's name was the name and email of my friend's Server where I am currently hosting my website. Is that normal? I attached a screenshot of the message to demonstrate what I said.
Please avoid to put the email from the contact form ther unless you can make sure it arrives. Some sites (eg googlemail, aol) add signatures and stuff to their outgoing mails that the receiving mail server might check. Chances are that it might decide "aol has made a public promise that all their mails go through certain ip addresses but this one says aol and comes from hostgator" and would throw it away
Thanks again for your help. Very cool stuff. The code is working nicely.
There is still a strange problem, I am getting two emails:I now get my messages from the corresponding email inserted by the sender, but I am still receiving the one from my friend's server username. It does not bother me getting double emails. I guess since I am using my friend's server to host my website it will use his username?
I am including my code. When you get the chance, could you verify my code please?
Всем привет тоже проблема такого же характера
я в этом деле полный нуль :) прошу сильно не бить
в общем есть исходник к форме а php скрипта который обрабатывает эту форму нет
вот хотел бы поинтересоваться может мне помочь ктонибудь
исходник
Всем заранее спасибо
Всем привет тоже проблема такого же характера
я в этом деле полный нуль прошу сильно не бить
в общем есть исходник к форме а php скрипта который обрабатывает эту форму нет
вот хотел бы поинтересоваться может мне помочь ктонибудь
исходник
Всем заранее спасибо
I appreciate the time you took to write your message, but unfortunately I am unable to read it. I understand english and spanish. If you could write your message in english or spanish I would very much appreciate it.
I hope I am not offending you. Thanks for the input.
I appreciate the time you took to write your message, but unfortunately I am unable to read it. I understand english and spanish. If you could write your message in english or spanish I would very much appreciate it.
I hope I am not offending you. Thanks for the input.
Hello everyone, too, the problem of the same nature
I'm in this business full null please do not hit much
in general, is the source to form a php script that handles this form is not
this would help me to ask any living creature
source
All thanks in advance
Attached Files
Hello everyone, too, the problem of the same nature
I'm in this business full null please do not hit much
in general, is the source to form a php script that handles this form is not
this would help me to ask any living creature
source
All thanks in advance
Attached Files
Hello again,
are you saying the script you attached can be used in my flash movie (swf)
for my php email to work good?