• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 146
  • Last Modified:

POST method question


i'm trying to pass a variable using POST method:

<form id="frm1" action="lobby.aspx" method="post">
<input type="hidden" name="userid" id="userid">

<script language="javascript">

function goLobby (id) {
      document.all ["userid"].value = id;
      all ["frm1"].submit();

the goLobby function is invoked from flash movie clip (using getUrl), which pass an id as parameter.
the laert popup is being displayed ,however, nothing happens afterwards.

any ideas?
Meir Rivkin
Meir Rivkin
1 Solution
Change the script to this ...

function goLobby (id) {
      document.forms["frm1"].elements["userid"].value = id;
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now