View Single Post
  #6  
Old 05-02-2018, 09:50 AM
 
simetria simetria is offline
 

Advanced Member
  
Join Date: Jul 2013
Posts: 77
 

Default Re: Proper method for creating a new table in X-Cart 4.6.1

Carrie, I tried using something like this, but it keeps redirecting me to a 403 page:

require './top.inc.php';
require './init.php';

if ($REQUEST_METHOD == 'POST') {
$fname = strip_tags(trim($_POST['fname']));
$lname =strip_tags(trim($_POST['lname']));

$query_new_data = array(
'first_name' => $fname,
'last_name' => $lname
);
func_array2insert('new_table', $query_new_data);
}

Any idea what I am missing?

-S
__________________
Thanks.
Reply With Quote