This is a discussion on "Form Validation" within the Flash & Multimedia Forum section. This forum, and the thread "Form Validation are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Form Validation
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Hi Anyone who might be able to help me,
I need help with email verification and required fields in my flash form. I've been searching the net for 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 two required fields if someone could please show what exactly to addd and wherer 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> Last edited by cjrollo; Feb 22nd, 2007 at 17:40. |
|
|
![]() |
| Tags |
| email verification, required feilds |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Form validation help! | psycho wolvesbane | JavaScript Forum | 16 | Feb 12th, 2008 16:40 |
| AS Form / Validation Help | papalazarou78 | Flash & Multimedia Forum | 0 | Jul 31st, 2007 19:43 |
| Form Validation | feebee | JavaScript Forum | 1 | Aug 3rd, 2006 16:12 |
| PHP Form Validation. | kaz | PHP Forum | 2 | Jul 22nd, 2006 20:47 |
| PHP Form Validation ??? | j4mes_bond25 | PHP Forum | 2 | May 31st, 2006 23:08 |