Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

Flash CS3 email form AS2

This is a discussion on Flash CS3 email form AS2 within the Flash CS3 | PHP | mySQL forums, part of the Flash CS3 generale category; Hello, I set up an email form movie clip in my Flash website. I put needed actionscripts using 2.0. ...


Go Back   Forum Flash CS3 Flash CS4 > Flash CS3 e Actionscript 3.0 > Flash CS3 generale > Flash CS3 | PHP | mySQL

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 14-02-08, 13:53
Junior Member
 
Join Date: Feb 2008
Posts: 1
Rep Power: 0
seokutsa is on a distinguished road
Smile Flash CS3 email form AS2

Hello,
I set up an email form movie clip in my Flash website. I put needed actionscripts using 2.0. I uploaded a php file (mailto.php). I do not see it working on the site.

My questions are:
1. Should the email form be set as a separate flash file to make it work?
2. Is it OK to create the form as a movie clip in a composite flash file?
3. Should the server be set up to accept a php file in order to make the email form work?
Thank you and look forward to hearing from any one.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2 (permalink)  
Old 15-02-08, 10:06
tem's Avatar
tem tem is offline
Moderator
 
Join Date: Jan 1970
Posts: 442
Rep Power: 39
tem is on a distinguished road
Re: Flash CS3 email form AS2

Hi!
I've noticed a similar problem while working in a clip in as2
you should try to write the code that talks to the php in the main timeline..

Code:
mailform = "form.php";
confirm = "please wait for confirmation ..."
action = "send";
loadVariablesNum (mailform, 0, "POST");
gotoAndPlay ("wait");
wait frame:
Code:
loadVariablesNum(mailform, 0);
answer = confirm;
then after wait create a frame called loop:
Code:
if (answer != confirm) {
    gotoAndStop ("done");
}
and a frame that "loops" with it
Code:
gotoAndPlay("loop");
after this a frame called done where you can place a dynamic textfield tracing the variable answer.

here you got the php file:
Code:

/******************************************************

**

**   tConcept Php Mailer 0.9   

**

**    Based on BigJolt Php mailer 2.0

**    07/26/2007

**    Special Thanks to Onsitus and the Masterdrive comunity

**   

*******************************************************/



/******************************************************* 



site details below!



*******************************************************/



// Enter your contact email address: administrator address 

$adminaddress = "info@mysite.com"; 



// Enter the address of your website here include http://www. 

$siteaddress ="http://www.mycoolsite.com"; 



// Enter your site name  

$sitename = "My Cool Site"; 



/*******************************************************



Don't change anything below...



*******************************************************/



// Gets the date and time from your server

$date = date("m/d/Y H:i:s");



// Gets the IP Address

if ($REMOTE_ADDR == "") $ip = "no ip";

else $ip = getHostByAddr($REMOTE_ADDR);



//Process the form data!

// and send the information collected in the Flash form to Your nominated email address

if ($action != ""): 

mail("$adminaddress","Info request",

"A visitor at $sitename has left the following information\n

Nome: $fname

Cognome: $lname

Indirizzo: $indir 

Email: $email

Telefono: $telno


The visitor commented:

------------------------------

$comments



Logged Info :

------------------------------

Using: $HTTP_USER_AGENT

Hostname: $ip

IP address: $REMOTE_ADDR

Date/Time:  $date","FROM:$adminaddress"); 



//This sends a confirmation to your visitor

mail("$email","$sitename", 

"Grazie per essersi iscritto a $sitename!\n

La terremo aggiornata sulle prossime iniziative.

Distinti saluti,

$sitename

$siteaddress","FROM:$adminaddress"); 



//Confirmation is sent back to the Flash form that the process is complete

$sendresult = "Iscrizione avvenuta con successo. Grazie! ";

$send_answer = "answer=";

$send_answer .= rawurlencode($sendresult);

echo "$send_answer";



endif;
__________________
http://www.thetconcept.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools
Display Modes

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Email form con Flash CS3 e PHP Flep Utilità di FlepStudio 99 12-10-08 15:11
Email form Flep FlepStudio utilities 23 17-09-08 20:24
Email Form PRO Flep FlepStudio utilities 29 27-08-08 17:16
Email form Flash CS3 e ColdFusion 8 Flep Utilità di FlepStudio 2 17-04-08 14:07
Email form Flash CS3 and ColdFusion 8 Flep FlepStudio utilities 0 17-04-08 03:39


All times are GMT. The time now is 19:54.


Powered by vBulletin versione 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap


FlepStudio
by Filippo Lughi
P.IVA 03605860406