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




[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~



Ultrashock Forums > Flash > ActionScript
Posted on: 2005-09-06


View Complete Forum Thread with Replies

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

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

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

Form Field Text Formatting Help
hello guys and a happy new year

I have once again started tinkering about with another part of my site. the form fields for contact, postnew(forum), postMsg(siteinbox) I am trying to take away the basic formatting sys i have
code:
//Bold but
msgfield.text+=msg+" <b>type bold text here</b>"

Pretty much the same for italic and underline.

Now i have seen a form field somewhere that when you high-light the text and then press the B button and the text gets formatted.
I tried downloading a couple of the text editers from flashcomponents.net but i am still none the wiser.

Anyone know how i can do this

Cheers
Paul

Form Field Text Formatting Help
Hi guys i made a post about this today but didnt get anywhere. i have since got a bit further but still running into problems. i have attached an fla So you can see the problem. I seem to be losing the focus once i press one of the format buttons.
This is not my code more a selection of posts that i have read up on this subject.

code:
myTextFormat = new TextFormat();
myTextFormat.bold = false;
myTextFormat.italic = false;
myTextFormat.underline = false;

//
textToEdit = msgfield;
Selection.setFocus(textToEdit);
//
function selectText() {
selectedText = Selection.getFocus();
//
trace("textfield path= "+textToEdit);
trace("current select= "+selectedText);
//
if (selectedText == textToEdit) {// Cant seem to get behound here
begin = Selection.getBeginIndex();
end = Selection.getEndIndex();
cursor = Selection.getCaretIndex();
currentFormat = textToEdit.getTextFormat(begin, end);
}
}
//Bold button
b_bold.onRelease = function() {
Selection.setFocus(textToEdit);
Selection.setSelection(begin, end);
myTextFormat = currentFormat;
if (b_bold._currentframe == 1) {
b_bold.gotoAndStop(2);
myTextFormat.bold = true;
textToEdit.setTextFormat(begin, end, myTextFormat);
} else {
b_bold.gotoAndStop(1);
myTextFormat.bold = false;
textToEdit.setTextFormat(begin, end, myTextFormat);
}
};
// Italic button
b_ital.onRelease = function() {
Selection.setFocus(textToEdit);
Selection.setSelection(begin, end);
myTextFormat = currentFormat;
if (b_ital._currentframe == 1) {
b_ital.gotoAndStop(2);
myTextFormat.italic = true;
textToEdit.setTextFormat(begin, end, myTextFormat);
} else {
b_ital.gotoAndStop(1);
myTextFormat.italic = false;
textToEdit.setTextFormat(begin, end, myTextFormat);
}
};
//Underline button
b_und.onRelease = function() {
Selection.setFocus(textToEdit);
Selection.setSelection(begin, end);
myTextFormat = currentFormat;
if (b_und._currentframe == 1) {
b_und.gotoAndStop(2);
myTextFormat.underline = true;
textToEdit.setTextFormat(begin, end, myTextFormat);
} else {
b_und.gotoAndStop(1);
myTextFormat.underline = false;
textToEdit.setTextFormat(begin, end, myTextFormat);
}
};
stop();


Function selectText()

code:
onClipEvent (mouseUp) {
_parent.selectText();
}


Cheers
Paul

Form Field Text Formatting Help
hello guys and a happy new year

I have once again started tinkering about with another part of my site. the form fields for contact, postnew(forum), postMsg(siteinbox) I am trying to take away the basic formatting sys i have

ActionScript Code:
//Bold but
msgfield.text+=msg+" <b>type bold text here</b>"

Pretty much the same for italic and underline.

Now i have seen a form field somewhere that when you high-light the text and then press the B button and the text gets formatted.
I tried downloading a couple of the text editers from flashcomponents.net but i am still none the wiser.

Anyone no how i can do this

Cheers
Paul

Hide Script In Form Text Field
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.

Linking Form Field To Dynamic Text Box?
Hi,

I was wondering if it's possible to link a form field to a dynamic textbox in such a way so that when text is entered into the form field, it shows in the dynamic text box? I need it to handle backspace as well as just highlighting the chars and deleting them from the form field as well.

Send A Text Field With The Mail Form?
I only need to know how i can add to a mail form that i have a > text field < called "order" that have a list of products that the user select in the page.

So when the form sends the user information, sends the text field to...

I need to know if this is posible or not -

sorry for keep posting the same question, but i cant find this anywhere!!

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-

Form Field To Check Length Of Input Text
i'm trying to get a Flash form to test certain conditions, one of which is the full date (ie 2006 as opposed to 06), but the AS below (in bold) isn't working... does anybody know the right script?


on (release) {
if (!name.length) {
text.emailstatus = "please enter your name";
} else if (!email.length || email.indexOf("@") == -1 || email.indexOf(".") == -1) {
text.emailstatus = "please enter a valid email";
} else if (!message.length) {
text.emailstatus = "please enter your message";
} else if (!year.length < 4) {
text.emailstatus = "please enter the full year";
} else {
loadVariablesNum("MailPHP.php", "0", "POST");
text.emailstatus = "message sent - thankyou";
}
}

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

Including Dynamic Text Field In Form Results
How do I include the dynamic text box data in a form? The text boxes are filled out using external txt files.... Thanks

Form Field Styling (Input Text Formatting)
Is there a way to format multiple form fields (input text) at the same time? For instance, I have a form with 10 input text fields and I want all of them to have black borders and gray backgrounds. To do this, I've coded one as:
txtInput1.border = true;
txtInput1.borderColor = 0x000000;
txtInput1.background = true;
txtInput1.backgroundColor = 0xCCCCCC;

Is there a way for me to create a sort of "style" that I could apply all of these values to a text input easily, the way TextFormat can apply text styles?

How To Hide A Input Text Field In A Login Form.
First of all let me state i'm kind of new to AS3.

I'm making a login form, and i've managed to make it work, but when the form actually moves frames, both the user_field, and password_field, remains visible...

What am I missing to make those fields disappear?.

Here is my code.

Elliot J. Balanza



thanks.







Attach Code

var usuario:String;
var contrasena:String;

bLogin.addEventListener(MouseEvent.CLICK, procesaLogin);

function procesaLogin(event:MouseEvent):void
{
addChild(user_field);
addChild(password_field);
usuario = user_field.text;
contrasena = password_field.text;
if(usuario == 'Elliot')
{
if(contrasena == 'elliot')
{
gotoAndStop('Home','Contenido');
}
else
{
gotoAndStop('Retry');
}
}
else
{
gotoAndStop('Retry');
}
}

Creating Form In AS3...Can't Assign Var Name To Dynamic Text Field?
In AS2 I would simply add a var name to a input text field from the property panel but when I try to do so in AS3 it's not supported. How do I assign a var name to input text using ActionScript 3? If anyone can answer this for me and/or point me to a thread/tutorial on creating an email form in AS3 I would greatly appreciate it.

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 ?

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?

Populating Dynamic Text Field With Form Data From Previous Frame
I've got a dynamic text field (name) and I'd like to populate it with the values from two fields in a form from a previous frame. Does anyone know how to transport user-input values from one frame to another frame?

Here's the code I'm using to capture the user-entered data:

var submitListener:Object = new Object();
submitListener.click = function(evt:Object) {
var result_lv:LoadVars = new LoadVars();
result_lv.onLoad = function(success:Boolean) {
if (success) {
result_ta.text = "Thank you for completing this training module.";
} else {
result_ta.text = "Error connecting to server.";
}
};
var send_lv:LoadVars = new LoadVars();
send_lv.fname = fname.text;
send_lv.lname = lname.text;
send_lv.email = email.text;
send_lv.sendAndLoad("

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

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

Send Email From "input Text Field" Or Form...HElp
I'm trying to figure out how to send email without launching a
composition window (from an email client). I've gone through some
tech notes on macromedia.com, but can't find what I'm looking for!
I have an "input text field" and "send" button. I want the user to be able
to enter their email address and click the button to send the info without
launching another window or app. I know it's probably a Variable thing...
I've tried and can't get it to work. Any ideas would be really appreciated.
Thanx!
[Edited by dsprouls on 08-09-2001 at 03:13 AM]

Get A Text Field To Mirror The Contents Of Another Text Field [renamed]
hi guys. When i type the numbers in the box A.i want the number also appears in box B without typiing it, how to do this? Hope to hear ur replies soon.

( This is my link to my to the picture )
http://download.yousendit.com/ADA616D00C698A56

Calculating Input Text Field To Dynamic Field (easy Action Script)
hi. i'm trying to learn action script and i need help with this bit. i'm trying to use action script to calculate my brothers ages based on my own.

using flash MX. i have an input field called "my_age" and two dynamic fields called "eli_age" and "jacob_age". eli is 4 years younger and jacob is 6 years younger. i want to be able to enter my age in the "my_age" input field and then click a button that will calculate their respective ages.

here's the fla if i haven't been clear.

thanks for any/all help,
josh

Getting A Text String Value From A Text Field And Duplicating It In Another Text Field
I'm trying to take the text from one text field and duplicate it in another.

I want to display the text that is in the text field _root.MC_Control.tab_title in another text field called _root,video_title.

I have tried this:

_root.video_title.text = _root.MC_Control.tab_title.text;

and this:

_root.video_title.text == _root.MC_Control.tab_title.text;

neither one seems work....am I missing something?

Getting MySQL Field Data Into Dynamic Text Field In Flash
Hi, im having some trouble as to how to retreive data from a mySQL database field and putting the values into a dynamic text field in Flash... im quite new to this so any help will be appreciated! thanks.

[FMX04] AS - Showing Text Field As HTML Field With XML/CDATA.
Hey all -

Trying to get a text field in my Flash MX movie to pull from and XML file with CDATA tags to show as HTML. I've checked the box to render as HTML for the text data field... but I'm having problems with the Actionscripting.

The field from this line is what I need to recognize as HTML reading CDATA tags:

this.ref["textField"+i].text = subnodes[3].firstChild.toString()

I know I need to do more than just change it to ".html" instead of ".text" and have tried a couple things, but nothing seems to work.

Any help greatly appreciated!


Code:
//Create the XML Object
myXML = new XML ();
myXML.load(newXml);
myXML.ignoreWhite = true;

//Load XML file
myXML.load("PBintro.xml");
//Make a reference to current timeline
myXML.ref = this
// Parse XML and fetch
myXML.onLoad = function(success){
if(success){
var root = this.firstChild ;
nodes = root.childNodes
for(var i=0; i<nodes.length; i++) {
this.ref["Title_txt"+i].text = nodes[i].attributes.name
subnodes = nodes[i].childNodes
this.ref["Comments_txt"+i].text = subnodes[0].firstChild.toString()
this.ref["Link_txt"+i].text = subnodes[0].firstChild.toString()
this.ref["Link_txt"+i] = subnodes[1].firstChild.toString()
this.ref["holder_mc"+i].loadMovie(subnodes[2].firstChild.toString())
this.ref["textField"+i].text = subnodes[3].firstChild.toString()
this.ref["textField"+i] = subnodes[4].firstChild.toString()
}
} else trace("Error loading XML document")
}

Input Text Field To Dynamic Text Field
Ok, I have an input text field with a variable name of "enter", and a dynamic text field with a variable name of "display". I also have a button on the stage. I want it so that when you press the button, it checks what the user has put into the input text field, and if it is valid it will display a certain message in the dynamic text field.
For example:
If the user types in "hydrogen" and then clicks the button, I want the dynamic text field to display the letter H. Likewise, if the user types in "oxygen" and then clicks the button, I want the dynamic text field to display the letter O. And finally, if the user types in something that is not specified in the code, it will just display "Not Valid".
I tried doing this with an on(release) action and then some if statements, but nomatter what I typed in it would always display H. I'm probably overlooking something simple, but nonetheless, I need help. Thanks

Input Text Field Into Dynamic Text Field
Hey guys,

I'm really new to AS 3.0. I would like to transmit information from an input text field into a dynamic text field once a submit button is clicked.

Any help would be greatly appreciated.

I'm using CS3 AS 3.0. Thanks!

XML And MC Text Field Propigation (text Field Appear At Frame 2)
I am using xml and actionscript to propicate two fields in a mc.

The problem I am having is that both fields dont show up until the second frame of the mc. since they are not on the first frame the xml doesnt propicate the fields.

Is there any way to refence a field on the second from of a MC

I am using the following code:


Code:
function loadXML(loaded) {
if (loaded) {

_root.attractions = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
_root.description = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;

_root.theaterinfo.header.text = _root.attractions;
_root.theaterinfo.description.text = _root.description;

} else {
content = "file not loaded!";
}
}

xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("attractions.xml");

stop();
The text boxs header and description dont appear until the second frame of the MC theaterinfo

If i move these text field to the first frame they propigate with their text just fine. once they are moved to the second frame they no longer work.

edit: I also would like to mention that the movie clip theaterinfo has frame one blank with a stop(); command and then on frame 2 the dynamic text fields are referenced.

all help is much apreaciated
Thanks

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.

[F8] MySQL Field Value Into Dynamic Text Field In Flash
Hi, im having trouble as to how to retreive a value in a field of a MySQL database and putting it into a dynamic text field in flash... i have no idea as how to do this... any help? thanks

Asp Database Field Loaded Into Dynamic Text Field -HELP
Hi all,
after much trial and error and still having troubles i thought i would ask people that maybe know what there doing.
Im using Flash 8 pro, and have placed textarea component on stage and gave it an instantce name, need to pull a single record from a record database using asp.

This is my approach but if there is an even easier way let me know.

I have created the following pages.
webpage.asp (end result web page that shows the text field to user)
script.asp( asp script that sends data back/forth to flash

i used the FlashVars param to pass a variable into the flash movie.
variable is named auto_num. im using this to then pass it back out of flash to filter the recordset.

then on the flash movie.swf. all on root level. i have the following code

var text_value; //(this is the value sent back from asp page string)
//not sure if i needed to declare it but did anyways.

var_sender = new LoadVars();
myData = new LoadVars();

var_sender.auto_number = auto_num //(auto_num is loaded flashvars param)

myData.onLoad = function() {
my_text_1.text = this.text_value
};
myData.sendAndLoad("http://www.********.com/script.asp", myData ,"POST");

on the script page i have a record set that filters for form variable named auto_number. all of code is in asp. I call a response.write to write the text_value back to the flash movie.

here is the heart of the script.asp code. not showing the record set filtering stuff.

<% Dim text_value
text_value = "text_value="&(Recordset1.Fields.Item("long_des"). Value)

response.write(text_value)
%>

but i get undefined and can never get the variables to load into the flash movie. i want to export as flash player 6 or 7. what am i doing wrong here?

So in a nutshell, i have an asp page that shows a record and would like to display the long description field of that record in a flash dynamic text box.

I can make it work by passing the entire long description from record set within the flashvars param but that seems like a real clunky way to do it pasing that much text within the flashvars param.

Does anyone know of simple database connectivity kits that extend flash for the semi-programmer guys?

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:";
}

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

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

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