ActionScript 3.0 :: Contact Form Stays On Sending And No Answer Comes From Php
Aug 3, 2010I have a contact form but it stays on sending and no answer comes from php I think. Is this a coding problem or a server side problem.
[Code].....
I have a contact form but it stays on sending and no answer comes from php I think. Is this a coding problem or a server side problem.
[Code].....
The contact form doesn't seem to sendI'm not sure where the problem is but i have tried to attach all the relevant files (i might of missed something). I don't even know where to start The email i'm trying to send to at the moment is redpandadesign@gmail.com but that will change to info@pedrovirgil.net once i have it working.
View 7 RepliesThe form is not sending a message to my email. I am not sure whether the problem is in the AS 3.0 code or the PHP code, anyway here's the code:
Actionscript 3.0 code:
function handCursor(e:MouseEvent):void {
e.target.buttonMode=true;
e.target.useHandCursor=true;
} build variable name for the URL Variables loader
var variables:URLVariables = new URLVariables;
[Code] .....
I have a contact form on my flash site that collects the users name, email address and message. It then forwards this to my email address.The form is working, however I get an error after it has been submitted as follows:
-------------------------------------------------------------
TypeError: Error #2007: Parameter text must be non-null.
at flash.text::TextField/set text()
[code].....
how to save contact form data in a textfile rather than sending a mail?
View 3 RepliesSo I have built a contact form out of AS2 and PHP. PHP 5 is enabled on my server, so that's not a problem. I think there is a slight error within my code somewhere. What happens is once online, you fill out the form and hit post, it goes to the "error sending email!". Below is my code so you can take a look at it. I also have included below that a link to download the actual files.
[Code]...
the source files work perfectly when I upload them to my server - but when I insert the form into my flash website - I am unable to receive the contact email at all. The problem must be with the flash file becuase I have not altered the php (except to send to my email)
I am using Flash CS3 (but publishing for action script2) I have double checked all my input field sare named correctly with var_names that match the php code. The form fields have been created as a moviclip named "form" and the following action script attached:
[Code]....
I am using loadVars with the send method to send my contact info to a php file. This works fine but when I press the submit button the browser goes to the email.php file. How do i prevent it from opening that file in the browser window?
Heres the [AS]
lv = new LoadVars();
lv.name = name;
lv.company = company;
lv.phone = phone;
lv.email = email;
lv.message = message;
lv.send("email.php", "POST");
}
[/AS]
I am really in trouble with flash forms and need help please. Ive been trying to get a contact form working for a few weeks but have had no luck.Below is the code I am putting in to the flash form and php file.(this is the code I have put for the send Button)
on (release) {
if (name eq "" or subject eq "" or message eq "" or email eq "") { stop(); } else { loadVariablesNum("form.php", 0, "POST"); gotoAndStop(2); }}
(this is the code I have put for the clear Button)
on (release) { name = ""; subject=""; message=""; email="";}
(And this is the php file i created in dreamweaver and saved it as form.php)
$to = "your_email@email.com"; $msg = "$name
"; $msg .= "$message
";
mail($to, $subject, $msg, "Message From: Online client
Reply-To: $email
");
?>
I have uploaded the swf file and php file on the server but my form is still not working by sending the information to my email.
I created a simple web site in flash cs4 with a contact form, however, when I press submit, no email is sent even though my site says it was successfully sent.
Here is my actionscript and PHP:
function submit(e:MouseEvent):void{ var variables:URLVariables = new URLVariables(); variables.fromname = nameText.text; variables.fromemail = emailText.text; variables.frommessage = messageText.text; var req:URLRequest = new URLRequest("contact.php"); req.data = variables; req.method = URLRequestMethod.POST; var loader:URLLoader = new URLLoader(); loader.dataFormat = URLLoaderDataFormat.VARIABLES; loader.addEventListener(Event.COMPLETE, sent);
[code]....
I have a request to create a contact form within one of our existing Flash sites, [URL] (password is "insight"). I can't use PHP because our server doesn't support it (long story, my company has very tight restrictions on what they'll support due to government guidelines on security online).
All the searches I've seen use PHP to accomplish this, so I'm hoping someone knows how to do this using JavaScript.
Is i can make contact form uisng AS 2.0 or AS 3.0 ?
View 2 RepliesI followed Lee's contact form tutorial and was able to have a successful contact form work when I test movie in Flash. Once I uploaded the swf and html to my server, I can not get it to work online. Here is a link to the page in question... [URL]
View 2 RepliesI'm using Flash CS3 with AS2 and have been trying to set up a basic contact form and nothing seems to work. I used this [Url]to create the AS code for the send button for my form + the php code as well from this Kirupa link.I'm being hosted by Godaddy with the linux server with the email being sent to...When I fill out the form and submit - nothing is recieved in my inbox.Having tested the forwarding from Godaddy to yahoo - does work!
View 6 RepliesI am wondering if it is possible to create a contact form in AS3 without using PHP? The reason is because I am planning to create a co-op portfolio and host it on my university file space. The problem is that the university server doesn't support PHP, or other server side scripts
View 4 RepliesI am wondering if it is possible to create a contact form in AS3 without using PHP? The reason is because I am planning to create a co-op portfolio and host it on my university file space. The problem is that the university server doesn't support PHP, or other server side scripts. Is this still possible?
View 2 RepliesI am creating a contact form and I have completed the form in flash.How do I get flash to talk to php so that when a user clicks on the submit button it will send the data via php to an email account. Right now I have trace functions that are reading the input in flash. I just need to figure out how to communicate to php. It would be a bonus if I the input text can check to make sure the email is a valid email.
View 2 Repliesi am trying to edit flash site , i had finish all edits i want except
1- the menu in flash i don't know from where i can change the words which is in the menu
2- i don't know also from where i can setup the contact form to receive the messages from people ( put my e-mail and wait , set it up )
I am wondering if it is possible to create a contact form in AS3 without using PHP? The reason is because I am planning to create a co-op portfolio and host it on my university file space. The problem is that the university server doesn't support PHP, or other server side scripts. Is this still possible?
View 3 RepliesI have created a contact form with different areas of information available. I need to know how to make it work now. I want to be able to click the "submit" button and have it send the information supplied in the text boxes to my email address.
View 1 RepliesI'm trying to add a contact form to the end of a video. I'm assuming this would be fairly simple with flash/AS, but I'm not incredibly accustomed to itI have some flash and AS experience, so I should be able to handle it. But I would love a quick tutorial to point me in the right direction.
View 12 Repliesflash contact form will only accept certain keys, Like zxvywghjk.. and number keys will not type into it
View 3 RepliesI am trying to write a contact form.It consists of Textfields.I am new to Actionscript so I createdthem by placing each field on a form in Frame 1 of a layer called data_fields.Because it is long I am just going to place part of it in the forum.If anyone can help and needs more information let me know.The very first thing I do is execute a function to init the fields.
Example: FullName.text = ""; FullName.background=true; FullName.backgroundColor=0xffffff; . . Comments.backgroundColor=0xffffff;Then:
FullName.onSetFocus = function(oldFocus:Object){ FullName.background=true;[code].....
The contact form isn't work and message isn't send.
nametxt.text = eventtxt.text = reviewtxt.text = "";
sendbtn.addEventListener(MouseEvent.CLICK, bsend);
clean_btn.addEventListener(MouseEvent.CLICK, clean);
var timer2:Timer;
var var_load2:URLLoader = new URLLoader;
[code]....
This code is used for "review" (without e-mail).
I'm working on a flash template from templare monster. The thing is that when i open the .HTML file of the templare (which call for the .swf file) everything works fine. Even the contact form. But when i open the .fla file And wihtout make changes i export the .swf ( or publish it) everything works cine except the contact form. And with that i mean i cant write in it. Even i cant write numbers.The files of configuration And structure(.XML) aré loares properly And the contact (php & asp) files too. [URL]
View 1 RepliesI recently bought a flash template from flashden and the authors support is a bit slim so i thought i'd post it here.
There is one flash file and it has a contact form. They are sitting in a subdirectory on my website [URL] The contact form has a button and the action script is as follows
on (release) {
//Localise the needed variables
sender_mail = this._parent.Semail.text;
sender_name = this._parent.Sname.text;
[Code].....
Do you know any good and mainly working AS3 contact or email form?
View 2 RepliesI use an xml flash website and in it there is a contact form. The form works just fine, but when i fill in the info with greek characters, at the incoming mail i see squares and question marks(unicode problem). For this form i use these files:[code]Should i perhaps insert some code at .fla to make the greek characters at incoming emails appear?
View 0 RepliesI spelled something wrong? The input logic works... here is my form when I comment out the code in sendMessage...however, when I leave the code in sendMessage in it doesnt work.leSigh... I was hoping I could rig this up right, but alas....rrorsQuote:
Line 1641119: Access of possibly undefined property variables through a reference with static type flash.net:URLRequest.
Line 1661136: Incorrect number of arguments. Expected 1.
[code]......
I am trying to use checkbox in a contact form (mail sign up) with php. I managed successfully to read the name and email from the form but struggling to extract information from checkbox. I have 4 checkbox options. They are store location. So user can select Location 1 and/or Location 2 etc... (up to 5). How to extract the data from these checkbox and make them available to be sent via php?
View 2 Replies