can someone tell me how to add this php code:
<?php include('shopping_cart_temp.php'); ?>
Into this javascript line:
$('.cart_status').append('<p class="json-productname">' + retObj.product_name );
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
More specifically,
In your shopping_car_temp.php file, echo only retObj.product_name. If you need to echo multiple things, you may want to format them as JSON objects. You can read about those at: http://api.jquery.com/jQuery.get/