Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   JavaScript and Client-Side Browser Scripting (http://www.programmingforums.org/forum23.html)
-   -   Cookie (http://www.programmingforums.org/showthread.php?t=1326)

jackson Nov 28th, 2004 11:25 PM

hi experts,

I need some assistance in reding values from cookie from one file to another file. I got 2 files a1.html and a2.html using cookies. If i enter a name in (textfield) a1.html then after clicking a button control goes to a2.html. In a2.html i want to display the name entered in a1.html. How to get(read) the cookie value from a2.html.

Any sample coding is available. Suggestions are highly appreciated.

Thanx
Jack :(

java_roshan Nov 1st, 2005 1:40 PM

This could come in ASP/JSP if u have knowledge about them.

In ASP , there is a Response Object, which allows you to create cookies, using the Response.Cookies() Collection.

For more on that check http://www.w3schools.com/asp/asp_cookies.asp
Hope this helped!

DaWei Nov 1st, 2005 2:30 PM

Quote:

If i enter a name in (textfield) a1.html then after clicking a button control goes to a2.html. In a2.html i want to display the name entered in a1.html.
If that's all you want to do, you don't need cookies (which might be disabled, anyway).

tempest Nov 1st, 2005 2:34 PM

http://webxpertz.net/forums/faq.php?..._wxfaq_1_1_2_4


All times are GMT -5. The time now is 2:29 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC