Hey guys
I am getting an error in my php coding, Undefined variable .
When I click on a category on the index.php, I get the error
Notice: Undefined variable: HTTP_GET_VARS in C:\wamp\www\chapter25\show_cat.php on line 6
This is the code for show_cat.php
<?php
include ('book_sc_fns.php');
// The shopping cart needs sessions, so start one
session_start();
$catid = $HTTP_GET_VARS['catid'];
$name = get_category_name($catid);
do_html_header($name);
// get the book info out from db
$book_array = get_books($catid);
display_books($book_array);
// if logged in as admin, show add, delete book links
if(isset($HTTP_SESSION_VARS['admin_user']))
{
display_button('index.php', 'continue', 'Continue Shopping');
display_button('admin.php', 'admin-menu', 'Admin Menu');
display_button("edit_category_form.php?catid=$catid",
'edit-category', 'Edit Category');
}
else
display_button('index.php', 'continue-shopping', 'Continue Shopping');
do_html_footer();
?>
Any ideas why im getting this error?
Thanks