Hi everyone,
Im very new to php,
a simple question, how can I get back to the page Im calling from in this incident:
...
... \"><a href=\"cart1.php?action=add_item&id=$itemId&qty=1\">Add Item</a></font></td>\n";
I just want to stay in the same page when I call the function in cart1.php-add_item - so I do not need to go back again? (so it seems that the user stays in the same page)
reloading seems unlogical? what is usually the solution for this?
redirecting to caller page
Moderator: General Moderators
i think what you are looking for is
Code: Select all
header(Location : "cart1.php?action=add_item&id=$itemId&qty=1");-
kettle_drum
- DevNet Resident
- Posts: 1150
- Joined: Sun Jul 20, 2003 9:25 pm
- Location: West Yorkshire, England