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




Help On Submitting Variable Hidden Method?



Hi all
I need to upload highscore values from flash and have following question.

the problem with getURL method // valuses are shown in url header...not good solution :-(
//--------------------------------------
"hcores.htm?usrname="+username+"&gID="+gameid+"&score="+highscore+", "post");
//---------------------------------------
are any secret method in flash that would let me post the values hidden?
//--------------------------------------
many thanks
reverse



Ultrashock Forums > Flash > ActionScript
Posted on: 2006-03-28


View Complete Forum Thread with Replies

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

Flash Forms - Best Method Of Submitting Data
Help ! I have created a flash form that I want visitors to use when they go to a site. I have all the flash components in place BUT I am completely confused on how to post the data - Should I use CGI, PHP, ASP ? Can any of these direct the flash form to display success or unsuccessful pages depending on how the form was processed.







"I'm all in favor of keeping dangerous weapons out of the hands of fools. Let's start with computers!"

Hidden Variable In Flash
I would like to POST a variable to an asp page. The variable needs to be hidden and not really part of a form.

From a button I am going to do a

on (release) {
getURL("contactform.asp", "", "POST");
}

How do I setup a variable named strCSA that will be posted to the asp page?

Thanks, John

Loading A Hidden Variable Into A Pop Up Window
I'm creating a flash games site where only registered users can get their scores on the leaderboards. I would prefer to launch a pop up window for each of my games when the users play them, rather than loading the swf into the main movie, but the username variable will need to be sent to the game. How can I send this variable to my pop up window without using the game.html?username=Joe%20Bloggs method?

Cheers

Variable.Method(); Don't Get It.
this is probably a stupid question.
I dont understand why variable.Method(); works.
in for example:
text1 = number1.toString();
shouldn't it be: text1 = toString(number1);?
i know this doesn't matter really, but i think i'll understand the general idea of the language better if i know how this works.
this means that all Number variables (and other) have the Method toString in them? or are there some methods that every object has? and doesnt mre methods in an object mean more Ram usage?

this probabably all sounds really stupid doesn't it? :/

[F8] Load Variable In Method
hello i want to load the linestyle properties like line size, color etc from external file, i am dummy please help.

dummy.onMouseDown = function() {
if (1) {
this.lineStyle(5,0x006699,100,true,"normal","round ","round",4);
this.moveTo(_xmouse, _ymouse);
this.onMouseMove = function() {
this.lineTo(_xmouse, _ymouse);
updateAfterEvent()
};
this.onMouseUp = function() {
delete this.onMouseMove;
};
}
};

Load Variable Into .swf From A GET Method (AS3)?
I just want to grab the data after the "?" in a URL
i.e.
http://MySite.com/MyPage.php?MyData=whatever

The .swf file located on this same MyPage.php will import the MyData=whatever

Thanks

Method For Uploading Many Variable From .txt
Is there a way to make "1-1=120,10,hello how are you" be loaded from a text file so that i don't have to make something like "T1-1=120&P1-1=10&S1-1=hello how are you".

Is there any code that would allow me to make the first " " a variable then after the "," the next " " a variable so on.

I just cant think of any code that would allow me to do this (i currently have it set up like "T1-1=120&P1-1=10&S1-1=hell how are you", but that really wont work in the long run).

If someone shows me the basics i can probably alter it to work in my engine. So if you can just do the small example and put it into something like var1 var2 and var3.

Thanks very much.

Method From Passed Variable?
Hi all,

Having a little bother trying to call a method as defined elsewhere. I have a class Reactor that has public methods A and B and I want an intermediary call (Remoting) to turn the string of the method into well.. actually calling it.

I have tried


Code:
React.strMethod(var1)
and

Code:
["React."+strMethod+"(var1)"]
and

Code:
React.[strMethod](var1)
and some other variations on the square brackets, they do nothing mostly, a few variations throw errors.

I then moved to trying getDefinitionByName()

Code:
var oRef = getDefinitionByName(strMethod)
React.oRef(var1)
But these give "Variable TargetMethod not declared" etc.

So I also tried


Code:
var oRef:Function = getDefinitionByName(strMethod) as Function
React.oRef(var1)
and also with 'Class' instead of Function.

Nothing seems to work

To clarify, the call works if i just have it statically written, just not dynamically passed. Could anyone shine a ray of light onto this for me please? Eval seems so simple!

Using POST Method, But Need To Use A Keyword As Variable?
I'm working on integrating a form submission into a .swf file, that uses the POST method...

the only problem is that one of the variables the receiving CGI script (that I have no control over) requires me to use a variable named "add"

... is there a way for me to send a variable with that name despite the fact that "add" is an operator?

A Variable To Hold A Method Name, What Type Is It?
Code:
Math.easeIn = function (r, p, f){
if (p == undefined) p = 2;
if (f == undefined) f = Math.pow;
return f (r, p);
So, here, f holds the function mae Math.pow.. I'm not sure I understand what type of a variable this is. Obviously, r and p are numbers. Heh, I didn't even know that variables could hold method names and be used to actually call the methods. anyway, your help is appreciated. :-)

Load A Numerical Variable With The LoadVar Method
I want to load a numerical var in the movie, but after i load it i cant get incremment, i'm doing something like a counter, that's 'cause i want to load it and make operations with it.

I prove "trace(typeof)" to know the type of the var and the output says that its undefined. How can i define it.

Thanx

[Actionscript 2] Calling A Method Defined In A Variable
Hello,
In order to improve the performances of the main loop and avoid a big switch/case , I would like to have an array of variables containing the methods to be called for each case. Is it possible to do so with actionscript 2?

Custom Class - Variable&Method Pulldown?
Not sure of the correct teminology, but I am creating some custom classes. I declare them and they function as expected. I was expecting to get the real nice pull downs examples...

when you declare a standard var, you'll get the list of the standard flash availabe classes, can I get my classes in there?

Once declared, can I get the list of methods and required variables needed to pass

And finally, can I overload methods?

Question On Variable, Method, Access Scope
im still new to actionscript, but i do have OOP background.
it goes like this

//
//Connection.as
//
class Connection
{
var host:String;
var port:Number;
var dhandler_xmlsocket:XMLSocket;

function Connection(my_host, my_port)
{
this.host = my_host;
this.port = my_port;
this.dhander_xmlsocket = new XMLSocket();
this.dhander_xmlsocket.onConnect = function(success)
{
////////////////////////////////////////////////////////////
// how to access do_something_exciting() from here
// or other Connection's variables and methods?
////////////////////////////////////////////////////////////
}
} // end of constructor

function do_something_exciting()
{
//do something really exciting;
}

} // end of class Connection

Question On Variable, Method, Access Scope
im still new to actionscript, but i do have OOP background.
it goes like this

//
//Connection.as
//
class Connection
{
var host:String;
var port:Number;
var dhandler_xmlsocket:XMLSocket;

function Connection(my_host, my_port)
{
this.host = my_host;
this.port = my_port;
this.dhander_xmlsocket = new XMLSocket();
this.dhander_xmlsocket.onConnect = function(success)
{
////////////////////////////////////////////////////////////
// how to access do_something_exciting() from here
// or other Connection's variables and methods?
////////////////////////////////////////////////////////////
}
} // end of constructor

function do_something_exciting()
{
//do something really exciting;
}

} // end of class Connection

Calling A Prototype Method Results In Undefined Variable
I can't for the life of me see the error here and I've checked it against Colin Moock's Definative Guide and against MM's advanced actionscripting course's syntax. It looks perfect but results in "undefined" being traced. Help?

Checker = function(){
this.one=0;
}

Checker.prototype.update = function(){
trace(this.one);
}

myCheck= new Checker();
tick2 = setInterval(myCheck.update, 1000);

//Traces "undefined" when "0" is expected

Thanks,

NCD

[MX] POST Method Not Hiding Variable In Browsers URL Window?
Can anyone please help me with this login string? It’s working fine except I thought the “POST” method would hide my variables in the browsers URL window?

on (release) {
getURL("http://www.my_site.com/amember/member.php?amember_login="+_root.userName+"&amembe r_pass="+_root.passWord+"&submit=Login", "_self", "POST");
}

Thank for any help in advance

Calling A Subclass Method Through A Variable Typed To A Superclass
It's early days in my AS3 learning, and I'm looking for a little clarification regarding a variable typed to a superclass (in this case var mySpinner:MovieClip) which contains a reference to an new instance of a subclass (in this case Spinner.)

I am trying to get my head around why my code compiles and runs and I am able to call the method rotater() on mySpinner even though mySpinner is typed as MovieClip, and the MovieClip class does not contain the method rotater().

On page 163 of the official Adobe PROGRAMMING ACTIONSCRIPT 3.0 documentation it says the following, which I believe is related to my situation, but I am still in need of clarification:

"Because each class defines a data type, the use of inheritance creates a special relationship between a base class and a class that extends it. A subclass is guaranteed to possess all the properties of its base class, which means that an instance of a subclass can always be substituted for an instance of the base class."

Like many other programming hurdles I've overcome, I just need some additional angles on this. Any advice would be much appreciated! Thanks in advance for any replies.



Code:

// document class

package
{
import flash.display.MovieClip;

public class Test extends MovieClip
{
// constructor
public function Test():void
{
var mySpinner:MovieClip = new Spinner();

addChild(mySpinner);

mySpinner.gotoAndStop(16);

// todo: why CAN I call method rotater() when mySpinner is typed as MovieClip?
mySpinner.rotater();
} // end Test()
} // end class
} // end package

// Spinner class

package
{
import flash.display.MovieClip;

public class Spinner extends MovieClip
{
// constructor
public function Spinner():void
{
trace("Spinner() constructor");
} // end Spinner()

public function rotater():void
{
this.rotation = 90;
} // end rotater()
} // end class
} // end package

[MX] POST Method Not Hiding Variable In Browsers URL Window?
Can anyone please help me with this login string? It’s working fine except I thought the “POST” method would hide my variables in the browsers URL window?

on (release) {
getURL("http://www.my_site.com/amember/member.php?amember_login="+_root.userName+"&amembe r_pass="+_root.passWord+"&submit=Login", "_self", "POST");
}

Thanks for any help in advance

Accessing Variable And Method In A Class From A Sub Movieclip On Stage?
Folder structure.

root_folder/site.fla
root_folder/hdg/HDGClass.as

I have the document class set to hdg.HDGClass and there are 3 movie clips on the stage with the instance names btn1, btn2, and btn3 and each have a submovie clip with the instance name btn.

HDGClass.as


Code:
package hdg {

import flash.display.MovieClip;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.xml.*;
import flash.events.*;
import flash.errors.*;


public class HDGClass extends MovieClip {

public var currentNav:int = 1;

public function HDGClass():void {
init();
}


public function init():void {


//initialize top navigation buttons
btn1.btn.addEventListener(MouseEvent.MOUSE_OVER, topNavOver);
btn1.btn.addEventListener(MouseEvent.MOUSE_OUT, topNavOut);
btn1.btn.addEventListener(MouseEvent.MOUSE_DOWN, topNavClick);
btn1.btn.buttonMode = true; //gives movieClip the hand cursor

btn2.btn.addEventListener(MouseEvent.MOUSE_OVER, topNavOver);
btn2.btn.addEventListener(MouseEvent.MOUSE_OUT, topNavOut);
btn2.btn.addEventListener(MouseEvent.MOUSE_DOWN, topNavClick);
btn2.btn.buttonMode = true;

btn3.btn.addEventListener(MouseEvent.MOUSE_OVER, topNavOver);
btn3.btn.addEventListener(MouseEvent.MOUSE_OUT, topNavOut);
btn3.btn.addEventListener(MouseEvent.MOUSE_DOWN, topNavClick);
btn3.btn.buttonMode = true;

}


function topNavOver(event:MouseEvent):void {
event.target.parent.gotoAndPlay(2);
}

function topNavOut(event:MouseEvent):void {
event.target.parent.gotoAndPlay(34);
}

function topNavClick(event:MouseEvent):void {
currentNav = event.target.parent.id_txt.text;
}

function yo() {
trace("yo");//test function
}

}
}
frame 1 of my root timeline just has...

Code:
stop();
on frame 34 of btn1, btn2, and btn3 there is this code just to test if the variable or test methods can be retreived/called.

Code:
trace(currentNav);
yo();
The mouse events work fine triggering the mouse_over and mouse_out and mouse_down actions. But when I added the above code to frame34 I get these errors...

1120: Access of undefined property currentNav.
1120: Access of undefined property yo.

How do I access them correctly?

I tried adding this to frame1 of my root timeline just to do another test but still got errors....


Code:
var x:HDGClass = new HDGClass();
x.yo();
trace(x.currentNav);

Calling A Subclass Method Through A Variable Typed To A Superclass
It's early days in my AS3 learning, and I'm looking for a little clarification regarding a variable typed to a superclass (in this case var mySpinner:MovieClip) which contains a reference to an new instance of a subclass (in this case Spinner.)

I am trying to get my head around why my code compiles and runs and I am able to call the method rotater() on mySpinner even though mySpinner is typed as MovieClip, and the MovieClip class does not contain the method rotater().

On page 163 of the official Adobe PROGRAMMING ACTIONSCRIPT 3.0 documentation it says the following, which I believe is related to my situation, but I am still in need of clarification:

"Because each class defines a data type, the use of inheritance creates a special relationship between a base class and a class that extends it. A subclass is guaranteed to possess all the properties of its base class, which means that an instance of a subclass can always be substituted for an instance of the base class."

Like many other programming hurdles I've overcome, I just need some additional angles on this. Any advice would be much appreciated! Thanks in advance for any replies.









Attach Code

// document class

package
{
import flash.display.MovieClip;

public class Test extends MovieClip
{
// constructor
public function Test():void
{
var mySpinner:MovieClip = new Spinner();

addChild(mySpinner);

mySpinner.gotoAndStop(16);

// todo: why CAN I call method rotater() when mySpinner is typed as MovieClip?
mySpinner.rotater();
} // end Test()
} // end class
} // end package

// Spinner class

package
{
import flash.display.MovieClip;

public class Spinner extends MovieClip
{
// constructor
public function Spinner():void
{
trace("Spinner() constructor");
} // end Spinner()

public function rotater():void
{
this.rotation = 90;
} // end rotater()
} // end class
} // end package

























Edited: 11/26/2008 at 11:23:30 AM by miner2049er

Problems Parsing Recipient Variable While Using Send & Load Method
I'm using send and load when i submit my form it's working fine except for the fact that I don't receive any emails.

Can anyone help?


CODE
************************************************** ******************
stop();
recipient = "BLAH@au1.ibm.com";
varSender = new LoadVars();
varReceiver = new LoadVars();
varSender.name = "BLAH@tpg.com.au";

clear_btn.onRelease = function() {
gotoAndStop(23);
}

submit_btn.onRelease = function() {
if (fn.text == null || fn.text == "" || ln.text == null || ln.text == "" || e.text == null || e.text == "" || c.text == null || c.text == "")
{
gotoAndPlay("error");
}
else {
varSender.sendAndLoad("/cgi-bin/teambzrk.pl", varReceiver, "POST");
varReceiver.onLoad = function() {
trace(this.name);
gotoAndPlay("thankyou");
}
}
}
************************************************** *******************

Function In A Method Return True To Method's Caller?
I think I probably don't know the correct terminology to ask this question, but here goes:

In this example, can anyone tell me how to have the setComplete event function within the main method return true to the caller of the method, instead of just to the listener?


PHP Code:



    function loadAsset(target:MovieClip, asset:String, assetLoaderInfo:LoaderInfo): Boolean    {    var assetLoader:Loader = new Loader();    var assetURLRequest:URLRequest = new URLRequest(asset);    assetLoader.contentLoaderInfo.addEventListener(Event.OPEN, setLoaderInfo);    assetLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, setComplete);    function setLoaderInfo(event:Event)        {        assetLoaderInfo = event.currentTarget;        }    function setComplete(event:Event)        {        target.addChild(assetLoader);        return true;        }    assetLoader.load(assetURLRequest);    }

Function In A Method Return True To Method's Caller?
I think I probably don't know the correct terminology to ask this question, but here goes:

In this example, can anyone tell me how to have the setComplete event function within the main method return true to the caller of the method, instead of just to the listener within the method?

Many thanks!


PHP Code:



function loadAsset(target:MovieClip, asset:String, assetLoaderInfo:LoaderInfo): Boolean
    {
    var assetLoader:Loader = new Loader();
    var assetURLRequest:URLRequest = new URLRequest(asset);
    assetLoader.contentLoaderInfo.addEventListener(Event.OPEN, setLoaderInfo);
    assetLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, setComplete);
    function setLoaderInfo(event:Event)
        {
        assetLoaderInfo = event.currentTarget;
        }
    function setComplete(event:Event)
        {
        target.addChild(assetLoader);
        return true;
        }
    assetLoader.load(assetURLRequest);

    }

Submitting To ASP
I'm submitting a load of variables to an ASP and I don't seem to get the response I expect. I use trace to make sure my aspstring is as expected and then send it using LoadVariables. It should send back two variables which it does but they are not correct.

I suspect the problem is that the asp requires the variables to be submitted using the POST method. Normally I would do this from a form in a HTML page but I am not sure I am doing it correctly in Flash.

Can someone verify that the actionscript below will send my variables using the POST method?

aspstring = (http://www.example.com/test.asp?id=" + id + "&uname=" uname);
trace(aspstring);
loadVariables (aspstring, this, "POST");

Thanks
Andy B

Submitting Text
i want to design an interface in which there will be 3 text boxes say text1,text2 and text3. i want to have 2 buttons clear and submit. the purpose would be that when the user clicks on the submit button, the text in those text fields should be sent to my mail address say xyz@abc.com and also when the clear button is pressed all text should be cleared if any in the text boxes.

any idea what code is to be placed behind these buttons to make them functional.

Submitting A Form
I would like to have a feedback form in Flash but I am not sure how to get it to work.

I tried this tutorial
http://www.flashkit.com/tutorials/D..._-658/index.php

and I tried to implement it with PHP but it doesn't seem to work right. I also followed Jeffrey Hill's tutorial on "Installing Apache 2.0, PHP 4.2, MySQL 3.23, and PHPMyAdmin" in my Windows XP machine to test it.

When I load my published movie on http://localhost I fill in the form and submit it with my email address as the recipiant. The only problem is that I never recieve an email.

I configured the SMTP settings to my ISP (compuserve) mail server in the php.ini file like this,
---------
SMTP = smtp.cs.com
sendmail_from = myEmail@cs.com
----------

I placed my .swf file on http://localhost which contained the code:
loadvariablesNum("EmailTest.php", 0, "POST");
and also put EmailTest.php in the directory as well.

EmailTest.php looks like this:
----------------------------------------------
<?
$ToEmail = "myEmail@cs.com";
##$ToName = "Myself";
$ToSubject = "Example Mail from SendMail Tutorial";
$EmailBody = "Sent By: $FirstName
Senders Email: $Email

Message Sent:
$ToComments

";
$EmailFooter="
This message was sent by: $FirstName If you feel that you recieved this e-mail by accident please contact us at www.somesite.com";
$Message = $EmailBody.$EmailFooter;
mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$FirstName." <".$Email.">");
?>------------------------------------------------------

and in my movie I have defined
Email, FirstName, and ToComments within input textboxes

For a while Norton was firing up when I hit the submit button and scanned the "outgoing email" but I kept checking my mailbox and found nothing.

Norton isn't scanning when I hit the submit button currently and I still am not getting any mail.

Anyone have any ideas?
running phpInfo.php reveals that I am running PHP 4.2.0 with Apache 2.0 filter

If anyone has any hints or better ways to configure a feedback/comments form that would be great.
Thanks
John

Submitting Websites
Any tricks on getting your site listed with browsers
Ive tried and tried but no results

Submitting Forms
Im looking to let users submit info (esp. email addresses) via flash
like a cgi submisison form. Can anyone lead me in the right direction. Perfect example is at the bottom of http://www.djirie.com

TIA

Submitting Variables To ASP
I am trying to submit variables to an ASP login validation page, but Flash does not seem to want to send the variables. The ASP page is now configured to Response.Write any variables it receives if the login fails. Every time I submit with Flash, the login fails, and nothing is submitted.

Here is my ActionScript:

code:
txtusername = user.text;
txtpassword = pass.text;
getURL("loginval.asp", "_blank", "POST");


What can I do? This is very urgent, so I appreciate any and all help! Thanks!!

Re-submitting Commented .fla
How can I submit an revised .fla to flashkit for consideration? Just realized that an .fla file I submitted today (my first) could use several comments to explain the scripting. Such comments are often what have instructed me the most.
Should I just submit again? Maybe send an e-mail (to who)?

Submitting Info
I'm not sure if you can do this in Flash but when a button is pressed to load a new swf I want it to submit information onto the the new swf. For example if I pressed a button out of a few choices that was blue, on the new loaded swf I want it to say blue. Then also in that movie when you press another button it takes the word blue and a new word onto the next new loaded swf. For example if I pressed a button that said BMW, so on the third page it would say "blue" and "BMW".

Does anyone know if it can be done?
Thanks

Submitting Forms
hey, i was having trouble with having components on a website and submitting and gathering the information the visitors would input. Can n e one help me on where to start? thanks

Form Submitting
I have this on my Submit button:
on (click) {
dataSender = new LoadVars();
dataReceiver = new LoadVars();
dataSender.Name = Name.text;
dataSender.Email = Email.text;
dataSender.Type = Type.getValue();
dataSender.Comment = Comment.text;
dataSender.sendAndLoad("feedback.php", dataReceiver, "POST");
}
When I check mySQL, it gives me in the info for each field as "undefined"
What am I not doing right?
Thanks

Help With Submitting Form
I have a form with two imput text boxes: "name" and "comments". How can I have it send those to an email address comments@mydomain.com? I'd like to do this with the easiest method and without using PHP or any other side script if possible.

Thanks,
Mike W.

Submitting Score
Hi all,

Can anyone offer me any advice on how i could go about allowing users to submitting the score they achieve in a game, the idea of this this is to have a score board so users can compete for the top score. I have no idea how to even begin this.

Any advice would be very much appreciated!

Thanks in advance

Submitting A Tutorial
hi

just out of curiosity who writes the tutuorials on this site? or can anyone write one they tink needs to be added and send it in?

thanks!

Andy Burton

Submitting Form
I have a simple feedback form that I want to submit via asp. I know the .asp script works, but I'm missing something with my actionscript on the send button:

on (release) {
getURL("

PhP Submitting Problem.. Please Help
Ok the submitting form was working perfect, stil is, but i want to add in a "company" bar, here is what i did, and i get everythign in the email except comapny

<?
$to = "info@tek-labs.com";
$name = $_POST['name'];
$email = $_POST['email'];
$company = $_POST['company'];
$question = $_POST['comments'];
$subject = $_POST['subject'];

$message .= "name: $name - email: $email
";
$message .= "($comments)
";
$message .= "$question
";

$header = "from: $name ($email)";

mail($to, $subject, $message, $header);
?>


thanks in advance!!

Submitting Data To XLS
I asked a question in reference to this project about a week ago, but I wanted to try and reword it to see if someone might be able to help, or tell me it's not possible.

Working on dashboards for economic development. Need the DB to have a map of a state with counties...

My idea is to create the map in Flash. The data for the map is in .xls. Each record applying to a county in the map. I need the map to be interactive and display data from the xls when the user interacts.

So my question is... Is it possible to apply an action to a Flash MC or Btn that when clicked will populate a field in a separate .xls (with the county's predetermined unique ID/primary key)?

I feel like it's a stretch, but I wanted to try first. I'm using a dashboard development software xcelsius, and its ability to handle what i need is a bit cumbersome.

Thanks for any help

First Steps In Submitting To Asp
Hi
Just joined the list and just getting to grips with Flash(4), some help would be much appreciated.

I have created a submission form with four text fields the contents of which will need to be posted to an asp file. Has anyone out there got the patience to coach me through naming the fields/variables and coding the submit button? I've been messing around with it for a while but I've decided to my shame that I really haven't got a clue as to what I am doing.

Many thanks

Lole

Form Submitting To Php
I have tried many ways to get what I want to work, work, but to no avail. I would like to pass the text in text box "a" to something like this http://mysite.com/info.php?a="text from text box a". How in the heck can i do this????

thanks,


c

URGENT - Submitting Text
hi-i've created a live text box, the variable is set as 'kompu', i have a button, on the release state of the button i want to have the text that has been inputted emailed to me at a certain address... please help obi wan!!!

Submitting Info To E-mail, PLEASE HELP
what i want to do is have a text box with a submit button beside it and have the text the user types in the box be sent to a certain e-mail address when the submit button is clicked.

i think i've seen this done before but i don't know how, any info would be great!!!

Submitting A Form To Tmail.cgi
Can someone tell me where I am going wrong on this. A two part question. I have created a form in flash 5 with the text feilds named and the text option set to "input text" On release of my submit button I am posting the forms variables to my servers cgi-bin file where i have the tmail.cgi program. I am using this because i have several other simple form varibles placed in a movie clip on the stage called variables. This movie houses the _mailto, _subject and _thanks values. Firts off I am getting no 505 or 400 errors on submit however I am not getting the e-mail when submitted as I have instructed the form to do. Here is the code I am using.

on (release) {
loadVariablesNum ("http://www.latincba.com/cgi-bin/tmail/tmail.cgi", 1, "POST");
}

Submitting Text Variables
I am experimenting with writing variables out to a web page, but when I examine the server logs, it does not seem that they are being sent.

My "Save" button movieclip has the code:

on (release) {
loadVariablesNum ("http://test.ponydom.com/test/dump.html", 0, "GET");
trace ("vars dumped");
}

The trace comes up fine, and the hit to the server comes up in the log, just with no query string.

I tried adding a test variable in my on (release) statement, and that variable came through. How do I tell it what variables to get out of the _root ?

What is the difference between loadVariablesNum and loadVariables and getURL, and why would I choose one over the other?

Any help would be deeply appreciated.
[Edited by elindelef on 07-15-2002 at 12:31 PM]

Submitting Their E-mail Address
I would like to put a panel on a webpage where they can enter their e-mail address then send it by way of subscribing to a newsletter. Though this can be acheieved using the "Form" tools in Dreamweaver I would like to do this in Flash MX. Does anyone know of a tutorial.

Many thanks, Chris:

Submitting Text To Email
http://www.boydbrothersservice.com/info.html

after you fill in all my text fields i have the following actionscripting on the send button
-------------------------------------------------------------------
on(release){
if(txtname ne "" and txtemail ne "" and txtphone ne "" and txtaddy ne "" and txtstate ne "" and txtzip ne ""){
getURL("mailto:service@boydbrothersservice.com");
gotoAndPlay("valid");
}else{gotoAndPlay("invalid")}}
--------------------------------------------------------------------

after you click the send button it open outlook express.
is there a way to have that information just sent to the specified email?

Submitting Text To Email?
http://www.boydbrothersservice.com/Info.html

my actionscript on my send button is

---------------------------------------------------------------
on(release){
if(txtname ne "" and txtemail ne "" and txtphone ne "" and txtaddy ne "" and txtstate ne "" and txtzip ne ""){
(txtname, txtemail, txtphone).send(mailto:matt@boydbrothersservice.com );
getURL("mailto:matt@boydbrothersservice.com" + txtname + txtemail+ txtphone + txtaddy + txtcity + txtstate + txtzip + txtcom);
gotoAndPlay("valid");
}else{gotoAndPlay("invalid")}}
----------------------------------------------------------------

im getting the following errors and also a 404 page error

-----------------------------------------------------------------
Scene=Scene 1, Layer=Layer 1, Frame=2: Line 3: ')' or ',' expected
(txtname, txtemail, txtphone).send(mailto:matt@boydbrothersservice.com );

Scene=Scene 1, Layer=Layer 1, Frame=2: Line 6: 'else' encountered without matching 'if'
}else{gotoAndPlay("invalid")}}

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