I am new to PHP. But this seems like a terrific language. I have been
using JavaScript up to now but it looks like I will be changing to PHP.
Seems to have more potential.
I am confused about using data in a JavaScript cookie in a PHP file.
The JavaScript Cookie
document.cookie = "order=" + escape("website = " + website + "*" + "sale = "
+ sale + "*" + "name = " + name + "*" + "addr1 = " + addr1 + "*" + "addr2 =
" + addr2 + "*" + "city = " + city + "*" + "countycode = " + countycode +
"*" +"state = " + state + "*" + "zip = " + zip + "*" + "mr = " + mr + "*" +
"fname = " + fname + "*" + "lname = " + lname + "*" + "dept = " + dept + "*"
+ "phone = " + phone + "*" + "ext = " + ext + "*" + "email = " + email + "*"
+ "#");
variable: website =
value: website
delimiter: *
End of cookie: #
Is there a command to convert a JavaScript cookie to a PHP cookie?
I have tried to read the cookie in PHP with no success.
$_COOKIE['order'];
$_COOKIE['order='];
How do I pick out the variables and values in PHP from the JavaScript
cookie?
Thanks for your help.
Ken