# Passing HTML form and hidden variables from html to flash

**URL:** <https://forum.kirupa.com/t/passing-html-form-and-hidden-variables-from-html-to-flash/229270>\
**Category:** Uncategorized\
**Created:** [June 15, 2007, 11:33am UTC](https://forum.kirupa.com/t/passing-html-form-and-hidden-variables-from-html-to-flash/229270 "2007-06-15T11:33:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pete\_Yorn](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@Pete\_Yorn](https://forum.kirupa.com/u/Pete_Yorn)\
**Post date:** [June 15, 2007, 11:33am UTC](https://forum.kirupa.com/t/passing-html-form-and-hidden-variables-from-html-to-flash/229270/1 "2007-06-15T11:33:56Z")

</div>

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](http://Validation) link.asp”\>  
\<input type =“hidden” name=“tamx”\>  
\<input type =“hidden” name=“tamy”\>  
\<input type =“hidden” name=“url\_return” value =“[http://Link.asp](http://Link.asp)”\>  
\<input type =“hidden” name=“url\_ot” value = “[http://Validation](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
