Welcome Guest, Not a member yet? Register   Sign In
Help with form_validation and cache
#1

[eluser]Unknown[/eluser]
I have page /product/detail in my ecommerce with a submit form to cart/add

cart/add check form's field with form_validation
if there are errors (example missing color or size) redirect to product/detail
In product detail there aren't form_error('') and set_value('')

I tried another way, form_submit on product/detail and if there is a hidden variable
$_POST['action']=="add_cart"
proceed with form_validation ... but then I lose the benefits of being able to store the cached page

What is the right method to follow?




Theme © iAndrew 2016 - Forum software by © MyBB