Form Validation

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 22nd, 2007, 17:33
Junior Member
Join Date: Feb 2007
Location: England
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Flash Form Validation

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.
Reply With Quote

Reply

Tags
email verification, required feilds

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 04:35.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43