The Student Room Group

Php-use isset function when a user wants to perform action?

if (isset($_SESSION['customer_email'])) { echo "<b>Welcome:</b> ".$_SESSION['customer_email']." <b style='color:yellow;'>Your</b>";

So in the above function if a customer wants to go to their email you code in the above code?

Do you use the isset function when a user wants to perform an action such as (isset(GET[cart]))?

When the user wants/click to get cart? The above code is written in this way so when user clicks on card. The page directs it to cart.

Many thanks
(edited 5 years ago)
Reply 1
Please anyone help me out? I'll appreciate it.

Quick Reply

Latest

Trending

Trending