Robin,
Try some code from here. This does what you are talking about
:
http://ccl.flsh.usherbrooke.ca/eslcafe/million.htm
It's all in the setcookie() and getcookie() fucntions.
http://ccl.flsh.usherbrooke.ca/eslcafe/
Without seeing what you are doing, I know this works. Because it is all client-side you can even set your cookie at the top of the page and read it further down on the same page.
> I was wondering if someone could please help me with a very basic cookie. I
> have a feedback form with name and email address that are in 2 text boxes in
> a form, I want the cookie to just remember the details and load them the
> next time the person comes back to the page. I have been looking now for a
> while but the examples the I find are all very complex, with expiry dates
> etc.