Welcome Guest, Not a member yet? Register   Sign In
Redirection and Display Pop up message
#1

[eluser]npCoda[/eluser]
My scenario is:
When user clicks on Add to cart icon, a product has to store in database by displaying a message, 'Product Added to Cart.'

Here I have used json url :

Code:
$add_to_cat = "http://www.sitename.com/cgi-bin/phts.sh/js/jsread.p?call=basket&user;=&lang=en&id;=".$user_logged_id."&type=in&ph;=".$product_id;

which is used to store the record in Progress Database Server.

My code is :
Code:
if(redirect($add_to_cat, 'location')){
     // here I want pop up message  
    }

When redirection occurs, json file is displayed which I dont want. I just want to display a message with out opening json record file.




Theme © iAndrew 2016 - Forum software by © MyBB