View Single Post
  #1  
Old 01-19-2011, 02:28 PM
 
almenzies almenzies is offline
 

Advanced Member
  
Join Date: Nov 2005
Posts: 66
 

Default Using POST as the form submission method

Hey,

I've set up a very simple product enquiry page so that people can submit questions straight from the product details page.

I'd like to post some variables from the product details page to the enquiry page, but when I use the POST method it does not work (I'm re-directed to a search page).

I assume this is a security measure and is being controlled by auth.php (or a file referenced from there).

It works fine when I use GET, but ideally I'd like to avoid having all the variables in the URL.

My product enquiry page looks like this:

Code:
<?php require "./auth.php"; require $xcart_dir."/include/categories.php"; require "products.php"; $smarty->assign("main","productenquiry"); func_display("customer/home.tpl", $smarty); ?>

When I comment out the first line (auth.php) the correct url appears in the browser, but I get inclusion errors etc. When I include the line I am simply redirected to a search page.

Any help would be greatly appreciated.

Cheers.
__________________
http://www.ergofurniture.com.au
X-Cart Version 4.3.1
Reply With Quote