Tricky question about usage of $_POST, Hyperlinks and MVC
Posted: Sat Dec 18, 2010 12:59 pm
Hey Neo and Everyone Else,
I've been learning PHP lately and have been making my own small MVC framework using switch cases. It works well, is simple and does the job.
Now, first question, I have a view file, a product page basically... for some products, I have a some questions and some choices for the buyer to choose from... Now I'd like that when add to cart button is pushed, it should save those added product custom selected options to the session as well. Is that possible?
I tried giving an hyperlink a name and such variations to make it work but it didn't. WIth that, please let me mention here that I'd like to save its options in to session via the add to cart controller logic.... there I mean.
Secondly...... is there any good way of implementing this logic in PHP? As i shared above. I've been stuck at this since very long and its really disturbing me.... I cannot get this specific part of coding thing....
Lots more to do, please guide. Thanks.
I've been learning PHP lately and have been making my own small MVC framework using switch cases. It works well, is simple and does the job.
Now, first question, I have a view file, a product page basically... for some products, I have a some questions and some choices for the buyer to choose from... Now I'd like that when add to cart button is pushed, it should save those added product custom selected options to the session as well. Is that possible?
I tried giving an hyperlink a name and such variations to make it work but it didn't. WIth that, please let me mention here that I'd like to save its options in to session via the add to cart controller logic.... there I mean.
Secondly...... is there any good way of implementing this logic in PHP? As i shared above. I've been stuck at this since very long and its really disturbing me.... I cannot get this specific part of coding thing....
Lots more to do, please guide. Thanks.