magicka
10-20-2002, 03:40 AM
I have been trying to develop a unique sort of shopping cart. The base code on the HTML pages is in JavaScript. The whole thing was originally written to later post to formmail.cgi. That's all fine and well except for a few things.
1. The entire output is going to be emailed the same recipient.
2. Parts of the output is going to be efaxed to different establishments depending on the contents being efaxed.
Because of these particular customizations and due to the fact that I am more familiar with PHP than I am with Perl, I have decided to write a PHP script to take all the information passed to it from the order page, compose the individual sets of information and then send them to the appropriate recipients.
Since the JavaScript uses session cookies to store the orders, I need to know if PHP can extract information from a session cookie. If not, I will need to scrap the shopping cart and start afresh.
If it can extract information from a session cookie, I need to know how I can take the row items and assign them to variables. I used to have a book on PHP, however, I moved two months ago and I lost the book. (It's buried in a box somewhere in the garage.) So, I can't look up the answer for myself or see any sample code.
I would appreciate any thoughts or suggestions. Thanks to you all in advance.
1. The entire output is going to be emailed the same recipient.
2. Parts of the output is going to be efaxed to different establishments depending on the contents being efaxed.
Because of these particular customizations and due to the fact that I am more familiar with PHP than I am with Perl, I have decided to write a PHP script to take all the information passed to it from the order page, compose the individual sets of information and then send them to the appropriate recipients.
Since the JavaScript uses session cookies to store the orders, I need to know if PHP can extract information from a session cookie. If not, I will need to scrap the shopping cart and start afresh.
If it can extract information from a session cookie, I need to know how I can take the row items and assign them to variables. I used to have a book on PHP, however, I moved two months ago and I lost the book. (It's buried in a box somewhere in the garage.) So, I can't look up the answer for myself or see any sample code.
I would appreciate any thoughts or suggestions. Thanks to you all in advance.