Reply to Set session variable if link is clicked, do not want to use GET

Your name:

Reply:


Posted by Kent on 04/05/05 03:21

Hi!

I am writing a simple shopping cart system which uses sessions and PHP.

I would like a normal link that says "Add to cart" which the user can
click and the item is added to the cart.

However, i do not want to use GET for this as it could introduce
unwanted features if the user bookmarks the page just after clicking
"Add to cart". So i don't want an URL like:
http://thisistheurl.com?buy=10 and therefore prefer if this could be
done using POST.

It would have been easy if i would have used a normal FORM and would
have had a button called "Add to cart". But i would like it to be in
url-style or using some <img ..> which i understand that the BUTTON item
does not support (or am i wrong?).

Any advice would be greatly appreciated.

Best regards, Kent

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация