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

Passing hidden text box values between form pageshi,

Status
Not open for further replies.

rams0619

Programmer
Aug 1, 2005
5
US
hi,

I have a form page and a form calling page, i want to pass the cookie value from the form calling page to the form page. The form calling page has a hidden text box where the cookie value is set,
Code:
<form id="formName" method="POST" action="[URL unfurl="true"]http://www.XXXXX.com"[/URL] >
  <input type="hidden" name="pageref" value=""/>
  <input type="hidden" name="domain" value=""/>
  <input type="hidden" name="sbu" value="XXXX">
  <input type="hidden" name="cookie" value="CookieName">
</form>

how can i pass this cookie value from this hidden text box into the form page?


thanks,
rams
 
cookie is a reserver word.

Anyways, when the form is submited, you can get the value of cookie by calling request.form("cookie")
 
Thanks Kendel,

Is there any way to get the value before the form is submitted?

 
You need to fire an event to pass a value of a field from 1 form to another like this:

document.form1.cookie.value = document.form2.cookie.value

Show us your 2 forms and let us know when you want to pass the value.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top