I need to submit some data to a PHP file from js. If I submit to domain/path/file, I will get 403. How to submit data to a file in Zen cart?
Thanks.
I need to submit some data to a PHP file from js. If I submit to domain/path/file, I will get 403. How to submit data to a file in Zen cart?
Thanks.
You have to submit it to a file in the root. You can't directly access anything under the /includes/modules/ folder ... or even /includes/
What EXACTLY are you trying to do, and WHY?
Probably best to use the ajax handler.
You can see an example of how to use it in this Quick Order plugin: https://www.zen-cart.com/downloads.php?do=file&id=375
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Do you mean if the files which localize in the root can be call without 403? I'm not a programmer, it's difficult for me to understand the code at a short time.