Results 1 to 4 of 4

Thread: Flash/PHP

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member Olly79's Avatar
    Join Date
    May 2005
    Posts
    264

    Flash/PHP

    Hi all,

    Just wondering if anyone can help me with the following issue:

    I have a contact form in .flash and I'm using PHP to make it live;

    Code:
    on(release) {
    if (your name eq "" or your email eq "" or message eq "") {
    		stop();
    	} else {
    		loadVariablesNum("form.php", 0, "POST");
    		gotoAndStop(2);
    	}
    }
    I have created my form.php file:

    PHP Code:
    <?

    $destination="[email protected]";
    $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); ?>
    And I'm now calling this function through the following ActionScript:

    Code:
    on(rollOver) {
    	
    		this.gotoAndPlay("s1");
    	
    }
    
    on(rollOut, releaseOutside) {
    		
    		this.gotoAndPlay(_totalframes - _currentframe);
    	
    }
    
    
    on(release) {
    if (your name eq "" or your email eq "" or message eq "") {
    		stop();
    	} else {
    		loadVariablesNum("form.php", 0, "POST");
    		gotoAndStop(2);
    	}
    }
    However the button doesn't appear to be active. I have checked my variables, server has PHP and I'm left wondering what else! Could anyone provide assistance.

    Much appreciated.

    Olly
    Last edited by Olly79; Apr 11th, 2007 at 11:37 AM.

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