ActionScript 2.0 :: Contact Form Not Working Properly
Sep 24, 2010
So 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
So 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!".
So 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.
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)
I have a contact form on my site for which the text inputs are created via AS2. This works fine but I cannot get the tabbing to work (or even have any effect) no matter what I do. I have a menu that sometimes displays at the top, sometimes on the left and sometimes at the bottom. If it's at the top or bottom then the form tabbing works fine, however if it's down the side then when i tab from contact_namefield it goes to the 8th menu option, then the 9th menu option, then contact_emailfield then contact_messagefield.Similarly if i tab from the top of the menu it's goes down sequentially to menu option 7, then to contact_namefield, then menu option 8, then menu option 9 then contact_emailfield then contact_messagefield.
I cannot for the life of me work out how to change this, I would rather avoid setting tabenabled=false for every other element on the page (as i'd still like these to be tabbed), but either way I don't think this will fix it as the tabindexes i've specified seem to be having no affect at all, no matter what values i put in (even if i reverse them) the tab order is always exactly the same. I am using the following code and would be so grateful if anyone could point out what i'm doing wrong as I can't for the life of me figure it out!
var currfont=_root.textfont; var inputcol = "0x" + _root.textcolour;var my_fmt:TextFormat = new TextFormat();my_fmt.bold = false;my_fmt.font = "Arial";my_fmt.color = inputcol;
I have a working contact form (.swf) that doesnt work inside another movie. Alone it works, but when I call it in main movie with loadMovie it doesn't.
[URL]
I used files from Kirupa's tutorials, made by claudio and senocular.
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:
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);
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.
I 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]
I'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!
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
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?
I 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.
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.
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?
I 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.
I'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.
I 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.
I 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;
I 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?
I 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.
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?
I know this is a no-brainer for people who happen to know the secret to passing variables from a combobox to PHP. I have wasted all day and I give up.
I have a working, secure Flash-based contact form which sends to a PHP file which then emails the information to the chosen email address.
I want someone to add a combobox to my existing code without altering/deleting anything else. That is all I want. I want to be able to compare before and after and see exactly how you added the combobox and got it to work. I do not want to see completely different code and for you to say, "Well, this is how I would do the email form and it works better." The form I have works great and is secure. I just don't know how to add a friggin' combobox.