Hello, I really really need some help before I go Insane

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.



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

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 23rd, 2007, 12:14
Junior Member
Join Date: Feb 2007
Location: England
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Hello, I really really need some help before I go Insane

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

  #2 (permalink)  
Old Feb 23rd, 2007, 12:39
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #3 (permalink)  
Old Feb 23rd, 2007, 13:38
Reputable Member
Join Date: Jul 2006
Location: Baldock
Age: 20
Posts: 447
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Hello, I really really need some help before I go Insane

Thread Moved to This Forum as requested
Reply With Quote
  #4 (permalink)  
Old Feb 26th, 2007, 09:50
Junior Member
Join Date: Feb 2007
Location: England
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Question Re: Hello, I really really need some help before I go Insane

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.??
Reply With Quote
  #5 (permalink)  
Old Feb 26th, 2007, 19:50
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Hello, I really really need some help before I go Insane

hahaha...karinne is clamming temporary insanity...lol, she thought it was JavaScript...lol

Anyway, back on to subject. There are some slight tweaks you need to make to the ActionScript in order to make certain fields required. I don't suppose you would mind me just writing a simple contact form...and you peaking at my code...or, would you rather post up the edit file for the contact form, and I could tweak it for you. Up to you!!
Reply With Quote
  #6 (permalink)  
Old Feb 27th, 2007, 09:38
Junior Member
Join Date: Feb 2007
Location: England
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Re: Hello, I really really need some help before I go Insane

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!!
Reply With Quote
  #7 (permalink)  
Old Feb 27th, 2007, 17:53
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #8 (permalink)  
Old Feb 27th, 2007, 18:08
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Hello, I really really need some help before I go Insane

Quote:
Originally Posted by JacobHaug View Post
hahaha...karinne is clamming temporary insanity...lol, she thought it was JavaScript...lol
ooops!

Sorry cjrollo

So ... maybe this should go in the Flash forum then

Last edited by karinne; Feb 27th, 2007 at 18:11.
Reply With Quote
  #9 (permalink)  
Old Feb 27th, 2007, 19:01
Junior Member
Join Date: Feb 2007
Location: England
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #10 (permalink)  
Old Feb 27th, 2007, 19:25
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Hello, I really really need some help before I go Insane

Thread moved so I can find it later...lol
Reply With Quote
  #11 (permalink)  
Old Feb 27th, 2007, 19:47
Junior Member
Join Date: Feb 2007
Location: England
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Hello, I really really need some help before I go Insane

What? Moved?
Reply With Quote
  #12 (permalink)  
Old Feb 27th, 2007, 20:37
Junior Member
Join Date: Feb 2007
Location: England
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #13 (permalink)  
Old Mar 9th, 2007, 22:53
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Hello, I really really need some help before I go Insane

You still need this? I am so sorry...lol
Reply With Quote
  #14 (permalink)  
Old Mar 9th, 2007, 23:18
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #15 (permalink)  
Old Mar 10th, 2007, 08:05
Reputable Member
Join Date: Jul 2006
Location: Baldock
Age: 20
Posts: 447
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #16 (permalink)  
Old Mar 10th, 2007, 08:06
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Hello, I really really need some help before I go Insane

Yeah Aaron. No big...play with it and enjoy!!
Reply With Quote
  #17 (permalink)  
Old Mar 10th, 2007, 08:07
Reputable Member
Join Date: Jul 2006
Location: Baldock
Age: 20
Posts: 447
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Hello, I really really need some help before I go Insane

ok cheers mate
Reply With Quote
Reply

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
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


All times are GMT. The time now is 03: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