Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sending a variable to server side

Status
Not open for further replies.

biry

Technical User
Joined
Nov 5, 2004
Messages
127
Location
CA
i'm trying this simple procedure of sending a input text box (txtName) input as a variable to an asp page, as you can probably guess its not working, this is what i have as an actionScript:

on (press) {
loadVariables(" 0, "POST");
}

i'm publishing in flash 6

asp:

bb = Request.Form("txtName") I've even tried just:
request("txtName")


thanks
 
That should be working. Is the textbox on the same timeline as the button? Are you using the Var or Instance name setting for the textbox?

Try this:

Code:
on(release){
   myLv = new LoadVars();
   myLv.textName = _root.textName.text; //assuming instance name "textName" for textbox on main timeline of root movie.
   myLv.send("[URL unfurl="true"]http://www.company.com/page.asp","POST");[/URL]
}

The LoadVars object is far more versatile than loadVariables or getURL (which can also be used).

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top