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!

Inserting Live data into hidden form field

Status
Not open for further replies.

spencern

Programmer
Joined
Dec 20, 2001
Messages
78
Location
US
Hi,
I want to be able to insert live data into hidden form field so that it can be inserted into a db. Each time the page is brought up, it will have different data and that get pulled from the db. Is there any way to do this from a record set? I'm guessing you have to enter some special code into the value box for the hidden field, but after that I'm lost.
Thanks,
Spencer
 
Hi Spencer,

Going off of memory here, but yeah it's very easy.

<input type=&quot;hidden&quot; name=&quot;xxxxxx&quot; value=&quot;<%=(rsUser.Fields.Item(&quot;xxxxxx&quot;).Value)%>&quot;

Just change the xxxxxx to whatever the field item may be.

&quot;If you feel a post has been helpful to you, click on the link at the bottom of their post to cast a vote for &quot;TipMaster Of The Week&quot;. You don't need to be the one who asked the question to vote&quot;

Stuart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top