Simple Form

Posted on 2012-08-22
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
Question by:skyscream
    1 Comment
    LVL 39

    Accepted Solution

    to validate email for @ you can simply use indexOf

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

    for the php form bits have a look a this snipplr thread

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
    Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
    The goal of the tutorial is to teach the user how to how to record live broadcast.
    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.

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now