Hi chaps,
I'm relatively new to the language, but I want to create a simple order
form using PHP and cookies. Please let me know if there's a better way
in this situation, database isn't availible.
What I'm trying to get is this:
1) Variable(A) passed from HTML page to script.
2) Script checks for cookie.
3) If no cookie, script creates one, Variable(A) the value.
4) If cookie, script adds Variable(A) value.
Then the script should produce an "order form" type page, listing the
variables within the cookie.
I'm new to PHP and I have no experience of cookies. I may be going about
this the wrong way, so please let me know!
Many thanks for any help,
- Daniel
I'm relatively new to the language, but I want to create a simple order
form using PHP and cookies. Please let me know if there's a better way
in this situation, database isn't availible.
What I'm trying to get is this:
1) Variable(A) passed from HTML page to script.
2) Script checks for cookie.
3) If no cookie, script creates one, Variable(A) the value.
4) If cookie, script adds Variable(A) value.
Then the script should produce an "order form" type page, listing the
variables within the cookie.
I'm new to PHP and I have no experience of cookies. I may be going about
this the wrong way, so please let me know!
Many thanks for any help,
- Daniel
Comment