Create an Account!

Adobe Flash Community Forum for all your Flash, Actionscript and Swift3D Support

Search:
FlashDevils Community
 Recommend Us
 About FlashDevils Community
 Can i become a moderator?
 How do i add Flash to my post?
 
Flash Community Register Flash Forum Control Panel Calendar Member List FAQ Search FLA Files
FlashDevils Community FlashDevils Community > Board > Server-Side > PHP / ASP / Coldfusion > Need Help creating a submit button to send data to PHP


  Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
jkoors
Little Devil

Registered: Sep 2008
Local time: 04:45 PM
Location: Orlando Florida
Posts: 2

Need Help creating a submit button to send data to PHPPost #1

I am creating a contact form in Flash. I cannot get a "submit button" code to work. I will write the scripts I currently have and hopefully someone can help. I will also put a link to the site at the very bottom so that you can see where I am at with this.

The instance "form" of my form has the following action:

t2.onSetFocus = function() {
if (t2_2 == "your name") {
t2_2 = "";
}
};
t3.onSetFocus = function() {
if (t3_2 == "e-mail") {
t3_2 = "";
}
};
t4.onSetFocus = function() {
if (t4_2 == "phone") {
t4_2 = "";
}
}
t5.onSetFocus = function() {
if (t5_2 == "comments") {
t5_2 = "";
}
}

My Reset button that actually works has the following script:

on(release) {
//_parent.t1_2="";
_parent.t2_2="your name";
_parent.t3_2="e-mail";
_parent.t4_2="phone";
_parent.t5_2="comments";

}

Is there a code someone can help me with that will allow my submit button to pickup with variables from the Parent t1 document and send them back to my server and what should my server side PHP script look like?

Here is the link... go to my contacts page and see what I am trying to accomplish, PLEASE HELP!

http://www.diversifiedlandscapemgt.com/testsite/

Thanks!



Report this post to a moderator | IP: Logged

Old Post 09-04-2008 08:36 PM
jkoors is offline Click Here to See the Profile for jkoors Click here to Send jkoors a Private Message Click Here to Email jkoors Find more posts by jkoors Add jkoors to your buddy list Edit/Delete Message Reply w/Quote
cationt
Little Devil

Registered: Sep 2008
Local time: 04:45 PM
Location: Pakistan
Posts: 36

Post #2

add following line in your Html page

<param name="allowScriptAccess" value="sameDomain" />

then you code look like following:

<table width="878" height="859" border="0" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td valign="top" width="766" height="750" ><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="864" height="829">

<param name="allowScriptAccess" value="sameDomain" />

<param name="movie" value="flash/main.swf">
<param name="quality" value="high">
<embed src="flash/main.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="864" height="829"></embed>
</object></td>
</tr>
</table>


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

Help me to help other
Upload, Shere and download your favorite Mobile Stuff for free
http://mygsm.co.nr

__________________
Cationt
http://www.cationt.com
user121@cationt.com



Report this post to a moderator | IP: Logged

Old Post 09-09-2008 03:20 PM
cationt is offline Click Here to See the Profile for cationt Click here to Send cationt a Private Message Click Here to Email cationt Visit cationt's homepage! Find more posts by cationt Add cationt to your buddy list Edit/Delete Message Reply w/Quote
jkoors
Little Devil

Registered: Sep 2008
Local time: 04:45 PM
Location: Orlando Florida
Posts: 2

Post #3

How will this help? I need a submit button that will work with the "parent" form and send the variables from that form back to my .PHP file on my server? Someone please help!



Report this post to a moderator | IP: Logged

Old Post 09-10-2008 03:10 AM
jkoors is offline Click Here to See the Profile for jkoors Click here to Send jkoors a Private Message Click Here to Email jkoors Find more posts by jkoors Add jkoors to your buddy list Edit/Delete Message Reply w/Quote
cationt
Little Devil

Registered: Sep 2008
Local time: 04:45 PM
Location: Pakistan
Posts: 36

Post #4

You need to put Submit button inside flash.

have a look to attachment

Attachment: php_flash_email_form.zip
This has been downloaded 363 time(s).

__________________
Cationt
http://www.cationt.com
user121@cationt.com



Report this post to a moderator | IP: Logged

Old Post 09-10-2008 08:15 PM
cationt is offline Click Here to See the Profile for cationt Click here to Send cationt a Private Message Click Here to Email cationt Visit cationt's homepage! Find more posts by cationt Add cationt to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 04:45 PM. Post New Thread    Post A Reply
  Last Thread   Next Thread
Advertising
Show Printable Version | Email this Page | Unsubscribe from this thread | Download thread

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

< FlashDevils - Terms of use >

Copyright, FlashDevils Community, 2002 -
Flash Archive

Links
Books