This is a discussion on "Hello, I really really need some help before I go Insane" within the Flash & Multimedia Forum section. This forum, and the thread "Hello, I really really need some help before I go Insane are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Hello, I really really need some help before I go Insane
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
I've been searching the net for the right code for weeks. I need help with email verification and required fields in my flash form. I've been trying out tutorials for ages, some work some don't but none are axactly what I need and when I try to put two together it never works.
So I have a form with no validation statements that works, but I need email verification and 'tTitle' and 'tSurname' to be required fields if someone could please show me what exactly to add and where exactly to add it I would really appreciate it seeing as I have nearly gone insane trying to work this out, ...............seriously. Oh and I need the response to go into the response textfeild. Please Please could someone help me. Ive given the actionscript and the php code that works so far below. This is the code I have on my actions layer in the .fla file. bContactsubmit.onRelease = function() { email(); } function email() { var sMessage = "Title: " + tTitle.text + "\nName: " + tName.text + "\nSurname: " + tSurname.text + "\nCompany: " + tCompany.text + "\nAddress: " + tAddress.text + "\nTelephone: " + tTelephone.text + "\nE-mail: " + tEmail.text + "\nWebaddress: " + tWebaddress.text + "\nComments: " + tComments.text; lvSend = new LoadVars(); lvReply = new LoadVars(); lvSend.msg = sMessage; lvSend.address = "info@pauletterollo.com"; //Change this to your e-mail. tResponse.text = "Sending Message…"; tTitle.text = ""; tName.text= ""; tSurname.text= ""; tCompany.text= ""; tAddress.text= ""; tTelephone.text= ""; tEmail.text= ""; tWebaddress.text= ""; tComments.text= ""; lvReply.onLoad() { tResponse.text = "Message Sent"; And this is the code in my .php file. Please please help <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <?php $message = $_POST["msg"]; $address = $_POST["address"]; mail($address,"E-mail Form Message",$message); ?> </body> </html> |
|
|
|
||||
|
Re: Hello, I really really need some help before I go Insane
Using JS for this is probably the worst thing you can do. Using a server-side language like PHP or .NET would be a better option in my opinion.
Here's a simple one that I've used a number of times - PHP Contact Script |
|
|||
|
Re: Hello, I really really need some help before I go Insane
Thread Moved to This Forum as requested
|
|
|||
|
Hi thanks for actually looking at my problem I thought no-one was going to!
The first part of script is part of the actionscript of my flash form I got it from a tutorial the second part is the php script , sorry maybe this thread was in the wrong place. Or am I just not understanding what you mean. Do you mean just use the actionscript as is and make your script the php file.?? |
|
|||
|
Wicked someones going to help me!
Well it might be best if you did write one out for me cause I've read so many different tutorials on forms and all with different ways of phrasing the scripts I'm confused as to how exactly I am meant to write it. Also I better say I am basically a complete beginner in actionscripting so any explanation of structure would be super cool. So how you wan do this, I basically want to do a form with several TextInput boxes but I only want some of them to be required and the email to have some sort of '@' and '.' validation. So if you were able to show me a simple form that has some feilds validated and some not I would be able to learn from that?! Also I need to put some checkboxes in so would you be able to help me with those aswell? i have no idea how to add those to the script. Thanks for the help!! |
|
||||
|
Re: Hello, I really really need some help before I go Insane
Alright I will post up some sort of form with validation when I get home tonight.
|
|
||||
|
Re: Hello, I really really need some help before I go Insane
Quote:
Sorry cjrollo So ... maybe this should go in the Flash forum then Last edited by karinne; Feb 27th, 2007 at 18:11. |
|
|||
|
Re: Hello, I really really need some help before I go Insane
To JacobHaug Great Thankyou I'll ckeck for it later,
To Karinne I thought I did put it in the flash forum aswell but I might have buggered it up by mistake and put it in the wrong one Sorry but thanks for responding anyway. |
|
||||
|
Re: Hello, I really really need some help before I go Insane
Thread moved so I can find it later...lol
|
|
|||
|
Re: Hello, I really really need some help before I go Insane
What? Moved?
|
|
|||
|
Re: Hello, I really really need some help before I go Insane
Hey, I'm going away and won't be back at the computer until Monday so I'll check you back then. Cheers for doing this though, yeah!!
Talk to you Laters. |
|
||||
|
Re: Hello, I really really need some help before I go Insane
You still need this? I am so sorry...lol
|
|
||||
|
Re: Hello, I really really need some help before I go Insane
Okay dude, I am so sorry for taking this long. I forgot all about this. But I decided I would just create you one any way. It is kinda crappy looking but the code is nice, and easy to understand. Here is a link to the preview.
Preview of form: http://www.JacobHaug.com/webforumz/testing/email-form/ Download Edit files: http://www.JacobHaug.com/webforumz/t...email-form.zip Okay, every field is required. The email field requires extra validation. The email field requires that it have an "@" symbol, as well as a "." dot. You could also take it to the next level. But you should get the picture; let me know if you have any questions, thoughts, comments, or any problems. P.S. I even though in a preloader...cause I was so mad at myself for taking this long. Sorry again. Thanks, Jacob Haug |
|
|||
|
Re: Hello, I really really need some help before I go Insane
hey jacob am i aloud to use this Email-Form mate Thanks Aaron
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CSS Problem - I'm going insane!! | hoss9009 | Web Page Design | 7 | Apr 24th, 2008 03:48 |
| This is insane | AdRock | Webforumz Cafe | 2 | Sep 24th, 2007 15:08 |
| Tables Driving my Insane! | Zonglars | Web Page Design | 7 | Jul 17th, 2007 01:19 |
| Please Help!! (Before I go totally insane!!)!!! | Smoovasbird | PHP Forum | 2 | Dec 23rd, 2006 13:42 |
| how to delete an insane number of files | jhappeal | PHP Forum | 1 | Nov 20th, 2006 06:13 |