Struck while posting to php - mini cart-Resolved
Posted: Tue Nov 13, 2007 10:51 pm
Hi
I am trying to build a very basic cart, which builds a mini cart as items are added to the cart and then finally checkout and send a email and write to a flat file.
The problem is the final php file which send the email and write to the flat file whatever ordered
The checkout page has a form which posts to a php file as below
where takeout.php is a external php file outside CMS, this works fine.
but it does not work if I define the php within CMS content
I added the php code within {php} {/php} I think the form values are not getting posted
The home page cart works fine which calls the external php file.
The Test (from the menu) does not work as this is post to the php within CMS
I also used UDT but no joy.
Please note
$config['use_smarty_php_tags'] = true;
$config['assume_mod_rewrite'] = true;
$config['page_extension'] = '.htm';
Please ignore the cart design I am trying to get the functionality right.
Any help appreciated.
Thanks
I am trying to build a very basic cart, which builds a mini cart as items are added to the cart and then finally checkout and send a email and write to a flat file.
The problem is the final php file which send the email and write to the flat file whatever ordered
The checkout page has a form which posts to a php file as below
where takeout.php is a external php file outside CMS, this works fine.
but it does not work if I define the php within CMS content
I added the php code within {php} {/php} I think the form values are not getting posted
The home page cart works fine which calls the external php file.
The Test (from the menu) does not work as this is post to the php within CMS
I also used UDT but no joy.
Please note
$config['use_smarty_php_tags'] = true;
$config['assume_mod_rewrite'] = true;
$config['page_extension'] = '.htm';
Please ignore the cart design I am trying to get the functionality right.
Any help appreciated.
Thanks