E-Mailing and Form Creation with PHP

Hi Friends,

This is my first post to this forum.
Your website is excellent…please keep it up your good work.

Dear Friend, I am not very well at Flash. I have one problem. I know that you will help me out. This is my college project.

Now lets concentrate on problem.
I have 3 controls on Flash Canvas.

  1. DropDown ComboBox or List Box -> Contains City Names.
  2. Text Box -> To input user name
  3. Text Box/Text Area -> To input message
  4. Submit Button.
  5. TextArea - Showing Information about City selected from dropdown list.

Now the problem begins.
Dropdown Box contains city names like…
-London
-Paris
-Washigton
-Delhi

When user selects a city name…
Like -London from the Dropdown List
and enters his name in the textbox and message in textarea
Then the City information should be seen in the last Textarea or Text Box.

Means if London is Selected then Bottom TextArea should contain England.
If Delhi is Selected then Bottom TextArea should contain India.

And the next query is…
We have some value attatched to cities from begining. (Variables Declared)

-London = Hotmail.com
-Paris = Usa.net
-Washigton = Yahoo.com
-Delhi = Rediffmail.com

When user selects a City Name from Dropdown and Enters his Name in the Textbox then a E-MAIL with Message should be sent as…

[u][color=#006699]TextBox1@DropDownListData.com[/color][/u]

where
TextBox1= username
DropDownListData = CityName = Mail provider.

means… if a user selects city name London and enters user name as Ashwini then the mail with message should be sent to .

ashwini@hotmail.com

Also should displayed result succeded to send or not.

I think you understood it.
I know it is not possible to send e-mail to unknown mail Id person.
But what to do I want this code.

Please help me… I will be very thankfull to you.

Maybe this tutorial can give you some ideas on how to work with components:
http://www.kirupa.com/developer/mx/components.htm

I am new to Flash. Can you please give complete step by step tuto. for this.

If you can please…

best regard’s

Seems like a big college project to me if you don’t know flash :wink:

The link Claudio provided is in fact a step by step tutorial :slight_smile:

You all are genius…
Just tell me basic about Form desining and ActionScripting for this project.

I’m far from a genius, maybe Claudio is but not me :lol:

Basically Flash forms work like html forms. They push data to a server side page that then handles the information from there.

In html you can make a textfield like


<input type = "text" name = "myVar">

In Flash you can draw a textfield with the type tool and give it the variable name “myVar”.

Instead of haveing a html submit button you can make your own in Flash. Then the submit button would have some type of code to send the data to your asp/php/coldfusion page.


on(press){
loadVariablesNum("yourpage.php");
}

*Note this is just a quick example.

This tutorial will show you how to create a form and send the data to a MS Access Database

http://www.kirupa.com/developer/actionscript/forms_database.htm

I think i have to design my Form on HTML webpage first.
I good at Web Design. I will attatch this newly designed HTML form tommorow to show you.
Then please convert that form to suit my needs…
Thanks…

It is middle night in India… and my mom is calling me to sleep…
Bye…
I will post my HTML Form Mail Script tommorow morning.

Thanks for support…

I am giving you the exact form designed in HTML.
I know HTML very well… and created one now to show you…

Can you please give me the convertion of this HTML mailing form to Flash Form.
I don’t know how to convert it into Flash… I tried but fails everything…
Please give me the Flash Form Code…

Attatchment : Email.zip file containing designed mail Form in HTML.

Thanks again

I hope you have MX2004 because in this example we are using the combo box which is not in the previous versions of flash.

The flash form is set up with no code. You can find a complete and very good tutorial on http://ultrashock.com

Go to their site, go to Tutorials >> Flash MX2004 >> UI Components.

They teach you how to set up the Flash code to pusht the data to a server side page. Which again is in the link that Claudio posted.

http://digitalosophy.com/Kirupa%20Files/Flash/

yes i have flash mx 2004…

But… component which this form uses also comes with Flash MX.

I developed PHP script to so it…

Please tell me how can I do action scripting…?

If you try then yes i will give you coding. But so far we have all pointed out great tutorials to learn, and it seems you refuse to try, I have no problem helping but I do have a problem with “Hand Me’s” :slight_smile:

If you look over the tutorials that were posted you should have no trouble at least getting a good start. Once you give it a go, then post what you have and I will be more then happy to help you out :slight_smile:

Actually i started bulding form using tutorials…
I can’t show ComboBox City name info in Bottom Text box
If user select London then the bottom box should display… England
If user select Washington then the bottom box should display… America.

This is the problem while building form.

Ok I’m a little busy this afternoon, I might have some time tonight to check it out for you. I’ll see if I can come up with something small that will work for you.

Ok… waiting for you…

No one is here to help me…

Please…