How to process form in cs-cart 4 -
I created a custom smart phone block in the CS-Cart 4. This block contains forms and will be displayed on every page . Now what action URL should I use and how can I capture the post variable for now
& lt; Form method = "post" action = "{" "| fn_url}" & gt; But after submission I am redirected to 404 pages.
The main ultimate "sending" of each form is.
& lt; Form method = "post" action = "{" "| fn_url}" & gt; & Lt; Input type = "submit" name = "send [your_controller.some_mode]" value = "submit" & gt; & Lt; / Form & gt; or When you submit this form, the CS-Cart controller will be named "your_controller.php" (app / controller / frontend /your_controller.php) this controller You can do whatever you need in For example, if {$ ($ mode == 'some_mode') {db_query ('' $ '' '[' REQUEST_METHOD '] ==' POST 'update: user password password = 123'); Returns array (CONTROLLER_STATUS_REDIRECT, "some.place"); }}
Comments
Post a Comment