Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Order Form



I have made a order form with loads of variables. Can anyone tell me how to get the variables in to the e-mail?

I want this to work like when you push "send" button mail program opens an variables are loaded in to the mail.

jeg fruster snart



FlashKit > Flash Help > Flash ActionScript
Posted on: 12-08-2001, 07:59 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Order Form - Order Fields?
hi,

i just don´t get how to make the input fields become in a secuencial order when you press the tab button,
i mean give them the order i want,

and also, if you use the sendmail.asp in the server,
there also are very disorganisated,
with no specific order,

do any of you solve this deal ????

ok thanks

Tab Order In Form
How do I control the order the cursor will move from field to field when hitting the tab kay in a form??

Thanx

Form Tab Order
Ok, Im sure someone has asked this before and im not all that sure there is a real solution, but does anyone know how to controll the tab order for forms bulit in flash (v4 or v5). I know macromedia has some sort of extension u can use to help but it wont work on windows IE, so its a wee bit limiting hehe. any suggestions welcome! thanks in advance!

Help With Order Form
Hello Everyone. I am trying to create a order form that will communicate the data to a PHP script and then send to someone via email. That part I have down, here is my problem: I have a shell swf that all movies are loaded into. These products are shown in one of these loaded swf's and then when the product is clicked on launches another swf which has text fields for entering quantity. I have tried to load this last swf into an MC but then the text fields wont work meaning they are not there and cannot be typed into. When I load this last swf on the top of another movie the text fields work fine. My second problem is trying to figure out a way to store all this data somewhere so all the info can be sent to the PHP script at once and with the swf loaded on top I dont see how I can do it. Anyone who can help I am thanking you in advance.

How To Set Tab Order On Form
Is there a simple way to set tab order for a form? I have a number of fields, but the tab order is all out of wack. Can someone point me to a tutorial or explain how to do such a thing? Thanks muchly!!!

Form TAB Order
what code do i need, to make the tab button work?

i'm using:

Selection.setFocus("name");

on the 'name' field to start the whole thing off, but it ignores the rest when i tab!

rat

Order Form HELP
So all i'm looking for is a way for my customers to type in their name e-mail and a message to me! Then when they click SUBMIT the info they entered gets sent to my E-mail. I no how to make an input text box an all ... and all the tutorials so me how to get threw the whole process but DOESNT SHOW ME HOW TO get the info sent to myself ! any ideas?

An Order Form
Is it hard to make a order form in Flash? Any hints how to do it?

Order Form
hello, I would like to make an order form in an accordian, one frame being order info, one being shipping info, and one being payment info. How can I get a submit button that posts the info to a database or emails it to me? I prefer the email action over the database, as I have no knowledge of php or asp or whatever it takes for a database, but I wouldn't mind learning anything. Thanks for any help. I have cs3, but am using as2. I have no idea what to do, but i know how to do the email thing in html, if that helps.

Order Form Php Help
Hello my name is Adam, I have a slight problem with my fla file, I have the visual layout of my order form, complete with 8 UI component combo boxes, and about 12 or so UI text feilds, what i need to happen is when somebody clicks on the flavors and the quantity of products, it then adds up the cost and shows it at the bottom, they then click submit, and the order form gets sent to my email address... if you don't understand what i mean, i'll gladly send the flash .fla so that maybe someone could code it for me... i would be very greatful.

with the math its basically people can order in quantities of 6 if you order only 6 its $12 if you order 12 or more its 20 for each 12, and the 6 becomes 12 still so if you order 18 its $32 but 24 its $40

(ehehe confusing???)

i'll send the .fla if anyone would like to help me

Thanks for your time,

Adam

(ssjbeaver@hotmail.com - email (incase))

Tab Order For A Form
Here's the code I'm using to dictate the Tab Order for my form.

_root.name.tabIndex = 1
_root.email.tabIndex = 2
_root.message.tabIndex = 3
_root.send_button.tabIndex = 4

But it's not working right. First of all...it puts all this weird text in the text fields, and second it doesn't go directly to the Send Button (my tabIndex4).

Any ideas...??


Troitone

::|:|:: Flash Order Form - ASP Or CGI? ::|:|::
INFO
----
I've got an order form that you can view the source code for. Here it is...

SOURCE: http://www.aessportswear.com/tecumseh/camp8.fla
"Working": http://www.aessportswear.com/tecumseh/camp8.html

FYI, the "submit" actions are in the "Proceed" button.


PROBLEM
-------
I can't figure out how to make it save the user input data from the form onto the server, or email the data to me (in the background without opening Outlook). This is my first form.

Can you help me?

Thank you,
Mark

Form Fields - How Do I Set The Tab Order?
I've built a form in Flash, but I have one field that get's skipped when tabbing from field to field.

I noticed there's a way to set tab order in MX, but I'm publishing as Flash 5.


Any help is greatly appreciated,
Christopher Raymond

PLEASE HELP Scrollable Form Tab Order.
Here's the problem:

I have a movie clip that contains a form and all the actionscript necessary to send the form results to a cgi/perl script which in turn sends me the data (which works great). In the form timeline I have the following script for tab order (only it doesn't work):

/*in the next frame (just to be safe) of the timeline that the
textfields appear.*/

stop();
a = ["name", "company", "phone", "email", "message"]
Selection.setFocus(a[0]);

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

//on a blank button on the same timeline

on (keyPress "") {
//for the case where the user clicks on any field.
if(Selection.getFocus()!=this+"."+a[i]){
for(i=0; iif(this+"."+a[i]==Selection.getFocus())break;
}
}
//TAB:forward. SHIFT+TAB:backward.
Selection.setFocus(a[i=(i+!Key.isDown(Key.SHIFT)*2-1+a.length)%a.length]);
}

Instead of going to the next text field in the form, the tab focus goes all over to the different buttons in the movie. I think the reason the tab key won't advance the I-beam to the next text field within the form is because I've inserted this form into a scrollpane UI component. But the form has to be scrollable in the movie. (Ah, the tangled webs we weave!) I've tried everything: searching my actionscript bible, browsing entries in the different flash forums to see if anyone has had a similar difficulty, and changing and rewriting the script. I'm at the end of my rope. Can anyone out there help me, please?

Flash Order Form ..?
hey i have made an order form to gather information about what service and products they want to buy(just the visual part ) ..now i need to know what is the best way to make this all work ..
user clicks on this and then clicks on that (like adding all clicked services or products in a shopping cart)then they say ok =send ..then the next page shows what they have selected ...then they say ok=end then they can put in the billing info ..
what i need to know how to pass what they have selected to transfer to the confirmation page ..flash & php ,or flash and xml?
how can i accomplish this in the best possible way ?
thanks for any help or direction to a tutorial
cheers

Sorry Vague, But Really Need Order Form Help.
Hi all.

I am trying to help out a friend in a hurry and need to create an order form for her plant nursery. I a have created the basic site and even have a contact page that uses a PHP script to pass the information from the fields on my site.

However, now I need to set up an order form with 130+ plant options and send the results to an email account.

I have been searching for hours and can't find what i need yet...

Can anybody send me to a tutorial or maybe even write a bit of code that will help me gather all these variables (i assume with an array) and pass them in an email.

Thanks to anybody who takes any time to help me out!



just in case you are curious or something, here is the site i am working on http://www.blackberryhillnursery.com/ keep in mind i am new to flash...hence it is not really that "flashy"

Tab Order Flash Form
Theres a tutorial here for tab order on a form that has the example on the main timeline, it suggests if the objects you want to target are in a movie clip then you simply include the full path to the object in question.

Here's the code.

on (keypress "<Tab>") {
if (Selection.getFocus() == "_level0.field1") {
Selection.setFocus("_level0.field2");
} else if (Selection.getFocus() == "_level0.field2") {
Selection.setFocus("_level0.field3"); {
} else if (Selection.getFocus() == "_level0.field3") {
Selection.setFocus("_level0.field4"); {
} else if (Selection.getFocus() = "_level0.field4") {
Selection.setFocus("_level0.field1");
}
}

I'm assuming the path now needs to be.

if (Selection.getFocus() == "_level0._root.myform.field1") {
Selection.setFocus("_level0._root.myform.field2");
}

Is this correct?
Do I need to change the level?
and the script is attached to an invisible button, does the button remain on the _root timeline or now exist in the mform movie clip?

Thanks

mr mooch

Simple Order Form
Hi ive been killing myself for days searching for the easiest way to build an online store in flash without spending heaps of money. Would it be easier to just create a form with the order being sent to an email for processing. how would i go about building the form so that it could calculate the total of the items.

thanks.

[F8] Secure Order Form Possible?
I have been searching the site and the web with no luck...probably a sign not to do it.

I want to construct a simple order form and was wondering if there is a way to submit forms securely with visa info? I would think it would be easier than the whole cart deal for one product. Can anyone point me in the right direction? Thanks.

Rob

Flash Form Tab Order
Is there any way to change the order in which the boxes are selected when tab is pressed? I have a form on my site and after the first box, it tabs over to the box on the right. I'd like it to go to the boxes below it before moving on to the right. It can be seen here: http://bryanathomas.com/ Click Contact in the blue menu. Thanks!

Tab Order For Form Fields
hi

i have reand the technote 14075 at macromedie.com about this issue. but i'm not satisfied with their tip. somebody has an other idee how i can define the tab order for form fields in flash5?

thanks
francesco

Problem In Order Form
Hey people,
I made this small shop that uses Flash to collect data from the user (and what they want to buy) and PHP to mail the data in a confirmation e-mail.

My problem is: it's not working
Please check out the source here:

http://oege.ie.hva.nl/~groot7n/Shop.zip

Could anyone tell me where the problem is?
I checked the PHP script and I don't think the problem lies there

Flash Form Tab Order
hi...does anybody know how to arrange the tabbing order in flash? when you tab in my form, it jumps from the begginning input field then to the end, then back to the middle then to someplace else. the tabbing order is unfortunately unordered in my form. does anyone know how to resolve this.

thank you...

Online Order Form
Could anyone recommend where I might be able to get a script for an online ordering form?
I've looked around a few search engines and had not a lot of luck.
Any ideas appreciated.....
Many thanks
Simon

Problem In Order Form
Hey people,
I made this small shop that uses Flash to collect data from the user (and what they want to buy) and PHP to mail the data in a confirmation e-mail.

My problem is: it's not working
Please check out the source here:

http://oege.ie.hva.nl/~groot7n/Shop.zip

Could anyone tell me where the problem is?
I checked the PHP script and I don't think the problem lies there

Setting Order In Form To Email
Heres what I have, a huge, I mean huge form that needs to be emailed to someone, well its bad enough trying to set the tab order (which is done, sort of) but what do I need to do to set the order when it is sent to the CGI script formmail? If it can be done at all. So basically it is in order the way the same as the tab order. Any ideas anyone?

Email Order Form In Actionscript
Hi People,

I'm looking to construct an order form in Flash using Actionscript (Obviously! Doh!).

This order form would only need to collect the following information and present it in an email to my client in the following way: e.g.

Full Name:

Company Name:

Product Chosen: (I would like to be able to offer a list to pick from rather than have them type it in a field)

Billing Address:

Delivery Address: (Click button if same as above)

Daytime Contact No.:

Email Address:


...Well I'm sure you get the idea!

However, I really don't know where to start.

Can anybody point me in the direction of a tutorial which would aid me.

Hope you can help,

Cheers,

Deadhands

Anyone Successfully Able To Set The Tab Order In A Form In Flash?
I've been working with the Flashkit tutorial "Flash 5 Tab Order," and despite the fact that I've found the correction for the script given there, it's still not working - all it does is prevent the Tab from working at all.

http://www.flashkit.com/tutorials/In...-569/index.php

Anyone able to get this tutorial to work, or have any other suggestions on how to fix the Tab Order is falsh form. I know Macromedia says it can't be done, but some people seem to have been able to get this tutorial to work - are any of you out there listening???

Thanks!!

Printable Order Form, From Flash?
Fellow Flashers, I am trying to design a navigable stock catalogue in Flash. It will run from a hard drive with the intention that it may go onto CD-ROM and ultimately be converted into a web-site. The trouble is that I want to be able to order a particular item. This means that I would like to have a form of some description that would already have certain fields filled in i.e. a check box, order details etc - and then Print a hard copy of this form. Is this possible from Flash? Anyone know how do it tutorials etc.... Thanks in advance!

Email Order Form In Flash With ASP
Hi People!

Can anybody point me in the direction of a tutorial on how to create an email form in Flash (using variables in actionscript to store the user's details etc) which then uses ASP to send the users info to my mail box?

Hope you can Help

Deadhands

Order In Fields Of A Form (tab & Receipt)
hi,

i still have problems in making input fields in an order form become in a secuencial order when you press the tab button,
i mean give them the order i want,

and also, if you use the sendmail.asp in the server,
there also are very disorganisated when receiving the form details,
with no specific order,

do any of you know how to solve this deal ????

i know that all is related to a script with this parameters,
__________________________________________________ _
TextField.tabEnabled
TextField.tabIndex

box0.type = box1.type =
box2.type = box3.type = "input";

box0.tabIndex = 1;
box1.tabIndex = 2;
box2.tabIndex = 3;
box3.tabIndex = 4;
__________________________________________________ _

but i dont know how to implement it,


ok thanks a lot

Active X Problem In My Order Form
I have a little problem with my order form, this problem seems to be a Active X problem.

But my problem is that users that get a ActiveX warning (users with restricted or strict active x policies) and the "error1" warning pops up i the email fields when they try to send the form.

Does anybody know how to work around this??


Cheers

Retro....

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

I have this code in my form


PHP Code:




fscommand ("true");
//
// set some variables
//
mailform = "http://www.someurlthatonlyiknow.com";
confirm = "Vennligst vent på bekreftelse ...";
action = "send";
result1 = "";
result2 = "";
result3 = "";
error1 = "Adressen er ikke gyldig";
error2 = "Må fylles ut";
//
// Tab order on form
//
firmafelt.tabIndex = 1;
orgfelt.tabIndex = 2;
fornavn.tabIndex = 3;
etternavn.tabIndex = 4;
epost.tabIndex = 5;
adresse.tabIndex = 6;
postnr.tabIndex = 7;
poststed.tabIndex = 8;
telefon.tabIndex = 9;
antallfelt.tabIndex = 10;
domenefelt.tabIndex = 11;
domenefelt1.tabIndex = 12;
melding.tabIndex = 13;
//
// and focus on variable fname
//
Selection.setFocus("firma");
//
// validate email function
//
function validate(address) {        
        var d = email.split("@")[1];
        // d = everything after the @ sign
        if (d == "online.no" || d == "frisurf.no") {
loadMovieNum("http://www.someurlthatonlyiknow.com", 10);
                return false
        }        
        if (address.length>=5) {
                if (address.indexOf("@")>0) {
                        if ((address.indexOf("@")+2)<address.lastIndexOf(".")) {
                                if (address.lastIndexOf(".")<(address.length-2)) {
                                        return (true);
                                }
                        }
                }
        }
        return (false);
}
//
// form check
//
function formcheck () {
    if ((((email == null)) || (email.length<1)) || (email == "Adressen er ikke gyldig")) {
        email = error1;
        action = "";
    }
    if (!validate(email)) {
        email = error1;
        action = "";
    }
    if ((((fname == null)) || (fname.length<1)) || (fname == "Må fylles ut")) {
        fname = error2;
        action = "";
    }
    if ((((lname == null)) || (lname.length<1)) || (lname == "Må fylles ut")) {
        lname = error2;
        action = "";
    }
    if ((validate(email))
&& (email != error1)
&& (fname != "")
&& (fname != error2)
&& (lname != "")
&& (lname != error2)
&& (firma != "")
&& (firma != error2)
&& (org != "")
&& (org != error2)
&& (addy1 != "")
&& (addy1 != error2)
&& (zipp1 != "")
&& (zipp1 != error2)
&& (cityp1 != "")
&& (cityp1 != error2)
&& (ss != "")
&& (ss != error2)
&& (antall != "")
&& (antall != error2)
&& (domene != "")
&& (domene != error2)) {
        action = "send";
        loadVariablesNum (mailform, 0, "POST");
        gotoAndPlay ("wait");
    }    
    if ((((firma == null)) || (firma.length<1)) || (firma == "Må fylles ut")) {
        firma = error2;
        action = "";
    }
    if ((((org == null)) || (org.length<1)) || (org == "Må fylles ut")) {
        org = error2;
        action = "";
    }
    if ((((addy1 == null)) || (addy1.length<1)) || (addy1 == "Må fylles ut")) {
        addy1 = error2;
        action = "";
    }
    if ((((zipp1 == null)) || (zipp1.length<1)) || (zipp1 == "Må fylles ut")) {
        zipp1 = error2;
        action = "";
    }
    if ((((cityp1 == null)) || (cityp1.length<1)) || (cityp1 == "Må fylles ut")) {
        cityp1 = error2;
        action = "";
    }
    if ((((ss == null)) || (ss.length<1)) || (ss == "Må fylles ut")) {
        ss = error2;
        action = "";
    }
    if ((((antall == null)) || (antall.length<1)) || (antall == "Må fylles ut")) {
        antall = error2;
        action = "";
    }
    if ((((domene == null)) || (domene.length<1)) || (domene == "Må fylles ut")) {
        domene = error2;
        action = "";
    }
    //
    //sjekk av online.no og frisurf.no domener
    //
    if(domene == "online.no"
|| domene == "frisurf.no"
|| domene == "frisurf"
|| domene == "online"){
    loadMovieNum("http://www.someurlthatonlyiknow.com", 10);
        domene = error1;
        action = "";
    }
    var d = domene.split("@")[1] // d = everything after the @ sign
    if(d == "online.no" || d == "frisurf.no"){
    loadMovieNum("http://www.someurlthatonlyiknow.com", 10);
          domene = error1;
        action = "";
    }
    if(domene1 == "online.no"
|| domene1 == "frisurf.no"
|| domene1 == "frisurf"
|| domene1 == "online"){
    loadMovieNum("http://www.someurlthatonlyiknow.com", 10);
          domene1 = error1;
        action = "";
    }
    var d1 = domene1.split("@")[1] // d1 = everything after the @ sign
    if(d1 == "online.no" || d1 == "frisurf.no"){
    loadMovieNum("http://www.someurlthatonlyiknow.com", 10);
          domene1 = error1;
        action = "";
    }
}
stop ();

Shopping Cart/order Form
Hey how hard is it to input a small shopping cart or an order form in Flash MX. If I have something in a flash movie and a user will like to order it how would I go buy sending all the information to a shopping cart/ or an order form for the user is able to order. For an example any merchant account , How would this work with paypal or 2checkout.

Thanks

Help Creating A Simple Order Form
Hey i am building a site for someone who wants to have an order form to purchase items from her site. Im ok with the graphic side of how the site looks and navigates, but reallly clueless with these other aspects. My question is: is there some sort of good tutorial that can kinda walk through creating a working order form (did a search but nothing great i could find) Also... is there anything i need to look out for such as security, and just general idea as to how difficult it would be to create and mabye an overall breakdown of what it would consist of etc....? If anyone can break it down for a noob like me i would be eternally gratefull, and also may help others with similar questions! thanks

Order Form To Send To Email PHP
hi im having some trouble with this 1 i am making an order form in flash i have the calculations ect. all correct and working but.... i want to send each item name then the item amount then the item price several times into one message in an email i have a working PHP form working with simple email forms in flash but i need the message to link to over 30 different variables in my movie...
the email i would want like this
Burgers: 1 =£3.40
chips: 2 = £6.00
ect. ect.

would it be easier to add them all to one variable out of view of the page. or to edit the PHP form to allow the various values i need to send?
and how would i go about this?

thanks alot!
chris

Secure Order Form In Flash
Hi! I have looked over the forums and not found a specific answer for my question. I have been asked to create a Secure Order Form for gift certificates for an existing all Flash site.

1) Can I create a secure order form in Flash that accepts CC information and send it to a server via PHP and it be safe?
2) Or do I just need to modify a Flash Shopping Cart to my needs?

Thanks,
Scott

TAB ORDER OF FORM FIELDS HEEEELLLP PLEASE
I have a nice form set up in flash. I can enter text in the fields, but as I tab from the first field to the next, I end up on text in another area of the page before tabbing again to land on another field, then when I tab again, I get the next field, tab again and leave the form to find text elsewhere, then tab again to come back to the form. The order of fields I would like to have is name, company, email, phone, message. What I'm getting is name, off the form, off the form, company, email, message, phone. Please tell me what I'm not doing so the tabs go from one field seamlessly to the next. THANK YOU.

[Creating Order Form In Flash]
Hi,

I need help with Flash. I am trying to create an online order form but flash-based. Is it doable... if it is, can someone help me with that.

Thanks

CD-ROM Project - Creating An Order Form To Be Emailed
CD-ROM PROJECT - CREATING AN ORDER FORM TO BE EMAILED

My flash movie is distributed on CD-ROM, not the web.

I understand how to create a form and assign variables to text fields. I also understand how to link a button with the "getURL" action, to open the user's default email with a self addressed email.

My problem is finding a way to include the data my clients input, into an email that will be sent to me.

The only instructions I found so far were at Macromedia's site. They suggest sending the order form to either a server-side application or a client-side script, to be processed. This advice seems to work only for Websites, not CD-ROM applications (If I'm wrong let me know).

Is there a way to embed these applications or scripts on my CD. If so, which one should I use, and how?

Any advice would be greatly appreciated.

Problem Setting Tab Order In Flash MX Form
I've created a Flash form that has a script that's embedded in an invisible button that is supposed to cycle thru five text fields, a movie clip that acts as a checkbox and a button instance. Without the MC, the tabbing works fine. With it, it doesn't work. The MC has an instance of 'checkbox' and here's the script in question:

on (keyPress "<Tab>") {
if (Selection.getFocus() == "_level0.left_mc.empty.field1") {
Selection.setFocus("_level0.left_mc.empty.field2") ;
} else if (Selection.getFocus() == "_level0.left_mc.empty.field2") {
Selection.setFocus("_level0.left_mc.empty.field3") ;
} else if (Selection.getFocus() == "_level0.left_mc.empty.field3") {
Selection.setFocus("_level0.left_mc.empty.field4") ;
} else if (Selection.getFocus() == "_level0.left_mc.empty.field4") {
Selection.setFocus("_level0.left_mc.empty.field5") ;
} else if (Selection.getFocus() == "_level0.left_mc.empty.field5") {
Selection.setFocus("_level0.left_mc.empty.checkbox ");
} else if (Selection.getFocus() == "_level0.left_mc.empty.checkbox") {
Selection.setFocus("_level0.left_mc.empty.send_btn ");
} else if (Selection.getFocus() == "_level0.left_mc.empty.send_btn") {
Selection.setFocus("_level0.left_mc.empty.field1") ;
}
}

Problems With A Purchase Order Form (urgent)
Hi everybody!!

I have a "cost" and "buy" button in the catalogue that I've designed. The "cost" button is linked to the Excell sheet which contains cost of items. The "buy" button should be linked to the purchase order form.
Is it possible that I can make the cost sheet appear in the order form when i click "buy"?

HELP How Do I Create A Flash Online Order Form
Hey everyone

I Need to create an online order form in flash which will contain these fields

Company Name:
Invoice Name:
Invoice Address:
Postal Code:
E-Mail Address:
Phone:
Contact Person:
Vat Number:
Cell:
Tel:
Fax:
Postion:

I will need to make some of these field compulsory to fill in so the user wont be able to send the forum unless they fill in that field. Once they hit Submit Order button the order will be send via e-mail to the Company in the e-mail Subject line it should say Order Form and in the content box have the fields and the info that the user filled in.

Can this be done and how?

Cheers
Tom

Fields Iout Of Order From Form Submission
When I get the return email the fields results or not in order. I am not sure what doing wrong.

I looked at th help files for AS3 and found something about Array.sort() I am just not sure how to get it into my code correctly.

Am I on the right track?

INVT









Attach Code

stop();

this.userName.tabIndex = 1;
this.userAddress.tabIndex = 2;
this.userCity.tabIndex = 3;
this.userState.tabIndex = 4;
this.userZip.tabIndex = 5;
this.userSelect.tabIndex = 6;
this.userPhone.tabIndex = 7;
this.userEmail.tabIndex = 8;
this.userComments.tabIndex = 9;

//----------------<send form load vars>--------------------\

var gatherForm:LoadVars = new LoadVars();

function sendForm() {
gatherForm.recipient = "invtech@drmammano.com";
gatherForm.name = contactForm.userName.text;
gatherForm.address = contactForm.userAddress.text;
gatherForm.city = contactForm.userCity.text;
gatherForm.state = contactForm.userState.text;
gatherForm.zip = contactForm.userZip.text;
gatherForm.select = contactForm.userSelect.text;
gatherForm.phone = contactForm.userPhone.text;
gatherForm.email = contactForm.userEmail.text;
gatherForm.comments = contactForm.userComments.text;

gatherForm.send("../cgi-bin/formmail.pl","_blank","POST");
}
//----------------</send form load vars>--------------------\

_global.style.setStyle("fontFamily", "Arial");
_global.style.setStyle("fontWeight", "bold");
_global.style.setStyle("fontSize", 12);
_global.style.setStyle("color", 0x660000);

//----------------<submit button AS>--------------------\

this.contactForm.submitBtn.btnLabel.autoSize = "center";
this.contactForm.submitBtn.btnLabel.text = "SUBMIT";

// onRollOver
this.contactForm.submitBtn.onRollOver = function() {
contactForm.submitBtn.gotoAndStop (2);
}

// onRollOut
this.contactForm.submitBtn.onRollOut = function() {
contactForm.submitBtn.gotoAndStop (1);
}

//onRelease
this.contactForm.submitBtn.onRelease = function() {
if (contactForm.userName.text == "" || contactForm.userPhone.text == "" || contactForm.userEmail.text == "") {
gotoAndStop("error");
} else {
sendForm();
gotoAndStop("correct");
}
}


//----------------<submit button AS>--------------------\

























Edited: 03/27/2008 at 11:19:57 PM by INVT

Simple Order Form That Calculates Total
I am building an order form and here's the basic design:

Layout:
Item - Description - Price - Quantity - Total

Functions:
Print - Send by email

The user types the quantity of items desired and the total is calculated.

My challenge is to build it without dynamic functions.

What I'm missing is the code for typing the desired quantity of items, adding total, printing and emailing the completed form. (Not sure it can be done without php or cfm)

Any example would be appreciated.

Simple Order Form That Calculates Total
I am building an order form and here's the basic design:

Layout:
Item - Description - Price - Quantity - Total

Functions:
Print - Send by email

The user types the quantity of items desired and the total is calculated.

My challenge is to build it without dynamic functions.

What I'm missing is the code for typing the desired quantity of items, adding total, printing and emailing the completed form. (Not sure it can be done without php or cfm)

Any example would be appreciated.

Order Form, Help With Autofill Totals And Rounding Numbers
Actionscript novice here. I'm trying to make an order form that fills in the shipping, tax and totals once a book quantity is entered. I am having problems with rounding the numbers and don't know where to add the "RoundNumber" code in to make that work. Also for the variable tax I am having issues because the tax only applies if you live in IL otherwise there is no tax. Also my total doesn't seem to be working now, the code isn't adding the shipping tax and book price, just listing them side by side in the box. Any ideas? I feel like I'm getting close, but I just don't know how to fix it.


ActionScript Code:
function roundNumber(value) {
    var rnum = value
    var rlength = 2; // The number of decimal places to round to
    if (rnum > 8191 && rnum < 10485) {
        rnum = rnum-5000;
        var newnumber = Math.round(rnum*Math.pow(10,rlength))/Math.pow(10,rlength);
        newnumber = newnumber+5000;
    } else {
        var newnumber = Math.round(rnum*Math.pow(10,rlength))/Math.pow(10,rlength);
    }
    return(newnumber);
}
//set initial values at $0.00
nuts_bookqty.text = 0;
nuts_tax.text = 0;
nuts_shipping.text = 0;
nuts_total.text = 0;
//declare variables
var tax = 0;
    if (nuts_state.selectedItem.label = "IL") {
    var tax = .070;
    }
    else {
    var tax = 0;
}
var shipping = 7.95
var bookcost = 49.95
var booktotal = 49.95*nuts_bookqty.text
//calculate
this.onEnterFrame = function (){
    nuts_tax.text = "$" + Number(nuts_bookqty.text)*Number(bookcost)*Number(tax);
    nuts_shipping.text = "$" + Number(nuts_bookqty.text)*Number(shipping);
    nuts_total.text = "$"+ Number(booktotal) + Number(nuts_tax.text) + Number(nuts_shipping.text);
}

Thanks!

HELP TabEnable TabIndex Flash Form Tab Order Problem
I made a form in flash and I am having a problem getting the tab order to work using tabEnable and tabIndex. I have the form in a m.c. symbol, and the code for the tabEnable and tabIndex in the main stage (I have tried putting the code inside the mc, but that does not work either). Here is the code:

fname2.tabEnabled=true;
fname2.tabIndex=1;
mname2.tabEnabled=true;
mname2.tabIndex=2;
lname2.tabEnabled=true;
lname2.tabIndex=3;
addressb.tabEnabled=true;
addressb.tabIndex=4;
hareacode2.tabEnabled=true;
hareacode2.tabIndex=5;
hphone2.tabEnabled=true;
hphone2.tabIndex=6;
address2b.tabEnabled=true;
address2b.tabIndex=7;
careacode2.tabEnabled=true;
careacode2.tabIndex=8;
cphone2.tabEnabled=true;
cphone2.tabIndex=9;
city2.tabEnabled=true;
city2.tabIndex=10;
fareacode2.tabEnabled=true;
fareacode2.tabIndex=11;
fphone2.tabEnabled=true;
fphone2.tabIndex=12;
state2.tabEnabled=true;
state2.tabIndex=13;
lnamount2.tabEnabled=true;
lnamount2.tabIndex=14;
zip2.tabEnabled=true;
zip2.tabIndex=15;
lncompany2.tabEnabled=true;
lncompany2.tabIndex=16;
email2.tabEnabled=true;
email2.tabIndex=17;
intrate2.tabEnabled=true;
intrate2.tabIndex=18;
referred2.tabEnabled=true;
referred2.tabIndex=19;
lnterm2.tabEnabled=true;
lnterm2.tabIndex=20;
comments2.tabEnabled=true;
comments2.tabIndex=21;
send.tabEnabled=true;
send.tabIndex=22;
clear.tabEnabled=true;
clear.tabIndex=23;
logobutton.tabEnabled=false;
home.tabEnabled=false;
contact.tabEnabled=false;

I would appreciate any feedback or assistance you can give me regarding this code. Take a look at the .fla and let me know if you figure it out. I am fairly new to flash, so sometimes I get stuck and it drives me nuts!!

Thanks for your time.

Results From A Form Submission Does Not Keep The Fields In Order When I Get The Email
I created a form and it works fine but when I get the email back the fields are out of the tab order or out of wack meaning they are not in order that I set the acceptabilities to.

Is this something in the Action script I have to add and what would it look like or do I need to edit the CGI script?

I can provide a link or script let me know.

Thanks





























Edited: 02/20/2008 at 08:15:03 PM by INVT

Using Flash With Drop-downs To Make An Order Form...
I'm trying to make an order form of sorts with flash. I want the user to be able to use a series of text boxes and drop-down lists to create a personalized frame, then when they hit the SUBMIT button, it sends the custom frame to my email address, where I can start to work on it. Here's a flash example of what I want, I already have some drop-downs implemented here but they only drop down, nothing else.

http://i149.photobucket.com/albums/s...Album/34kn.swf

(I'm only going to ask one question at a time...it's just easier) First question is this: How do I make the drop-down boxes work? I'm gonna have a list for each side of the frame, and when they select an option it reflects that option on the frame to the right.

Note that at the beginning, the frame will be completely blank... When they click, say, graduate, the little diplomas will then show up on which ever side they chose.

Get what I mean?

Copyright © 2005-08 www.BigResource.com, All rights reserved