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




Getting Hidden Form Value.



Hey,

I was wondering if there was a way with actionscript to get the value of a hidden form field in a html page. For example:
<input type="hidden" name="hiddenfield1" value="1">
<input type="hidden" name="hiddenfield2" value="2">
How could I get "hiddenfield1" with the value of "1" and "hiddenfield2" with the value of "2" into flash?

OR

If this isn't possible, how could I get the entire sourcecode of a given URL so that I could send it to php.

Thanks!



ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 04-16-2006, 11:07 PM


View Complete Forum Thread with Replies

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

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

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

Hidden Form Fields On Buttons ?
Hi,
sorry if this has already been asked , but i've been wading through forums all day and don't seem to be getting anywhere.

I am using MX

I am redesigning a site i made in html into flash. The site has a shop section and for this I have used romancart http://www.romancart.com.

I basically want to convert this html code which works fine in the html page and use it on a flash button.

form action=http://www.romancart.com/cart.asp
input type=hidden name=itemname value='Jakeone - "Rascal EP"'
input type=hidden name=price value=5.00
input type=hidden name=storeid value=00000
input type=hidden name=quantity value=1
input type=hidden name=shipping1 value=1.80
input type=hidden name=shipping2 value=2.50
input type=hidden name=shipping3 value=3.75

input name="submit" type=submit value='Add'



the storeid is the reference number for the shop as everything is handled by romancarts software on their servers, the other values are obviously price ect.

I have tried various things in flash
this is what i've got so far

on the button which is in the root of the movie i have put this actionscript.

on (release) {
getURL("http://www.romancart.com/cart.asp", _blank, "POST");
set(storeid, "00000");
set(itemname, "Jakeone-Rascal EP");
set(price, "5.00");
set(quantity, "1");
set(Shipping1, "1.80");
set(Shipping2, "2.50");
set(Shipping3, "3.75");
}

I have also tried placing the code inside the button and have tried declaring the variables first i.e

var storeid; ect

I have been looking into components but have never done anything like this before and keep running into walls.

any help would be much appreciated
Thanks
tec1

p.s. i have asked romancart support an searched through all their help files but they haven't come up with a solution.

Hidden Html Form Data To Flash
Hi guys,

Could somebody tell me if there is any way flash can directly access hidden form field data from the html page it is embedded within.

I need to access these hidden html form field values from within flash once the flash loads.

- Rick

[CS3] Problem Sending Hidden Form Fields -- Help
Hey all!

I'm having trouble sending a hidden form field for an authorize.net buy button, and wondered if anyone has run into this. All code is real except the LinkId value.

Here's what authorize.net sent me:


Code:
<form name="PrePage" method = "post" action = "https://Simplecheckout.authorize.net/payment/CatalogPayment.aspx">
<input type = "hidden" name = "LinkId" value ="00000000-0000-0000-0000-000000000000" />
<input type = "image" src ="//content.authorize.net/images/buy-now-gold.gif" />
</form>


In HTML, this form works fine. And it sends me to this URL:

https://simplecheckout.authorize.net/payment/CatalogPayment.aspx

With the proper information.

In Flash, however, I can't seem to get the hidden value to send in a way that authorize.net can understand. I create the following button:


Code:
on (release) {
LinkId = "00000000-0000-0000-0000-000000000000";
getURL ("https://Simplecheckout.authorize.net/payment/CatalogPayment.aspx", "", "POST");
}


And it sends me to this URL:

https://simplecheckout.authorize.net/payment/CatalogPayment.aspx
?LinkId=00000000%2D0000%2D0000%2D0000%2D0000000000 00

But this can't be processed. I'm not sure if it's because it's not really sending it "hidden" (since it's viewable in the browser bar), or because the hyphens are becoming %2Ds, or what.

I've read every flashkit forum post I could find on hidden form fields, and nothing I've tried seems to work. I even tried a few times using loadvars, but it still produced the %2D-filled nonworking URL.

Help is greatly appreciated!

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?

How Do I Submit Hidden Form Fields Via Button Click
Ok, Here is what I have:

I created a strip of buttons. 4 of them go to normal urls, the 5th is a img of a shopping cart:

code:
<FORM action=https://www.yowcow.com/cart/ method=post target=yowcow>

<INPUT type=hidden value=emailgoeshere name=business>
<INPUT type=hidden value="itemgoeshere " name=item_name>
<INPUT type=hidden value=275 name=amount>

</FORM>


Basically what this does is take hidden input information and sends it to a an external url that then shows the page. I want to have the cart button do the form action when it is clicked.

Any help would be greatly appreciated.

John.

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 ?

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

Hidden URL
Is there a way to hide the URL Address as someone navigates through your website? The site is FlashMX except for the published HTML for each area/page of the site. As the user navigates from one page/area to the next, I am calling getURL (Published HTML). Of course the paths are noted in the Address bar. This shows the different directories that are navigated.

Thank you

Keep It Hidden?
I would like to load an swf that has audio in it and have it invisible. I am using the following statement to load it:
loadMovieNum("audio2.swf", 15);
I know if I set its alpha to 0 it will not be visible, but how do I do this?

G

Hidden Timer
i am having some students take a multiple choice test in flash tomorrow. it has 50 questions. i am having the results sent to my email. included with these results, i would like to know a few things about the amount of time it took for each student to complete the test.

i also would like a separate variable set at the end of 2 sections (end of directions and end of question 25 - 1/2 point). this way, i'll know how long the spent reading directions and how long the spent on the 2 halves of the whole test. i have played with the getTimer command, but haven't had the luck i was hoping for. any suggestions?

Hidden Buttons
Hi there,
tricky little problem,
i have 10 different hidden buttons on stage which carry different
tweens in them. when one takes mouse over them evey button changes and amination of
each buttons and then stops and is over the hit button now we can see the
button but now its not a button any more.
now i need your help from here on. In the left lower corner there is
a dynamic text box(its name is text) which will show that on how many hit buttons mouse have been rolled over.
what will be the code.....?
and when this dynamic text box shows 10 then movie will go to next frame and start playing.

i have tried my best to explain u what problem i am facing.
HELP.....
plzzzzz reply. ALL COMMENTS WILL BE APPRECIATED.

Bye

Hidden Pics
The problem I'm running into with ANY movie I attempt to create with Swish 2.0 is that there is always a "phantom" pic once I enter in more than 10-12 pics. Eactly what happens is that as I enter a new pic, I can see that there is that phantom image in the way, and it blocks off part of the screen (usually the middle) and I have to move new pics to one side. Now I've gone through the files to make sure all previous pics are faded out, but the problem is still there. What am I doing wrong?

EB

Hidden Buttons
Help....
Currently have a MC with all my navigation buttons. This MC is a pull down tap. (you click the menu comes out). I got this far with no problems.

Problem..
Depending on what section I jump to on my timeline. I like for the viewer to see a red bar behind the button that corresponds to that section of the timeline. Again this buttons are inside my MC menu navigation.

Thank you in advanced.

Hidden Games In MX
Dont shout if this is old news, but I jut found them!!!

If you go HElp, About Flash then click in middle of the "X" of "MX" lots of times there are a few hidden games that load up in the window!!!

Thanks macromedia!!!

MX

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 Files...
hidden files...
hi guys im working on a project on a cd-rom i did the movies with swish and i put it after in director 8.5, now i wanna put it on the cd-rom but i want to hide the files on the cd-rom so no body can see them or use them or copy them.

do i have to do something b4 i burn them or a s-programe!! any idea?

thx moe.

Hidden Prototypes
Anyone know where I can find a list of he hidden prototypes in flash mx? I though flash guru had posted them a couple months ago, but I can't find them. I remember there was something for a microphone and webcam, but I don't remember any of the others.
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?

Hidden Areas
i want to make text scroll across the screen but only visible within about 60 pixels. now what i was goin to do was make a movie clip that way i can control it with buttons. the text was only goin to go from left to right but i want it to only show in a certain area. i tried looking through the tutorials and examples but i couldnt find anything i needed.

thanks

Hidden Syntax
Is there a website that displays and explains all of the "hidden" syntax such as "newline" (The syntax that is not in the index or the dictionary)??

Hidden Variables
how do you pass a hidden variable?

Hidden Menus
can anyone tell me how to make the menus like the ones on this site under the visitors guide link???

http://www.englandagency.com/england.html

thanks

Hidden Buttons
Is there any way to make it so when you mouse over a button the cursor doesnt turn into the hand so you dont know where the button is?

Hidden Frames
I'm trying to incorporate the code from this tutorial:

http://www.robertpenner.com/experime...ackbutton.html

The tutorial is made so that you can use the browser back button, and still be in the flash movie. In the tutorial you have to generate a history of web pages. The tutorial uses a hidden frame to store HTML pages that generate a browser history.

What i dont understand is how to use a hidden frame. Can anyone explain that to me? Thanks!

Hidden Menu
Hello, Im trying to create a hidden menu (kind of like
a regular pop up menu, but the "Menu" part would move as well).

Does anyone know of a good toutorial that I can check out??

Thanks so much, M

Loader Hidden..?
Hi,
I have this swf which has a loadin indicator called "Brewing - Please wait".
You can see it when pressed CTRL+shift+Enter on debug mode.

but there's no code to c how it has been done

i've attached the file test.fla
Pls Someone help me.

Thanks

[F8] Combobox Hidden
I'm using attachMovie to show a popup window in my flash file.

This popup window has a combobox on it and although it's showing I think the actual box is hidden by the box because when I click to open it the options are behind the box not ontop of it.

This is something to do with the depth of it - but I'm not sure what the right code would be or where it would go. How can I set the combobox to appear ontop of every thing else and where should I assign that?

thanks,

[F8] Loading Into A Hidden MC
I'm loading in several images from XML, I have a loader movie clip that displays until all the images have loaded and I'm loading them to empty movie clips that have _visibility set to false. The idea is when they are all loaded I set the visibility to true, only problem is that as soon as it loads the image I can see the empty clip. I think that it resets the _visibility property of the movie clip when loadMovie finishes. What can I do to hide the empty MC that I'm loading the external image into?

[F8] Hidden Layer
When I click on the hide layer it hides it in the main screen but when i go to test the movie it is still there. Why is it like this how can i hide it entirely?

[MX] Why Is My Navigation Hidden?
I am having a weird problem with the navigation for a site i'm designing in Flash MX.

For some reason the navigation which is within a movie clip of its own on the main timeline becomes is hidden behind the movie clips I am calling in on release.

Can anyone help would be much appreciated!?

thanks!

Loader Hidden..?
Hi,
I have this swf which has a loadin indicator called "Brewing - Please wait".
You can see it when pressed CTRL+shift+Enter on debug mode.

but there's no code to c how it has been done

i've attached the file test.fla
Pls Someone help me.

Thanks

Hidden Script
yep, sounds wierd, but there's a script in my scene which i can't find. It's a stop(); script and now i can't watch all of my cartoon!!! when I do ctrl + alt + enter, it stops at frame 935, and i searched all layers on that frame. I even went to F9 and looks for frame where there are scripts, but found nothing, can anyone help???

XML Hidden Under Masks?
Hi, just wondering, i've come across this a number of times, but when i apply masks to certain movieclips it is fine, but when the movieclip has a textfield which has data stored in an XML file, the textfield doesn't show up, it is reading the XML file but the masks stops the textfield from showing up, while other graphics within the movieclip are fine?

AS3 Hidden Button
Hi, i need help o as3 hidden buttons.
for example in as2 if i have a movie symbol and Movie Animation "MyMovie" and Runs on _root of file. i have hidden button on it saying following command line.

on (rollOver) {
MyMovie.gotoAndPlay(2);
}
on (rollOut) {
MyMovie.gotoAndPlay(7);
}
on (release) {
_root.MyMovie.gotoAndPlay(7);
}

How can i do this in as3. Please explain in full actionScript.
Thanks in advance for your time.

Hidden Frames ?
I'm planning to start a new project combining flash and html. At the moment I'm trying to figure how to do hidden frames where I will have navigation bar at the top in Flash, then when clicked on any link a hidden frame loads the new content without reloading the whole page.

I know how to create regular frames, but the one I wanna build can be placed anywhere with its own scrollbar.

here is a example of a site that uses this feature:

clicky

If anyone knows of a site that has a good tutorial on this please let me know.

Thanks

Hidden Picture
i want to put this in a frame so it is not in every single square.I'm not so good at converting.
on(rollOver){
this.square1.gotoAndPlay(2);
}

Hidden Timeline
I recently downloaded a template for Flash MX that has 9 layers, but the timeline only shows one active frame for each layer, which is frame 1. However, I am able to detect within the action scripts that each layer has more frames. I cannot find a way to access these frames. Any assistance is appreciated. Note: the creators are not willing to offer assistance.

Hidden Code
My question is silly. I am not a flash developer I am just here for fun. I visited the site www.levitated.net . I found it very interesting , there are so many open source .fla files to download but when I open them with flash it seems to me there is too little code against the beautiful animations appearing.
My question is : is the code hidden? or generically is there a way to hide code in flash? is it protected?

Thanks in advance.
regards.

? About Hidden Layers While I'm At It
I was searching for a way to make LAYERS hidden/visible through a/s.

* Example : on click of a btn two layers become hidden while one stays visible. Then upon click of another button the current LAYER becomes hidden and another layer becomes visible.....


i was thinking along the lines of...

PHP Code:



on (press) {
     this.hidden(layer1);
     this.visible(layer2);
     this.hidden(layer3);





Which obvoiusly is wrong but I dont know where to start with this. Thanks

~ Seretha

Hidden Menu Help
Hey everyone,
I'd like to be able to do this menu here:http://www.marciano.com/Tops_f.aspx#

Not the one on the left but the hidden menu on the right. Where you click the arrow and the menu slides out and then clicking it again hides. Any suggestions? I'm new to Flash so please bare with me.

Thanks so much!!

Hidden Frames
I'm trying to incorporate the code from this tutorial:

http://www.robertpenner.com/experim...backbutton.html

The tutorial is made so that you can use the browser back button, and still be in the flash movie. In the tutorial you have to generate a history of web pages. The tutorial uses a hidden frame to store HTML pages that generate a browser history.

What i dont understand is how to use a hidden frame. Can anyone explain that to me? Thanks!

Hidden Menu
Hi, I was wondering if someone could help me out with a menu effect?
I'm trying to create a menu like the one used on this website http://www.adenek.com/ although I'm unsure how its done. does anyone know?

Help- Hidden Code?
I was reworking an mp3 player, and realized, all the code is hidden or something. I am pulling my hair out because I was supposed to be done yesterday, and I can't figure out why certain things are happening.

dl this and see for yourself.

If anyone can point me in the right direction, please do!

http://www.fathomwebdesign.com/demos...playercode.fla

AS3 Hidden Button HELP
Hi, i need help o as3 hidden buttons.
for example in as2 if i have a movie symbol and Movie Animation "MyMovie" and Runs on _root of file. i have hidden button on it saying following command line.

on (rollOver) {
MyMovie.gotoAndPlay(2);
}
on (rollOut) {
MyMovie.gotoAndPlay(7);
}
on (release) {
_root.MyMovie.gotoAndPlay(7);
}

How can i do this in as3. Please explain in full actionScript.
Thanks in advance for your time.

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