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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Basic Error PLZ clarify me Talented guys

Status
Not open for further replies.

ramnagar

Programmer
Apr 25, 2002
22
0
0
US
Hai,
Just i have to send a variable to another page from one page. I should not use hidden variables or any form variables to pass these variables. I just have to use query string only. The following code is not working. PLZ let me know whether this is a valid one or not?. And also suggest one method to pass variables thru query string.

function upload()
{
var RID = document.Ram.HFName1.value;
var send;
alert("hai "+RID);
var s= new String(RID);
send = "uploadNext.asp?myParam="+s;
document.Upload.method="post";
document.Upload.action=send;
document.Upload.submit();

}


Waiting for reply,
Rama Krishna.B
 
what doesn't work in this code ? it seems Ok to me. to get back your variable in the "uploadNext.asp" page, just add this line at the top :
Code:
<%response.Write(Request.QeryString(&quot;myParam&quot;))%>
Water is not bad as long as it stays out human body ;-)
 
Sorry, made a typing error in previous post :
Code:
<%response.Write(Request.QueryString(&quot;myParam&quot;))%>
Water is not bad as long as it stays out human body ;-)
 
While running first page itself i am getting the err &quot;Object doesnot support this Property&quot; at document.Upload.submit();.
 
Thanks For u r reply. Error was at INPUT tag in html.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top