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

Javascript inserted values not persisted 1

Status
Not open for further replies.

modika11

Programmer
Jan 31, 2008
20
Hi Guys,

I think i know why its happening i just a little bit stuffed on how to get around it. I have a page that uses some javascript to fill a textbox(it is a little bit more complicated, but that all works)

The problem is when i submit the page the values within the textbox are not persisted, and i am not sure how i can get them out?

any ideas?

Thanks,

Rob
 
You can write them to a hidden input as well so that they get posted to the page. You can then use the value from the hidden input in your server-side code.

[!]
-------------------------------------------------------

Mark,

Join me at the new IT Community of the 21st Century: [!][URL unfurl="true"]http://lessthandot.com[/!][/url]

[/!]
 
Thanks ca8msm,

That sorted it out like a dream :)

Thanks again!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top