Hi. I have a question about PHP programming philosophy:
Imagine a web of a shop with a table displaying the name of some
products. There is a link "Buy" next to each product. I want that link
to execute some PHP code, but I don't want the navigator to show
another web.
So imagine the file is product_list.ph p and the link is: <a
href="add_produ ct.php?code=... > Buy </a>. I want the code in
add_product.php to be executed but I want the navigator to display the
same page it is displaying at the moment (product_list.p hp or
whatever).
How can I do that?
Thanks!
Imagine a web of a shop with a table displaying the name of some
products. There is a link "Buy" next to each product. I want that link
to execute some PHP code, but I don't want the navigator to show
another web.
So imagine the file is product_list.ph p and the link is: <a
href="add_produ ct.php?code=... > Buy </a>. I want the code in
add_product.php to be executed but I want the navigator to display the
same page it is displaying at the moment (product_list.p hp or
whatever).
How can I do that?
Thanks!
Comment