www.webdeveloper.com
Results 1 to 5 of 5

Thread: Flash & PHP

  1. #1
    Join Date
    Apr 2007
    Posts
    10

    Smile Flash & PHP

    Hi all,

    Just wondering if someone could help me with the following:

    I have a submit details form, which has a SUBMIT button. Now I have coded in the following actionscript for the above:

    Code:
    on(release) {
    if (your name eq "" or your email eq "" or message eq "") {
    		stop();	} else {
    		loadVariablesNum("form.php", 0, "POST");
    		gotoAndStop(2);
    	}
    }
    And subsequently I have coded the following PHP file associated with the SUBMIT button:

    PHP Code:
    <?

    $destination
    ="user@me.com";
    $name=$_POST['name'];
    $email=$_POST['email'];
    $mes=$_POST['comments'];
    $subject="Message from $name;
    $mes="Name : $name\n
    Email: 
    $email\n
    Comments: 
    $mes\n";
    mail($destination,$subject,$mes); ?>

    Now the above doesn't appear to work, therefore I was wondering if anyone could advise me on where I'm going wrong and what I need to do!

    Many thanks

    Oliver
    Last edited by Oliver79; 04-29-2007 at 02:16 PM.

  2. #2
    Join Date
    Aug 2005
    Posts
    99
    Oliver, do you still need help with this email form?
    I see all kinds of issues in your codes. I build these all the time.

  3. #3
    Join Date
    Apr 2007
    Posts
    10
    Hi,

    Yes, help would be good as this is the first time I have used PHP.

  4. #4
    Join Date
    Aug 2005
    Posts
    99
    Would you like to mail me your FLA so I can get it all working? Or do you want me to make you an example?
    e-m-a-i-l-m-e

  5. #5
    Join Date
    Apr 2007
    Posts
    10
    Hi,

    Yes, I will email you where I have got to and if you could possibly assist, that would be very much appreciated.

    Many thanks.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles