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!

Javascript for Retrieving Form Values

Status
Not open for further replies.

jeremyhache

Programmer
Sep 30, 2002
19
0
0
US
I have a page set up which takes in values from another page and needs to build a formatted page based on these passed values. HOwever I've run into many snags. I need the page I'm creating to be formatted a certain way, since it needs to be printed out, I won't go into the boring details... Anyways, I have it set up to retrieve these values through VBScript using Request.Form(Variable). But VBScript isn't giving me the options I need. What is the Javascript equivalent for retrieving these variables which are passed from a form on the previous page? EIther that or is there a way to use VBscript variables in Javascript I have on the same page?
 
<%
passedVal = request(&quot;passedVal&quot;)
%>

<script>
passedVal = &quot;<%=passedVal%>&quot;
//or simply
passedVal = &quot;<%=request(&quot;passedVal&quot;)%>&quot;
</script> Get the Best Answers! faq333-2924
&quot;A witty saying proves nothing.&quot; - Voltaire
mikewolf@tst-us.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top