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

Refer a vaule that was enter in by user from one HTML page to another

Status
Not open for further replies.

gio2888

Technical User
Joined
Oct 26, 2000
Messages
64
Location
US
What I need is that, I have user enter in a value which is stored in an array on an HTML page, but I want to use that value as an default value in an input box, on a different HTML page.
<input type = &quot;text&quot; size = 6 maxlength = 6 name =&quot;DevEnt15&quot; value = &quot;what should I out in here?&quot;>
Thanks!!!
 
I am not to sure as i am new to HTML, however if you were to

defaultvalue = querystring(&quot;yourestringhere&quot;)
<input type = &quot;text&quot; size = 6 maxlength = 6 name =&quot;DevEnt15&quot; value = <%=defaultvalue%> >


wouldn't that work. I am using V.InterDev and i know that works for me.

Hope this helps, let me know.

Deltaflyer.

DeltaFlyer - The Only Programmer To Crash Land In Style.
 
thanx, I am not sure if this will work, I will try it. I actually want to put a value from another html page.
 
Use either request.querystring(&quot;thefieldpassedasaparm&quot;)

or request.form(&quot;the html field name&quot;)

or request(&quot;the field name&quot;) (does both above)

or use session variables
 
make a session variable &quot;sessionvariable&quot;, then make it equal to the array cell like sessionvariable=array(x,y)

Then you can retrieve it anywhere in the session on any page, it being a bit like a VB Global that lasts throughout a session.

on first page say:
Session (&quot;this_org&quot;)= userSet.fields.item(0)

and on next page set yr local variable = session variable,
or just use the session variable
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top