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




Flash Form Field To ASP



I am using cs2 (flash 8 action script 2).

I want to take a field and send it to an asp page to use the information for a search.

It seems to recieve it in the asp page, (only it is huge---literally-see attached)


The field is named Qzip

My Flash Action Script is:
on (release) {
getURL("http://www.4manscramble.net/content/courses/search.asp", "_self", "POST");
}

My asp code isnote this is the basics as the real search is a ton of trig code)

strZIPCode = Request("Qzip")

If strZIPCode = "" then
Response.Write "<font color=red >We are sorry the zipcode wasn't read right. We have sent this issue to our team. Feel free to try again</font>"
strZIPCode = "44024"
Else
Response.Write "the zipcode is: "&strZipCode&""
End If

DatabaseQuery = "SELECT Latitude, Longitude FROM ZIPCodes WHERE ZIPCode =" & strZIPCode & " "
Response.Write ("<br>The Query ="&DatabaseQuery&"<br>")

Dim rsZIPCodes: Set rsZIPCodes = CreateObject("ADODB.Recordset")
rsZIPCodes.Open DatabaseQuery, dbConn

If rsZIPCodes.EOF Then
'ZIP Code does not exist - report to user...

Response.Write "<font color=red >We could not find that zip code. Feel free to try again</font>"


Else
do the search

//////////////////////////
at this point it seems the data passed but reall it hasn't.

If I use a regular form text field. No problem



FlashKit > General Help > Scripting & Backend
Posted on: 05-09-2007, 10:22 PM


View Complete Forum Thread with Replies

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

Hidden Form Field/email Form Field
does anyone know how to create hidden form field in flash or even help with an email input form ?

Hidden Form Field/email Form Field
does anyone know how to create hidden form field in flash or even help with an email input form ?

Form Field Validation, Specially Email Field. Any Ideas?
Hi. I have a simple flash form designed for my website i have all things done but i am not getting the idea how to validate the "Email" field like you validate it in JavaScript for an "@" and a "." to be present in the finally submitted form. I need to do it in ActionScript as the other form validation is done in it as well. Please let me know if you can help. Thanks

Flash Form - File Field
Does anyone know how to create a file field in flash (the the field that has a text box accompanied by a "Browse... " button next to it). I want the user to be able to locate a file and upload it via flash. Thanks!

How Can I Validate A Field On A Flash Web Form?
I'm trying to create a Flash web form. I have many fields like Email, username and so on. I would like to add a code to validate the email, How can I program the Flash to report an error if the Email is invalid? or if the username is empty?
Thank you

Password Field In Flash Form
I have a nifty login form done in Flash and PHP. Asks for a user name and password and displays appropriate content if a user is signed in.

Does anyone know how I can have my password form field generate astericks like an HTML password field? It's not a huge deal as far as functionality goes, but would add another level of comfort to the site's users.

Thanks.

File Field For Flash Mx Form
yo people, is there anyway to do file fields (e.g. upload file) in flash MX forms?
im fully loving mx flash and coldfusion but this seems like a fairly major ommission...?

che
vin

Form Field Validation, Specially Email Field. Any
Hi. I have a simple flash form designed for my website i have all things done but i am not getting the idea how to validate the "Email" field like you validate it in JavaScript for an "@" and a "." to be present in the finally submitted form. I need to do it in ActionScript as the other form validation is done in it as well. Please let me know if you can help. Thanks

[cs3] Flash Form: Validate Country Field
hello , had a quick question i hope. on my flash form i'm trying to validate
the country feild ..

country_txt.text != '' &&

client wants a territory restriction on any country but United States..
so if the user types in USA, U.S.A , America , North America, US or United States they can submit the form. any other countries entered will get a error msg "territory restricted"

any help is much appreciated..

thanks, j

here is my script..


PHP Code:



//presistant reference to this movie's mail timeline:
var mainTL:MovieClip = this;

//start off with submit button dimmed
submit_mc._alpha = 70;

//create the LoadVars objects which will be used later
//one to send the data...
var dataSender:LoadVars = new LoadVars();

//and one to recieve what comes back
var dataReceiver:LoadVars = new LoadVars();

/*
create listener for Key Object
this is just a U.I. thing - "wakes up" the submit button
when all fields have at least some content
*/

var formCheck:Object = new Object();
formCheck.onKeyUp = function() {
    alert_txt.text = '';
    if (first_txt.text != '' &&
        last_txt.text != '' &&
        age_txt.text != '' &&
        email_txt.text != '' &&
        zip_txt.text != '' &&
        country_txt.text != '' &&
        cell_txt.text != '' &&
        carrier_txt.text != '' &&
        email_txt.text.indexOf("@") != -1 &&
        email_txt.text.lastIndexOf(".") != -1) {
        //clear any alert messages
        alert_txt.text = '';
        //enable the submit button
        submit_mc._alpha = 100;
        } else {
        //remain disabled until all fields have content
        submit_mc._alpha = 70;
    }
}

Key.addListener(formCheck);

/*#######SET STYLES FOR TEXT FIELDS#######*/

//define styles for both normal and focussed
//set hex values here that work with your site's colors

var normal_border:Number = 0x666666;
var focus_border:Number = 0xF6B9DB;

var normal_background:Number = 0x666666;
var focus_background:Number = 0xE9E3E3;

//var normal_color:Number = 0x776D6C;
var normal_color:Number = 0xF6B9DB;
var focus_color:Number = 0x000000;

//create an array containing the fields we wish to have styles applied to

inputs=[name_txt,company_txt,phone_txt,fax_txt,email_txt,date_txt,duration_txt,guests_txt,catering_txt,nature_txt];

/*
a "for in" loop now iterates through each element in the "inputs" array
and applies our "normal" formatting to each input text field
*/

for( var elem in inputs) {
    inputs[elem].border = true;
    inputs[elem].borderColor = normal_border;
    inputs[elem].background = true;
    inputs[elem].backgroundColor = normal_background;
    inputs[elem].textColor = normal_color;
    /*this takes care of applying the "normal" style to each of the four input fields;
        the following TextField prototypes handle highlighting when an input field
        gains focus and resetting to normal when a field loses focus*/
    inputs[elem].onSetFocus = function() {
        this.borderColor = focus_border;
        this.backgroundColor = focus_background;
        this.textColor = focus_color;
        }
    inputs[elem].onKillFocus = function() {
        this.borderColor = normal_border;
        this.backgroundColor = normal_background;
        this.textColor = normal_color;
    }
}

//finally: make the first field (name_txt) selected when the movie loads

Selection.setFocus(name_txt);

/*DEFINE SUBMIT BUTTON BEHAVIOR*/

submit_mc.onRelease = function() {
    //final check to make sure fields are completed
    if (first_txt.text != '' &&
        last_txt.text != '' &&
        age_txt.text != '' &&
        email_txt.text != '' &&
        zip_txt.text != '' &&
        country_txt.text != '' &&
        cell_txt.text != '' &&
        carrier_txt.text != '' &&
        email_txt.text.indexOf("@") != -1 &&
        email_txt.text.indexOf(".") != -1) {
        alert_txt.text='';//clear any previous error messages or warnings
        //assign properties to LoadVars object created previously
        dataSender.first = first_txt.text;
        dataSender.last = last_txt.text;
        dataSender.phone = age_txt.text;
        dataSender.email = email_txt.text;
        dataSender.zip = zip_txt.text;
        dataSender.country = country_txt.text;
        dataSender.cell = cell_txt.text;
        dataSender.carrier = carrier_txt.text;

        //callback function - how to handle what comes abck
        dataReceiver.onLoad = function() {
            if (this.response == "invalid") {
                mainTL.gotoAndStop(1);
                alert_txt.text = "Please check email address - does not appear valid."
            } else if (this.response == "passed") {
        mainTL.gotoAndStop(4);
            }
        }
        //now send data to script
        dataSender.sendAndLoad("processEmail.php", dataReceiver, "POST");
    } else {
        //warning if they try to submit before completing
        alert_txt.text = "Please complete all fields before submitting.";
    }
}

Flash 4 Form Validation For Email Field
I guess i can only hope there is still someone around knowing this or that on Flash 4 form fields validation.
I have this:

On (Release)
If (FirstName eq "")
Go to and Stop (2)
Else If (Email eq "")
Go to and Stop (3)
Else If (ToSubject eq "")
Go to and Stop (4)
Else If (Description eq "")
Go to and Stop (5)
Else If (ToComments eq "")
Go to and Stop (6)
Else
Load Variables ("12php/0MailPHP.php", 1, vars=POST)
Go to and Stop (7)
End If
End On

And of course, the problem is the email field.
as is it only checks if anything has been entered, which is not enough, it should check for the @ and the . at least - i just don't know how to do this with Flash 4, any hints are welcome really........
(i got rid of MX for reasons i am not even sure anymore, just always preferred to work with 4)

Flash Mail Form With Attachment Field
Hey, everyone!

Has anyone here ever seen any mail form with 'upload file' field in Flash? I must develop such a form interface where users should fill some filelds and attach a jpeg file. Is it possible with Flash + PHP?

Well, thanks for the attention,

Força e paz,
mocoroh

Help Requard With Flash Form Field And # Sign.
hi , am new on here,, i designed a flash form with php,, every thing is going great, i am receiving all the mails but the only things thats bothering me is a "#" sign,, means ,when someone use # sign in the feed where its required like Address field and send the form,, but the form comes to the mail box with all the data before Address field where they use # sign, but it send nothing after that ,, well, here is an example how i am getting my output on the mail box,

Subject: Visitor Inquiry Inquiry:
Contact Person: person name
Company: Company name
Address: shop
Provence Licence State :
City: Postal code :
Country :
Phone:
Mobile:
Web site:
Email:
---------------------------------

well above is the simple out put in my mail box,, so look in the 4th line where it says Address : Shop , but it should be shop # 123 (anynumber) as well in line 5 provence: , city , country and so on,, but i am not getting any user input after he use # sign,, guess you will understand what i want to tell you,, is any body can help me out pleas, its urgent,,, zillion of thanks in advance ,
best regards , shujaat

Flash Mail Form With Attachment Field
Hey, everyone!

Has anyone here ever seen any mail form with 'upload file' field in Flash? I must develop such a form interface where users should fill some filelds and attach a jpeg file. Is it possible with Flash + PHP?

Well, thanks for the attention,

Força e paz,
mocoroh

Flash Form Field Sending Formatting Please Help
Hello Flashers!
I am designing a little game in flash with a high score table, i am nearly finished but the problem that i am having is that when the user enters their name into an input field, it sends all the formatting data aswell as their name, and it all goes horribly wrong, all i want is the users name, not all teh other gumph that keeps popping up with it.
example
<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Cooper Black" SIZE="24" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">input here</FONT></P></TEXTFORMAT>
this is what i get when i trace the var contents
please help, this is driving me bonkers!

thanks for reading!

Trying To Pass Text From Form Text Field To A Flash Dynamic Text Field
Hi, I was hoping someone might enlighten me as to how/if I can do this...

Currently I'm using javascript which works fine to pass text from textfield A to textfield B:


Code:
window.onload=function()
{
document.forms.form1.shirtText.value=document.forms.form1.KitGroupID_16_TextOption_38.value
}
Is there a way to pass the textfield A text to a dynamic text input (flash) as I'd like to use the font embedding flash offers. I can make it work when loading a value from a txt file but I'm not sure how to access the value identified above as KitGroupID_16_TextOption_38 and make it appear in a dynamic input box. Eventually I might want to have 3 font choices for the user but I'd like to just see if I can get this working properly first.

Your help/advice would be greatly appreciated,

-Scott

Flash Form Field: Select Text On Click
Hey All,

I have a flash form, prepopulated with form box titles. Client would like the text to highlight on first click rather than the defualt double click. Any ideas on the approach here? Listener Object? Script?

Any help would be fantastic!
Cheers
-jub-

FLASH MX Form, Tab Index, Move To Next Text Field
I am pretty new to flash, especially with the action script side. But here is what I am trying to do.

I a have a fairly simple form, what I want to have happen, is when a user enters a value in a text field, automatically move to the next text field.

Secondly, when pressing the tab key, move to a specific text field, or rather, follow a specific tab order.

It sounds odd but the flash form is a version of a paper form which has to be scanned for OCR after it is printed. So where a user enters in a last name, it is actually a series of one character text fields. This ensures that the text lines up exactly as the OCR expects to see it. Making it a multi character text field will not allow the text to line up so I am fairly certain I have to do it this way. When the user enters the first letter of the last name, it will automatically advance to the second letter box for the last name and so on until the last field is reached. If at any time the user hits tab, I want them to be taken to the first name section, which is just like the last name, a series of one character text boxes.

Does this make sense, it is possible, ikmpossible or really hard to do?

Thanks
Doug

Setting Focus To First Text Field In Flash Form
I have some text fields and when the movie is exported or loaded I need the
cursor to be focused to the first textfield in the form

Please Reply soon Its urgent

Thank U,
S. Rajasingh Samuel

Flash Contact Form - Adding A Drop Down Field
Hi all

Just trying to work out how to put a drop down field into a flash contact form. So that if they select one of the four options, it adds said selected option to the subject line of the email, when sent. Any ideas?

ta!

Pass Variable From Flash To Html Form Field
Just curious...Anyone know if it is possible to pass a variable from flash to an html form field on the same page and have it update automatically?

For examply, I'm making a color picker in flash for my CMS, I want the user to be able to scub around and pick a color. Once they get the color they want, they can push a button and the RGB hex would be passed to an html form field below the flash file and automatically show up in the field (no need for page refresh).

I assume this can be done (I assume JS would be needed), but I'm not sure.

Hide Action Script In Text Field Of Flash Form
Hey guys. I really need some help. I just completed a flash form that allows a user to enter their name email and comments and submit... then sending it to my email address. It works, however, in the text fields, I can see scripts... like _level0.FirstName kinda thing. If I delete the instance name or variable name, the form stops working. Any suggestions? If you want to see what I am talking about, go to http://www.dangerousmedia.com/projec...d/dmflash.html and click on the telephone to see the form. Thanks.

Auto Submit From Flash Form Cfinput Text Field
I have a Flash Form in ColdFusion 8 that consist of a CFInput Text field, and a CFGrid. When the user scans a barcode, I want the form to validate that there is a value, then submit the form (without using a submit button).

Since I'm still a newbie at ActionScript 3.0, I was hoping someone could shed some insite. Should I use the onBlur action in the cfinput tag? What actionscript commands do I need to force a submit?

Tab Key To Next Form Field
I have a form-like interface. I want to polish it off by setting it up to allow the user to press the tab key to advance to the next input text field. It seems that there should be a tutorial for this, but I can't find one. Any suggestions?

Form Field
Hi
How do I apply a script like this to a Form text-field?

<input type="text" value="Newsletter" onFocus="clearText(this)">

This javascript is placed in the header of the HTML-file

<script>
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
}
</script>

The script empties the textfield as the user clicks it!
The textfield has the varible letterField applied to it in the Flash-file.

Lars

Form Field Value And No Value
How can I do this in flash. You know how in html forms you can do this:


PHP Code:



onblur="this.value='enter email address';" onfocus="this.value='';" 




What I have are some form fields that have some text in it as a defalut value then when the person sets focus in the form field the value disappears. Now if the place a value in the form field then move to the next form field thus losing focus on the first form field. I would like the info they input in there to remain there. But if nothing was placed show the default value. I know how to do it in html but not in flash. Pleez help. Would love to do some flash forms.

HOW DO I CREATE FORM FIELD
HOW DO I CREATE FORM FIELD?
THANKS....qetret

Field Focus In A Form
Hello, I have a form that contains a back button, when you click the back button the movie goes to frame one where data can be input again. What I am trying to do is get the form to focus on a certain field when it goes to frame one again. I have tried Selection.setFocus and it doesnt seem to be working. the form clip is a movie placed on _level0. This is the code I am using for the back button. What am I doing wrong?

on (release, keyPress "<Left>") {
gotoAndStop (1);
Selection.setFocus("_level0.fname");

Searcher

Form Field InFocus
Hello,

I have a form and want the first text entry field to be in focus when the flash movie loads. ie, when the user starts to type in, the cursor is already in the first box.

Thanks.....Rob

Single Field Form
i've got a script and form that works perfectly with .php

now i want to create a SIMPLE form with just one field that will collect email addresses from visitors (like a newsletter sign up type thing). all i need is a single input text field, a send button, and the script and .php to make it all work.

i thought i had it, but i can't get it to work at all. is there an easy way to do this or does someone have one already made and working that i can take a look at?

thanks,
Clint

Form Field Question
I have a form with three input fields... in frame one i would like to have buttons that direct the cursor to the appropriate field in subsequent frames.

example:

i have a three buttons
email, name, message...(they go to frame 2,3,4 respectively)

i would like to click the email button and have it go to the input text field that is for the email address...

or click name and go to name field
and so on...

i have the tab order correct where it tabs through correctly.
but when i click name... it still goes to the input field for email..

which is the one on top...

is this possible

Problem With Form Field
Hi all
I have a problem with a php flash form processor i downloaded from this website
the flash form works fine and i get the email with all the fields information...
but in the "comments" field of the form - set as multiline - if you hit the "enter" button while writing the text only the first line will arrive in the mail...the rest is ignored by the php form processing file...
can you help me solve this?
here is the php code used...

<?
/************************************************** ****
**
** Flash Mx PHP Mailer
**
** By - David Khundiashvili
************************************************** *****/
/************************************************** *****
Enter your site details below!
************************************************** *****/
// Enter your contact email address here
$adminaddress = youremail@yoursite.com;
// Enter the address of your website here include http://www.
$siteaddress =http://www.yourwebsite.com;
// Enter your company name or site name here
$sitename = "yourcompany";
/************************************************** *****
No need to change anything below ...
************************************************** *****/
$date = date("m/d/Y H:i:s");
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);

if ($action != ""):
mail("$adminaddress","Info Request",
"A visitor at $sitename has left the following information

First Name: $fname
Last Name: $lname
Email: $email
Telephone: $telno

The visitor commented:
------------------------------
$comments

Logged Info :
------------------------------
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROM:$adminaddress");
mail("$email","Thank You for visiting $sitename",
"Hi $fname,

Thank you for your interest in $sitename!

Cheers,
$sitename
$siteaddress","FROM:$adminaddress");
$sendresult = "Thank you for visiting <a href = "$siteaddress" target = "_blank"><u>$sitename</u></a>. You will receive a confirmation email shortly. ";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
echo "$send_answer";
endif;
?>


check the $comments field...the problem happens there...only the first line will be read but if you hit enter and type more all the other text will be ignored...
thanks!

Multi-field Form To Be Sent Via Asp
Hello!

I know that there are several tutorials that show how to make forms but I'm having a heck of a time making one work.

I need to create a form that has 10 input fields in it and have that info sent to an email address via asp.

Does anyone have a multi-field form along with an mail.asp that I can look at?

thanks!

Reseting Form Field
I've created a simple form with one input field for viewers to submit an email address to join a mailing list. It works great, the only problem is after they click the submit button, the input field (message) doesn't reset OR my dynamic text field (mailstatus) thanking them for joining. Can anyone help?

this is the actionscript for my button:

on (release) {
subject = "Mailing List";
this.loadVariables("http://www.djbreak.com/simplemail.php", "POST");
}

this is my php script:

<?php

$email ="breakgetnice@aol.com";

$subject = $HTTP_POST_VARS['subject'];

$message = $HTTP_POST_VARS['message'];

mail($email, $subject, $message);

echo "mailstatus=Thank you for joining!&thescript=done&";

?>

Why This Form Field Does Not Work
i set up text feld set it to dynamic

then attached the scroll bar

and still i can not see the scroll bar just the whitefield where the scroll should be

can someone tell me what i am doing ewrong

Only 1st Field In Form Clears
Hello and thank you.

I am using Flash 8 to make an email form.
I have 5 fields but only the first field clears when you click
on the clear button.

This is the action script that I have. Any ideas?



on (rollOver) {
gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
gotoAndPlay("s2");
}
on (release) {
_parent.your_name="Name:";
_parent.your_phone="Phone:";
_parent.your_email="Email:";
_parent.your_weddingdate="Wedding Date:";
_parent.your_message="Message:";
}

Drop-down Form Field In AS3
Hey all,
Is it possible to make a drop-down form field w/in AS3? I don't need to send any data externally or anything -- so I don't need (I assume) any PHP code.
The selected value from the field is simply going to change a variable in the timeline.

Thx

How Do I Validate This 3 Field Form?
Here is my function checkForm.

3 Fields - Name, Message & Email

Name = This should be more than 1 character
Message = This should be more than 1 character
Email = This is booleon set (True or False)

If these 3 Fields meet up to this criteria - I would like it to proceed to the else statement I have below.

I would like a method of validation which is alot more effective than the one used below:


ActionScript Code:
function checkForm() {
   
    var myName = _root.pages_mc.nameField.text;
    var myMessage = _root.pages_mc.messageField.text;
    var myEmail = _root.pages_mc.emailField.text;
   
    //VALIDATE NAME & MESSAGE FIELD
    if (myName == ""){
        _root.pages_mc.errorField.text = "Please fill out your name";
        Selection.setFocus(_root.pages_mc.nameField);
   
    } else if (checkEmail(myEmail) == false){
        _root.pages_mc.errorField.text = "You have entered an invalid email address";
   
    } else if (myMessage == ""){
        _root.pages_mc.errorField.text = "Please leave a message";
        Selection.setFocus(_root.pages_mc.messageField);
   
    } else if (myEmail == ""){
        _root.pages_mc.errorField.text = "Please write your email address";
        Selection.setFocus(_root.pages_mc.emailField);
   
    } else {
            _root.pages_mc.errorField.text = "";
            myXML.firstChild.appendChild(myXML.createElement("entry"));
            myXML.firstChild.lastChild.attributes.myName = myName;
            myXML.firstChild.lastChild.attributes.myEmail = myEmail;
            myXML.firstChild.lastChild.appendChild(myXML.createElement("myText"));
            myXML.firstChild.lastChild.lastChild.appendChild(myXML.createTextNode(myMessage));
            myXML.sendAndLoad("processXML.php", receiverXML);      
        }
}

I've tried it running the function above and it seems to process the else statement when the if statements say otherwise. So a better method would be really helpful.

Referencing A Value Within A Form Field
Hey all...

Within my org. we have a set of variables that we can use within our .asp forms that are stored on a DB but can be called within our forms. Basically when a user longs into their machine and opens up one of our html/asp forms their user information Name/department/title/phone/branch address are auto populated within the 'profile' section at the top of the form. Below is an example of the code used:

<td width="450"><input name="UserName" type="text" id="UserName" value="<%=g_emp_fullname%>" size="50" maxlength="100">


Instead of building forms via html/asp I would like to try and build a 'smart' form via flash and pass all of the variables collected to a processessing .asp page that generates the email.

What I can't figure out is how to, within flash, reference the...value="<%=g_emp_fullname%>" , within the Flash form fields so the values come up.

I would like Flash to auto-recognize the values just like my .asp page did.
Any ideas on code referencing within Flash is greatly appreciated as always!!

Regards,

SKURGE

Form Field Focus?
Hi, I was wondering how to make a form field in flash that has text already in it when the form loads, and when the user clicks the field that text dissapears so they can enter their text.

I've also seen these forms that will put the initial text back if no text is entered and the user clicks a different text field.

Can anyone point me in the right direction? Thanks.

Form Field Validation And ASP
Hello

I have a simple Flash contact form with name,email, message, etc fields and would like ASP - not Flash - to validate the fields. So if a site visitor completes the form and presses 'submit' while having omitted the @ sign, for example, from his email address, then ASP would tell Flash to display something like 'Please complete the email address field'.

I have some ASP (VB Script) which does this, but how do I pass it to Flash, and how would I get Flash to display it in a simple dynamic text box next to the form? And what happens if more than one field has been incorrectly completed?

Many thanks for any help.

_Postman

Get Form Field Values
Hey Guys,
I'm trying to grab the values of two text fields called "userinput" and "passinput" then turn them into variables.

This is what I have
on (release, keyPress "<Enter>") {
var user = (w.e code i use to grab the value);
var pass = (w.e code i use to grab the value);

then the rest of my code continued blah blah blah

}


If you could help me this would be great.

Referencing A Value Within A Form Field
Hey all...

Within my org. we have a set of variables that we can use within our .asp forms that are stored on a DB but can be called within our forms. Basically when a user longs into their machine and opens up one of our html/asp forms their user information Name/department/title/phone/branch address are auto populated within the 'profile' section at the top of the form. Below is an example of the code used:

<td width="450"><input name="UserName" type="text" id="UserName" value="<%=g_emp_fullname%>" size="50" maxlength="100">


Instead of building forms via html/asp I would like to try and build a 'smart' form via flash and pass all of the variables collected to a processessing .asp page that generates the email.

What I can't figure out is how to, within flash, reference the...value="<%=g_emp_fullname%>" , within the Flash form fields so the values come up.

I would like Flash to auto-recognize the values just like my .asp page did.
Any ideas on code referencing within Flash is greatly appreciated as always!!

Regards,

SKURGE

Form: Active Field
Hy guys!!!
I have made a form with 7 input text boxes.

What i want: when i play the movie i want the first input text box to be "active" (as i have clicked with the mouse in it).

It's attached variable is: "name" .

I don't want to add an animated line outside the text box...

Regards,


http://www.inwww.ltd.uk



Focusing On Form Field
Im building a site with Flash MX and need to simulate the use of the DOS prompt.

In order for this to work, I need the input filed at the prompt to get focus right away. I dont want the user to be forced to mouse click on the field in order to start typing.

Any help would be great.

[AS]add A Form Into Text Field
Hi, I just wondering if I can add a form into a text field, is there anyway to do it? any component or tutorial on this? thank you~

Form Field Out Of FOCUS
I made a form in flash with focus to change the highlight color but i can't set to multiples field

texto=new Array (ncto,cidade)
texto.onSetFocus = function(oldFocus) {
texto.background = true;
texto.backgroundColor = 0x9DCECC;
text.border = true;
texto.borderColor = 0x336699;
texto.textColor = 0x336699;
};
texto.onKillFocus = function(newFocus) {
texto.background = true;
texto.backgroundColor = 0xffffcc;
text.border = true;
texto.borderColor = 0x336699;
texto.textColor = 0x336699;
};

what should be worng?


thanks
molotophy

Highlight Form Field
how can I make a highlight form field.
like when the mouse click in the filed to type the box change color.


thanks in advanced
molotophy

How To Validate A Form's Text Field
I'm not very good with scripting, and am having a problem with a simple form that has 3 states: the form itself; an "invalid" error frame; and a "thanks" frame for successful submissions.

I need to setup 2 conditions for a field, in which the user types in their name. it's named "lotusnotesID".

if the field has any blank spaces, it should goto the "invalid" frame that displays an error message and asks them to retype their ID. if the field doesn't have any periods between their name (e.g. john.m.smith) they should goto the "invalid" frame and retype their ID.

my actions are set up in a button within the form. it reads as follows:

on (press) {
if (lotusnotesID == "Key.SPACE" ne "." ne "") {
gotoAndStop ("invalid");
} else {
loadVariablesNum ("http://creativeservices.accenture.com/client.stage/sfmoma/cdontsMail.asp", 0, "POST");
gotoAndStop ("thanks");
}
}


as far as I can tell, it's setup correctly. the problem is that when I test it, the submit button will take me to the "invalid" frame if the text field contains a space, or is missing a period, or is blank, but once I'm in the "invalid" frame and retype the ID correctly, it won't submit properly and goto the "thanks" frame. also, if I type the name correctly initially, it works fine.

am I using the correct operators? any ideas?

thanks very much,
dan
eeth22@yahoo.com

Attachment Field In A Dynamic Form
I have a CD interface created in flash 5 and a form inserted in it. I want to know if it's possible to add an attachment field with the "Browse" button in the form popop, for allowing the user to attach a file before sending his request..

any idea ?.. a browse button for browsing his HD to attach the file..

thanks for ur time..

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