View Full Version : Use a cookie to parse field to a page for redirection

10-13-2006, 05:08 AM
Is it possible to use a cookie to build a url?
I have members place an 8 digit field in a form and then use that string to build a URL and also reuse the cookie value on other pages.
Example user enters 10010002 in the form input field.
Can I then save that to a cookie called path and redirect the user to www.mydomain/subdirectory/{path}/index.html
I would also like to be able to use that cookie as a varible in other pages such as <a href=www.mydomain/subdirectory/{path}/products.html>PRODUCTS</A> etc.
I have no experience with Javascript so any help would be appreciated