?
Solved

Simple Form

Posted on 2012-08-22
1
Medium Priority
?
293 Views
Last Modified: 2012-09-13
Hi all,
Actionscript 2.0      
This is a very simple form. I am trying to send a yes to mysql using php when a user selects a checkbox. I have three check boxes the user can select - visit, email, telephone. They can select all or just one. I have attached the flv the code is within the submit button at the bottom. Also how would I go about validate the email text box so @ is entered.  

Kind regards
0
Comment
Question by:skyscream
1 Comment
 
LVL 39

Accepted Solution

by:
blue-genie earned 2000 total points
ID: 38320793
to validate email for @ you can simply use indexOf

var email:String = "whatever@whatever.com";
if (email.indexOf("@")!=-1 && email.indexOf(".")!=-1)
trace("false");
else
trace ("true");

for the php form bits have a look a this snipplr thread
http://snipplr.com/view/8878/
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Suggested Courses

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question