A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Enter information and send it to an address

  1. #1
    Junior Member
    Join Date
    Apr 2009
    Location
    Live in Spain ... very small village
    Posts
    1

    Enter information and send it to an address

    Greetings fellowflashers

    This is a somewhat boring and simple problem, which could probably be answered by virtually anyone of you ... but it's got me.

    In a straightforward text input box..... standard astuff...

    Name
    Address
    E-mail
    telephone no., etc

    I have placed the standard "PRESS' button at the bottom.

    The visitor simply presses ...'PRESS' and the I would like the information to be sent (in any shape or form) .... to an e-mail address ...

    A CONTACT US ..button is not really what iam looking for... I know how that works. It's the above thing.

    As I said ... pretty simple and boring ... but would appreciate the answer.

    Regards from sunny Spain

    Highlander

  2. #2
    Junior Member
    Join Date
    Nov 2009
    Posts
    4
    Hello Every One,
    I am not a very good literate of Flash.

    I have the similar Problem.

    I wish to collect data from the text field and on click of submit button wished all that information to be transferred or post into an email acc for example: [email protected]

    Example of text field are as follow :
    [IMG]s803.photobucket.com/albums/yy312/hasnain125/?action=view&current=textbox-1.png[/IMG]

    Action Script used to re check data field is as follow:

    on (release)
    {
    NameOk = true;
    count = 1;
    if (name eq "")
    {
    NameOk = false;
    } // end if
    if (Number(NameOk) == Number(true))
    {
    error1 = "OK";
    }
    else
    {
    error1 = "Incorrect Name";
    } // end if
    okat = 0;
    okdot = 0;
    okspace = 0;
    okfirst = 0;
    for (count = 1; Number(count) <= Number(length(email)); count = Number(count) + 1)
    {
    mail = substring(email, count, 1);
    if (Number(ord(mail)) == Number(64))
    {
    okat = Number(okat) + 1;
    continue;
    } // end if
    if (Number(ord(mail)) == Number(46))
    {
    okdot = Number(okdot) + 1;
    continue;
    } // end if
    if (Number(ord(mail)) == Number(32))
    {
    okspace = Number(okspace) + 1;
    } // end if
    } // end of for
    if (substring(email, 1, 1) eq "@" || substring(email, length(email), 1) eq "@" || substring(email, 1, 1) eq "." || substring(email, length(email), 1) eq ".")
    {
    okfirst = Number(okfirst) + 1;
    } // end if
    if (Number(okat) == Number(true) && Number(okdot) > 0 && Number(okspace) == 0 && Number(okfirst) == 0)
    {
    error2 = "OK";
    }
    else
    {
    error2 = "E-MAIL INCORRECT";
    } // end if
    }

    If anyone can post code which should include in this & if above code has some mistake please correct it for me I would be delighted and appreciate your efforts.

    Thanks,
    Regards,
    Hash_Flash

  3. #3
    Junior Member
    Join Date
    Feb 2009
    Posts
    21
    You need to send the variables to a programming language such as PHP/ASP

    http://www.macromediahelp.com/flash/..._contact_form/

  4. #4
    Junior Member
    Join Date
    Nov 2009
    Posts
    4
    Thank you Wemustdesing .....

    can you suggest me as I have done everything in flash and publish an HTML page ... where should I include that PHP script .... I might sound dumb but I really can't understand it

  5. #5
    Junior Member
    Join Date
    Feb 2009
    Posts
    21
    You simply need to:

    - Export your swf from Flash
    - Include it in your html page
    - Then copy the php code from the tutorial, save it as mailer.php in the same directory as your flash/ html page
    - Then you should be good to go

  6. #6
    Junior Member
    Join Date
    Nov 2009
    Posts
    4
    Thank you very much, Just a Last Question Wemustdesing
    its should be written in notepad and saved as mailer.php

  7. #7
    Member
    Join Date
    Aug 2007
    Posts
    32
    yes. paste that php code into a notepad file and save it as mailer.php

  8. #8
    Junior Member
    Join Date
    Nov 2009
    Posts
    4

    Thumbs up

    thank you every1 i am sorted thanks 4 the help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center