Passing Hidden Variables
I am trying to send hidden variables to a paypal account and I don't know how. I have read enough to know that I use the getURL("https://www.paypal.com/cgi-bin/webscr", "post") to send variables input from a form. But how do I pass the hidden variables for Paypal to accept?
Any help, or direction would be most appreciated.
Thank you in advance,
Rick
FlashKit > Flash Help > Flash MX
Posted on: 12-26-2004, 07:03 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
(CGI) Passing Hidden Variables
Hi:
I've spent 4 days trying to get a Flash 5 movie to pass hidden variables to a CGI script without success. I have done this before in the past, and I previously had this same exact script and movie working, but it stopped working for some unknown reason. I'd appreciate it if someone could help me figure out why.
First, it is hosted with Netfirms, however, it is a pay account with full cgi-bin access. Second, the same script works fine from an HTML form, on Netfirms, and on another server I use. Third, the form action IS reaching the server, but the hidden variables are not. Instead, I keep getting a script error, saying that there is no data_order list specified. However, this is my script:
on (release) {
data_order = "name,submit_by,comments";
loadVariablesNum ("http://ekigroup.netfirms.com/cgi-bin/bnbform3.cgi",0,"POST");
}
I have also tried:
on (release) {
data_order = "name,submit_by,comments";
loadVariables ("http://ekigroup.netfirms.com/cgi-bin/bnbform3.cgi",this,"POST");
}
I'm not sure that this really matters, either way, since the form is being submitted, it's just that the "data_order" variable is not being passed.
The form is in an MC, inside of another MC, but as I already said, it worked previously. In that case, I had the hidden variable as a frame action in the 1st frame of the MC containing the form, but the same thing no longer works.
Here is the cgi's first check:
Code:
sub decode_vars
{
$i=0;
read(STDIN,$temp,$ENV{'CONTENT_LENGTH'});
@pairs=split(/&/,$temp);
foreach $item(@pairs) {
($key,$content)=split(/=/,$item,2);
$content=~tr/+/ /;
$content=~s/%(..)/pack("c",hex($1))/ge;
$content=~s/ / /g;
$fields{$key}=$content;
if ($key eq "data_order") {
$content=~s/ 12//g;
$content=~s/ 15//g;
$content=~s/ //g;
$content=~s/ //g;
@sortlist=split(/,/,$content);
}
And here is the error I keep getting:
Code:
sub valid_data
{
if ($fields{'data_order'} eq "") #make sure we have work to do!
{
print "Content-type: text/html
";
print <<__W1__;
<H1>NO data_order list SPECIFIED!</H1>
__W1__
exit;
}
foreach $to_check (@mandatory) #test all required fields, bail on 1st bad
{
if ($fields{$to_check} eq "") {
if ($fields{'not_ok_url'} ne "") {
print "Location: $fields{'not_ok_url'}
";
exit;
}
else { &try_again; }
}
}
}
Here is the HTML form to the same script on the same server:
http://www.ekigroup.com/testform.html
Anybody have any ideas???
Thanks,
James
http://www.ekigroup.com
Passing HTML Form And Hidden Variables From Flash To Html Page
Hi,
I have a html/flash site now, http://www.zachariack.com.
i access email from my site itself by giving the userid and pwd text box which i copied from the actual website hosting my email access. i copied the entire
<form...></form> tag to my page and thus was able to put the name and pwd in my home page only and access the email in a separate window.
now i have redesigned my webpage using only flash. i would like to know how i can implement the same using flash. as i have not much experience using action scripting i am a bit stuck about how you pass the hidden form variables. the below is the the exact form syntax:
<form name="form1" action="http://www.accudatanet.com/mail/msglist.php" method=post>
<input type="hidden" name=sid value="E9697301F704A0CE947DEF42CF86636A">
<input type=text size=15 name=f_user value="">
<input type=hidden name=six value=0>
<input type=password size=15 name="f_pass">
<input type=submit name=submit value="Login >>" class="button">
</form>
how do i implement the above using action scripting. thanks.
regards,
vasant
Passing HTML Form And Hidden Variables From Html To Flash
Hi
I need some help passing a html code to flash code. Maybe you guys can set some light on the subject.
<html>
<script>
function Dimensiones()
{
document.getElementById("tamx").value= document.getElementsByTagName('body')[0].clientHeight;
document.getElementById("tamy").value= document.getElementsByTagName('body')[0].clientWidth;
}
</script>
<body ONLOAD="Dimensiones();" ONRESIZE="Dimensiones();">
<form method="Post"
action="http://Validation link.asp">
<input type ="hidden" name="tamx">
<input type ="hidden" name="tamy">
<input type ="hidden" name="url_return" value ="http://Link.asp">
<input type ="hidden" name="url_ot" value = "http://Validation link.asp">
Nombre <input type="text" name="UserName" value="" size="20">
Password <input type="password" name="UserPass" size="20">
<INPUT type="submit" value="Enviar">
</form>
</body>
</html>
I'm having a real hard time passing the function Dimensiones() and dealing with the hidden variables. Can you guys help me with this? Thanks
Passing HTML Form And Hidden Variables From Html To Flash
Hi
I need some help passing a html code to flash code. Maybe you guys can set some light on the subject.
<html>
<script>
function Dimensiones()
{
document.getElementById("tamx").value= document.getElementsByTagName('body')[0].clientHeight;
document.getElementById("tamy").value= document.getElementsByTagName('body')[0].clientWidth;
}
</script>
<body ONLOAD="Dimensiones();" ONRESIZE="Dimensiones();">
<form method="Post"
action="http://Validation link.asp">
<input type ="hidden" name="tamx">
<input type ="hidden" name="tamy">
<input type ="hidden" name="url_return" value ="http://Link.asp">
<input type ="hidden" name="url_ot" value = "http://Validation link.asp">
Nombre <input type="text" name="UserName" value="" size="20">
Password <input type="password" name="UserPass" size="20">
<INPUT type="submit" value="Enviar">
</form>
</body>
</html>
I'm having a real hard time passing the function Dimensiones() and dealing with the hidden variables. Can you guys help me with this? Thanks
Passing Values To Hidden Fields?
I'm trying to figure out how to pass a value of a button in one frame, to a hidden field so that I can submit this information through with a form.
More or less, I have created a questionare within a small banner. Each question has 2 answers to choose from. When you select your answer, it goes on to the next question in a later frame. These answers need to be sent to a hidden field where my submit form area can grab it and send it off.
CAN SOMEONE PLEASE help me and if possible attach an FLA of a really simple example.
THANKS SO MUCH!!!!
Passing Values To Hidden Fields?
I'm trying to figure out how to pass a value of a button in one frame, to a hidden field so that I can submit this information through with a form.
More or less, I have created a questionare within a small banner. Each question has 2 answers to choose from. When you select your answer, it goes on to the next question in a later frame. These answers need to be sent to a hidden field where my submit form area can grab it and send it off.
CAN SOMEONE PLEASE help me and if possible attach an FLA of a really simple example.
THANKS SO MUCH!!!!
Passing Hidden Vars From Flash To Php
I'm placing swfs in product pages of a oscommerce site.
I trying to send the whole info of a certain product to the shopping cart.
ORIGINAL CODE IS:
Code:
<form name="cart_quantity" action="http://www.shop.com/product_info.php&action=add_product" method="post"><input type="hidden" name="products_id" value="26">
<input type="hidden" name="id[3]" value="9">
The issue is that I need to pass the two hidden vars ( products_id and id[3] - wich is atrributes of the product ( may be size, color or whatever )
I'm making my first test with 50% success.
My flash code is follow:
Code:
boton.onRelease = function(){
products_id="26";
id[3]=9;
getURL("http://www.shop.com/product_info.php...on=add_product", "", "POST");
}
// Possibility two /////////////////////////////
sendVars = new LoadVars();
sendVars.products_id="26";
sendVars.id[3]=9;
boton2.onRelease = function(){
sendVars.send("http://www.shop.com/product_info.php...on=add_product", "POST");
}
Ok, products_id does pass OK
but id[3] value doesn't pass.
May be the [3] is the problem, but I can`t change that
i MUST pass the hidden value id[3]
HELP!
UPDATED 2 hours later:
i made a few tests more:
tryed this:
products_id="26&id[3]=9";
tryed this:
products_id="26&id=[,,,9]";
tryed this:
products_id="26&id=(,,,9)";
tryed this:
products_id="26";
id="[,,,9]";
BUT NEVER SUCCEDDED
Passing A Hidden Password Via Form Field
I have successfully done this with an html form but don't know how to accomplish the same thing in Flash. Here is what I've done in html:
<table><tr>
<td><form name = "form1" method="post" action="https://www.site.com/index.php"><input name="password" type=hidden value="99999">
<a href="javascript:void(document.form1.submit())">LI NK</a></form> </td>
</tr></table>
In the past I've been able to write a an onclick event in Flash but for whatever reason (lack of intelligence on my part tops the list) I can't get it to work this time. This is an action associated with a button. Here is an example of what I've done in the past in Flash:
on (release) {
getURL("https://www.site.com/index.php", "_blank", "POST");
set(password, "999999");
}
So, am I missing something? Is there an easier/better way to accomplish this?
Hidden Variables
In html, you can make a hidden variable
---> input type="hidden" name="flashactive" value="N"
Can you do this in Flash MX?
Please HELP!!!!
Thanks!!!
Hidden Variables
i have hidden variables somewhere on a frame in my movie, but i cant find them, anyway i can find out where they are when testing the movie?
How Do I Send Hidden Variables
to a php page?
for example i want to send username and password that won't be seen in the Adress bar of the browser
how do i do that?
thanks in advance
Peleg
Form Hidden Variables Help
Hi i am trying to convert a html form into a flash form. But the form has some hidden variables. which is completly loosing me,
Below is my code..
<form method=post action="http://app.icontact.com/icp/signup.php" name="icpsignup" accept-charset="UTF-8" >
<input type=hidden name=redirect value="http://www.icontact.com/www/signup/thanks.html" />
<input type=hidden name=errorredirect value="http://www.icontact.com/www/signup/error.html" />
<table width="260" class="signupframe" border="0" cellspacing="0" cellpadding="5">
<tr>
<td valign=top align=right>
<font size="1" face="Arial,Helvetica, sans-serif">*</font> <font size="2">Email</font>
</td>
<td align=left>
<input type=text name="fields_email">
</td>
</tr>
<input type=hidden name="listid" value="180577">
<input type=hidden name="specialid:180577" value="0U4L">
<input type=hidden name=clientid value="346798">
<input type=hidden name=formid value="12654">
<input type=hidden name=reallistid value="1">
<input type=hidden name=doubleopt value="0">
<TR>
<TD> </TD>
<TD><font size="1">*</font><font size="2"> = Required Field</FONT></TD>
</TR>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="Submit"></td>
</tr>
<tr>
<td> </td>
<td><font size="2"><a href="http://www.icontact.com">Email Marketing by iContact</a></font></td>
</tr>
</table>
</form>
Could any one please help me to do this ?
Thanks
Richard
Arrays, Variables And The Hidden Movieclip..
Hello!
Need some help with a movement problem...wait dont leave
just yet, its actually really complex thats why ive had to come to flashkit to ask the best...
right the idea is that i have 3 MC/buttons that each have their own code for where they should be on the stage.
lets say that they are in the following postions
A
B
C
D
"D" is their destination when they are clicked on and "A", "B", "C" are there intial postions. Here comes the hard bit.
lets say the clip on "A" has been clicked and has moved to position "D", all i want to happen is that when one of the other clips is clicked on, the clip on "D" moves back to its original position and is replaced by the clip that has just been clicked!!!!
ive tried several ways, including a movieclip that is empty bar from code that stores the name of the clip that has moved. when there is a mousedown or press event the clip is told to move back to it original position.. this however i cant seem to get to work in practice.
any help that any one could give would be greatly appreciated...
How Do I Pass Hidden Variables From Php To Flash
I am trying to make a flash file open a specific xml file from a URL that is set in the php file. when a the page is loaded, the php file is called for the variable. you must use a query line in the URL....example : http://www.mysite.com/test.swf?folder=myfolder
the php file should see the 'folder' variable and use it in the url that i want to load the xml file from. Once the variable is set in the php file, i want to transfer it to the swf file without having to change the url that the user types.
Here is basically what i want to do....
i want to be able to type in www.mysite.com/test.swf?folder=MyFolder in the browser. the php file will check some stuff in the mysql database and make sure that the user's space is not used up.....i can do that part with the space. If the user's space is not used up, it will post a variable to the swf file to load the xml file with the 'folder' variable in the url.. example : .....com/TheFolderVariable/thexmlfile.xml Once the variable is passed to the swf file, it will load properly.
I was trying to use the loadVars() and the loadVariable() commands but i cannot get the php file to post back to the swf.
Help: Passing Variables (180 Variables) To Function
hi
if i have call function like this
Math.findMax(app1, app2, app3, app4, app5, app6, app7, app8, app9, app10, app11);
but the values i have to app180
i don't want to write all this
Math.findMax(app1, ... , app180); //!!??
how i can to called the function from app1 to app180
Math.findMax(FROMapp1, ... , TOapp180);
thanx
How Do I Set Up Hidden Form Variables For A Flash Form.
Guys, I'm using the flashkit tutorial on "send e-mail in flash the easy way", or something like that. Problem is that I need to set variables for hidden input, but don't know where and how to pass them along to the script?
Thanks
Passing Variables To Swf
hi !
go here :
http://www.guistuff.com/tools/flashdrop/flashmenu.swf
then go here :
http://www.guistuff.com/tools/flashd...5&makenavurl4=
now can any body tell me what i have to do to the fla in order to send varibale to swf and make menu feilds dyanmically- also i want the variable comming from a db .
any help ?
suhailkaleem
Passing Variables
Owkee, me again
Hmm I have created a preloader with a movie that loops inside it. In that movie i calculate the percentage loaded and bytes loaded. These calculated values are stored in a variable called 'var4'.
Now is it possible to pass that variable 'var4' to the main movie ? And how do I fix this ?
Passing Variables
Is it possible to pass a variable from a buttonpush that is in an MC that needs to control the _root movie? In other words: rootmovie/MC/button -->variable assigned to control main (root) movie. For some reason I cannot get flash to recognize my requests....here is the code that I am using in the button:
on (release) {
var x = 5;
_root.gotoAndPlay ("monnonego");
}
Here is the code that asks the question, assigned to a keyframe (later down the root movie):
if (x == 3) {
gotoAndPlay ("profile", 34);
} else {
if (x == 4) {
gotoAndPlay ("portfolio", 34);
} else {
if (x == 5) {
gotoAndPlay ("contact", 34);
}
}
}
Any ideas?? Thanks in advanced!!
- Sigma
Passing Variables
I have some actionscript that doesn't work. I don't see what's wrong. Can anybody help me? It's about the towers of Hanoi. Here is my script:
var intaantal = AantalSchijven;
var intstart = 1;
var inteinde = 3;
function hanoi (n,intstartstaaf,inteindstaaf) {
if (n == 1) {
van = intstartstaaf;
naar = inteindstaaf;
trace(van);
trace(naar);
} else {
inttussenstaaf = ((6 - intstartstaaf) - inteindstaaf);
hanoi(n-1,intstartstaaf,inttussenstaaf);
van = intstartstaaf;
naar = inteindstaaf;
trace(van);
trace(naar);
//trace(inttussenstaaf);
hanoi(n-1,inttussenstaaf,inteindstaaf);
}
}
hanoi(intaantal,intstart,inteinde);
stop ();
I made a program in VB in the same way and the program works. In the program I use byval for the variable n. Maybe that's the reason why it doesn't work but what can I do?
Greetings,
Geerty.
PASSING VARIABLES TO CGI
I know this may have been answered before, but I cant seem to find it.
I need to know if anyone knows how to get Flash to pass variable info WITHOUT shifting the characters to their ASCII code... (i.e. a comma becomes %2C)
I have a cgi script (free, of course) that is looking for this:
data_order = "news,newscontent,tips"
whereas when i submit it from a flash form, it becomes this:
data%5Forder=news%2Cnewscontent%2Ctips
I'm sure someone out there has gotten this also.
Thanks in advance for any help or pointing me in the right direction.
KEEP FLASHING!
Passing Variables
Is there a way to pass a variable from one flash movie to another via a URL?
Kind of like http://www.website.com/page.html?score=30 … or something like that?
- FLASHmac
Passing Variables Instead Of Gas. Is This Possible?
I have a single frame movie as my start movie that I want to use to establish a variable. It's pretty much just saying
var exno = 2;
and then I load a movie.
When I trace it in the first movie, it's fine. It works. Great. But now I want the newly loaded swf movie to recognize this variable as well. How can I do that?
Any help would be appreciated.
Peter
Passing Variables
Movie1 (_level0) loads Movie2 to the same level. How can I pass a variable from Movie1 to Movie2? I know that it can be done by loading to a different level but is it possible when loading to the same level?
John
Passing Variables
is it possible to pass variables from movie to movie? If so, how would I go about it? thanks.
Passing Variables
i really want to pass variables to my flash movie via the url.
someone told me that if i do something like
asdfoi.swf?name=dog
then the name variable text field will show "dog"
this doesnt work.
can someone help me please
Passing Variables
I need to know how you pass variables to a swf, I know there is a way then you just have to add the variables name and it's value following the *.swf of the embed tag. But i forgot the syntax...
Can someone help please!!
Passing Variables
Hello all there!
I have created a countdown flashmovie, it counts from x seconds to zero. But the x differs from time to time, it depends on how many time is left.
What I would like to know: How can I pass a variable from my website to the flashmovie?? Propably simple but I need to know how!
Please help!
VinzZ
Passing Around Variables?
Ok so here is my question. I need to take an html form and pass the variables to a file and then have flash load those variables. I am looking for a tutorial or explanation so I can learn how to do this. Do I need a perl or php script to set and save these variables? I dont know? Anyway any help would be appreciated.
thanks
Carter
Passing Around Variables?
Ok so here is my question. I need to take an html form and pass the variables to a file and then have flash load those variables. I am looking for a tutorial or explanation so I can learn how to do this. Do I need a perl or php script to set and save these variables? I dont know? Anyway any help would be appreciated.
thanks
Carter
Passing Variables ((HELP))
I'm having trouble passing a variable from one text field to another. I have a password protected site where the user must put in his/her userName and password. If the password is correct, I want it to read "Welcome, userName.
userName is the variable name for my input text field in frame 1.
user is the variable name for my dynamic text field name in frame 3.
frame1:
var userName = "";
var user = "";
user = "userName";
stop ();
//this is my latest attempt to pass the name the user puts in to an empty text field called user in frame 3. Needless to say, its not working.
Anyone have any suggestions????
HELP - Passing Variables
Can anyone tell me how to pass a variable from the main limeline (level0) to a variable in a movie?
I've tried targetting the movie directly, but that isn't working.
Here's the code I have:
In my text file i have the following:
url=movies/slow.swf
On the main time line:
loadvariables("url.txt", 0)
In the movie:
x = level0.url
It keeps telling me that x is undefined.
Passing Variables?
I need to do something like this:
1st Screen of the Movie, asks user to input name in a form field.
2nd Screen says Welcome (*user) To My Website..etc.
how do I do this?
Passing Variables From Swf To Swf
I am designing a page with multiple .swf files on it. The main reason that I have decided to compose them outside of Flash (in html) is to still be able to use the right-click zoom feature of the flash player. I have a map in the upper left hand corner of my html page (it is a separate .swf file). I have a panel of buttons, also in a separate .swf file, on the right side of the screen. I also have a descriptive panel below the map. Here is the problem. I need to be able to have buttons in one of the .swf files communicate to another .swf, the map. I want the buttons to be able to send the map .swf to a certain frame. I also need to communicate from the map to the descriptive .swf. How can one .swf file tell another what to do when they are both contained separately in an html file?
Thanks for the help.
Passing Variables
Well, Well. Sitting here trying to create a Quiz game, but its not easy as a beginner.
Since I want to have quite alot of pictures in my game, I have tried to use LoadMovie. But how do you do to make the variables "move" to the next .swf file. I have tried the "send with GET" but can't get it working.
I made a variable score=5; for example, and in the next .swf movie I want to increase it by putting score=score+10;, How should I do?
By the way, do anyone know if you can export and import scenes?
Passing Variables HELP
I know this question probably has been posted a thousand times and all the ones I've read haven't helped me.
I have 2 swf files...
the first one has an input textbox with a variable "name"
I also have a button that links to another frame. On that frame has a loadMovieNum ("test.swf", 10);
Passing Variables From An ASP To A SWF
I have a ASP that checks for the Username and password. If the password is correct it writes a new page and calls a function from another ASP which opens a control pannel on the new page. I have a button in a flash menu that is called from the 1st asp. There is a button that I want to have open a new page with the control panel. I don't want to make the user login twice. How can I grab the output data (Name, Login or Unumber) and pass the variable thru a flash Button?
I know this sounds confusing, but there must be an easy way. If you need more info for you to help me, please feel free to e-mail me at quince@quincewyss.com
Thank you,
Quince Wyss
Passing Variables On?
I am putting together a CD-ROM that contains several 'Quick-tests'. These have been provided to me by thew client as seperate FLA files. What they want me do do for a section of the CD is have the user run through all the test and then in the final one generate results based on the variables right/wrong given by each test (which is a separate SWF)
Is there a way of gathering these variables and then displaying them at the end???
Or could I load the SWF's intom a host movie and somehow have the host movie store the variables for me?!
Or is the only way to combine the FLA's all into one????
Suggestions welcome?!
:: Passing Variables - Little Help ?
hey,
A piece I'm working on requires interactive user modes-
I think I know how to do this in theory but i need help putting it into practice.
I think it requires the following _________
3 main actions required to create an interactive/customizable user experience.
A: Nesting one movie within another using the Loadmovie/LoadMovie Num command.
B : Passing a variable from one movie to another and to have the second movie display the variable contents in a text box.
C : Passing a variable from one movie to another and have the second movie use the variable to construct a file path through which the second movie loads a third movie.
_____________________________________________
I could be way off on this as I'm new to actionscript.
Any help would be really appreciated.
:r::
Passing Variables Between MC's
Hello everyone. I cannot seem to pass a variable from one MC to another. I have a text field in one mc with a variable name of myname. Then I am trying to get a text field in another mc to get the data inputed into the text field located in the first MC. Ths code I am trying to use which is located on the first frame of the second MC is:
newtextfield=_root.mc1.myname;
what am I doing wrong?
Passing Variables
I am reading a file location from an xml string and placing it into a variable, which seems to work fine
m_DataFile = 'File:\' + x_Setup.attributes.DataFile;
I then try to use the variable in the xml.load() method and it does not work.
m_xmlDoc.Load(m_DataFile);
However, if I hardcode the m_DataFile with a string, the load works correctly.
m_DataFile = "File://C:\development\XMLSchedResults\Indian Wells\TournamentFlash.xml";
What am I doing with the xml that is making the Load method think that the variable is not a string.
Passing Variables
i have a timeline with a few dynamic text-fields with variables. i also have an extra movieclip placed in this timeline and want the text-field-variables be passed into that movieclip so they can be displayed in it. how can i do this? how can i "load or pass" these text-variables into a certain movieclip and other timelines?
thanx for any support from germany
martin
Passing Variables
anyone know about any good tutorials on how to pass variables from one movieclip to another?
thanks!
Passing Variables Between .swf's
I'm trying to make an .swf that pops up & displays the percentage loaded of another .swf outside of the movie.
So how do I pass variables between two .swf's that are running?
is it possible?
I'm sure this is probably the nth time someone has asked this.
Passing Variables
Anybody know how to pass variables from one flash movie to another! I have a serious of 21 seperate flash files with volume controls. When the user switches to the next flash file I want to pass a variable to the next movie to tell the volume to stay at the same level. How should I go about doing that?/
Thanks
Caleb
http://www.e-simpson.net
|