# Put 2 strings into location after asp loaded

**URL:** <https://forum.kirupa.com/t/put-2-strings-into-location-after-asp-loaded/22046>\
**Category:** Uncategorized\
**Created:** [May 29, 2003, 2:38pm UTC](https://forum.kirupa.com/t/put-2-strings-into-location-after-asp-loaded/22046 "2003-05-29T14:38:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GregD](https://avatars.discourse-cdn.com/v4/letter/g/a183cd/32.png) [@GregD](https://forum.kirupa.com/u/GregD)\
**Post date:** [May 29, 2003, 2:38pm UTC](https://forum.kirupa.com/t/put-2-strings-into-location-after-asp-loaded/22046/1 "2003-05-29T14:38:47Z")

</div>

Hey guys,

I have managed to get 2 strings to pass from:

ASP -\> FLASH -\> 2nd ASP file

But in second file they are no longer in the url like so:

[www.blah.com/hello.asp?name=blah&id=blah](http://www.blah.com/hello.asp?name=blah&id=blah)

So if i refresh the page the 2 strings disapear… is it possible  
once i have the strings in the ASP page to place them automaticly in  
the url like this?

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 29, 2003, 4:11pm UTC](https://forum.kirupa.com/t/put-2-strings-into-location-after-asp-loaded/22046/2 "2003-05-29T16:11:18Z")

</div>

I’m a little confuse on your question but I’ll try to help you as much as I can.

I assume you are trying to send variables to a ASP page via flash.

That said,

As an example I do this to send a variable to a ASP page from flash.

var sDate= new Date();  
//Add cache remover…  
sUrl= “[http://myserver/scripts/testpage.asp?x=](http://myserver/scripts/testpage.asp?x=)” + escape(sDate);  
loadVariablesNum (sUrl, “0”, “POST”);

If I want to retrieve the date value from the ASP page  
I would simple to this: dim mydatevalue=request.QueryString(“x”)

Using your url as an example:  
var blah=somevalue;  
sUrl=“[www.blah.com/hello.asp?name=](http://www.blah.com/hello.asp?name=)” + blah + “&id=” + blah  
loadVariablesNum (sUrl, “0”, “POST”);

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 30, 2003, 8:26am UTC](https://forum.kirupa.com/t/put-2-strings-into-location-after-asp-loaded/22046/3 "2003-05-30T08:26:39Z")

</div>

I have 2 values input into the flash file into input text boxes.

Is it possible to set those 2 input boxes to variables and then use the url method you described?

var name=input1;  
var id=input2;  
sUrl=“[www.blah.com/hello.asp?name=](http://www.blah.com/hello.asp?name=)” + name + “&id=” + id  
loadVariablesNum (sUrl, “0”, “POST”);

Something like this? Or is it wrong?

The 2 input boxes have vars attached to them so the data is passed from ASP–\>flash

But i want to get those vars and send them to another page retaining the strings in the URL.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 31, 2003, 5:15am UTC](https://forum.kirupa.com/t/put-2-strings-into-location-after-asp-loaded/22046/4 "2003-05-31T05:15:05Z")

</div>

Assuming your already succesfull in passing the two input variables into flash. but make sure. Do a trace on the input values in flash to make sure your bring in the input values, thats the first thing if so do the following…

trace(input1);  
trace(input2);  
var name=input1;  
var id=input2;  
sUrl=“[www.blah.com/hello.asp?name=](http://www.blah.com/hello.asp?name=)” + name + “&id=” + id  
loadVariablesNum (sUrl, “0”, “POST”);

To grab the variables in the hello.asp page just use  
the dim x= request.querystring(“name”)  
dim y= request.querystring(“id”)

declarations. That should do it.
