Flash Contacts page

This is a discussion on "Flash Contacts page" within the Flash & Multimedia Forum section. This forum, and the thread "Flash Contacts page are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Aug 13th, 2007, 11:18
Reputable Member
Join Date: Mar 2007
Location: UK
Posts: 305
Thanks: 0
Thanked 0 Times in 0 Posts
Flash Contacts page

Having a few issues with a flash contacts page as it does not send my email. Could someone please check and comment.

The php is:
Code: Select all
<?php
mail("your@emailhere.com", $subject, $message, "From: PHPMailer\nReply-To: $from\nX-Mailer: PHP/" . phpversion());
?>
and the action script code on the whole page is:
Code: Select all
stop();
function lineAdapt() {
    message_send = message;
    while (msg_count<length(message)) {
        msg_count = msg_count+1;
        if ((substring(message_send, msg_count, 2)) eq "\r") {
            message_send = (substring(message_send, 1, msg_count-2)) add "\n" add (substring(message_send, msg_count+2, (length(message_send))-msg_count+2));
        }
    }
    message = message_send;
    delete msg_count;
    delete message_send;
}
and on the button:
Code: Select all
on (release) {
    if (subject eq "" or message eq "" or from eq "") {
        stop();
    } else {
        lineAdapt();
        loadVariablesNum("mail.php3", 0, "POST");
        gotoAndStop(2);
    }
}
it then goes to a new frame, confirming email sending:

I have attached my .fla file so people can see what I have done.
Attached Files
File Type: fla mailer.fla (160.0 KB, 14 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Aug 13th, 2007, 11:19
Reputable Member
Join Date: Mar 2007
Location: UK
Posts: 305
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Flash Contacts page

The email is not entered in the PHP, I know, it is in my code. I have removed it for client security
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Aug 13th, 2007, 15:37
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Flash Contacts page

Well I'll check the .fla later when I have time - but at a quick glance if you have all of your input fields inside a MC name it "form".

And instead of this line:
Code: Select all
loadVariablesNum("mail.php3", 0, "POST");
it can look like this instead (keeping in mind you may need to update some of your other code if it currently is not inside a MC.
Code: Select all
form.loadVariables("email.php", "POST");
Here is a real simple tutorial on a very simple way to do this...

http://www.kirupa.com/developer/acti..._php_email.htm
Last Blog Entry: Yay!? (Oct 8th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
contacts, flash, page

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Flash Button help. Open new page ClemsonTigerACC Flash & Multimedia Forum 3 Sep 23rd, 2007 00:16
Page Turner in Flash euankennedyimorph Flash & Multimedia Forum 1 Aug 6th, 2007 15:11
Walmart Flash Page Help Jalbertson Flash & Multimedia Forum 2 Feb 12th, 2007 12:28
integrating streming media flash on web page mima Flash & Multimedia Forum 0 May 13th, 2006 17:36
Getting Flash to run across page changes Fox Flash & Multimedia Forum 2 Aug 16th, 2005 01:40


All times are GMT. The time now is 21:12.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved