Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-07-2007, 04:22 AM   #1
videogamer2791
Registered User
 
Join Date: Apr 2007
Posts: 1
Question Flex Email a Form: PHP, ASP, ColdFusion

Hi all,
i am making a web page for a friend that will be at pembrokecycle.com,
I am a Flash AS coder with little experience with Flex, but I knew that it would be a little easier with data, so I used that instead (plus, the components look nicer). I am pretty much done with every thing else except for the "Contact Us" page. In flash, I know to use a php script with a new Load Vars class, but I have no idea what to do with flex. I have seen Google searches with coldfusion, but no tuts. I don't even know if google domains (which he is using), supports coldfusion, so i would like to save that as a last resort. some one please help me.
Also, im only 16, so please keep the explanation a little dumbed down, even though i could probably understand it anyways.
Code:
<mx:Panel label="Contact Us" width="100%" height="100%" title="Contact Us"  horizontalAlign="center" verticalAlign="middle">
<mx:Form width="100%" height="100%">
<mx:FormItem label="E-Mail" width="100%" required="true">
<mx:TextInput width="100%" id="emailBox"/>
</mx:FormItem>
<mx:FormItem label="Subject" width="100%" required="true">
<mx:TextInput width="100%" id="subjectBox"/>
</mx:FormItem>
<mx:FormItem label="Message" width="100%" height="200" required="true">
<mx:TextArea width="100%" height="200" id="messageBox"/>
</mx:FormItem>
<mx:Button id="submit" label="Submit">
<mx:enterFrame>
<![CDATA[
if (isEmail && isSubject && isMessage){
submit.enabled = true;
} else {
submit.enabled = false;
}
]]>
</mx:enterFrame>
</mx:Button>
</mx:Form>
</mx:Panel>
videogamer2791 is offline   Reply With Quote
Old 05-31-2007, 03:29 PM   #2
geneway
Registered User
 
Join Date: Dec 2006
Location: USA
Posts: 3
Send a message via MSN to geneway
Default

Try this gamer,

If you want this to come from you flex form app:

private function emailMe(event:mouseEvent):void {
var url:URLRequest = new URLRequest("mailto:[email protected]&subject ="+subject.text+......whatever);
navigateToURL(url, "_self");
}

Your click event for the submit button should look like this:

<mx:FormItem>
<mx:Button x="10" y="223" label="Submit" click="emailMe()"/>
</mx:FormItem>

I hope that helps. I used to live in the pines so I felt obligated.
geneway is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Submitting input text fields to ASP email form ryan_destroys Server-Side Scripting 3 04-20-2007 06:10 PM
Problem - Flash form to email in PHP sjslovechild Server-Side Scripting 2 01-19-2007 12:51 AM
email form from Flash using PHP? lazerbrains Other Flash General Questions 3 05-15-2006 04:02 PM
Testing email PHP form?!! The Waiter ActionScript 1.0 (and below) 2 12-28-2005 09:23 AM
PHP - mailing list (form) won't send to email. free mojo Server-Side Scripting 4 05-28-2004 03:43 AM


All times are GMT. The time now is 08:37 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.