Ajax concatenate query |
(07-12-2017, 11:12 AM)ivantcholakov Wrote: @pippuccio76 403 (Forbidden)
403 (Forbidden)
This only you can investigate at your place. Windows, Linux? Check the php file permissions? Something within code (authentication)? Something within .htaccess? Similar complaint at StackOverflow? ...
I don't know how many options you plan to have, but if your options are limited, you might consider putting all of the options data in hidden inputs as JSON. Put the JSON in the value with PHP's json_encode function. Let javascript use the JSON by using JSON.parse. I do it often, and it works well.
(07-12-2017, 03:37 PM)skunkbad Wrote: I don't know how many options you plan to have, but if your options are limited, you might consider putting all of the options data in hidden inputs as JSON. Put the JSON in the value with PHP's json_encode function. Let javascript use the JSON by using JSON.parse. I do it often, and it works well. In italy there are 20 Regioni , 107 Province ,8100 Comuni . But this is to learn too ...
(07-12-2017, 12:19 PM)ivantcholakov Wrote: 403 (Forbidden) It's a free host this is the page : link with ajax problem
(07-13-2017, 09:13 AM)pippuccio76 Wrote:I change the code of metdod with a value (costant) instead a $_POST value , the problem is the same , but if i visit the link :(07-12-2017, 12:19 PM)ivantcholakov Wrote: 403 (Forbidden)It's a free host this is the page : link the method work correctly
(07-13-2017, 09:44 AM)pippuccio76 Wrote:(07-13-2017, 09:13 AM)pippuccio76 Wrote:I change the code of metdod with a value (costant) instead a $_POST value , the problem is the same , but if i visit the link :(07-12-2017, 12:19 PM)ivantcholakov Wrote: 403 (Forbidden)It's a free host this is the page : Problem partially solved : if i set $config['csrf_protection'] = FALSE; the ajax call work , but is it secure ? How can i secure the script ?
(07-13-2017, 09:44 AM)pippuccio76 Wrote:(07-13-2017, 09:13 AM)pippuccio76 Wrote:I change the code of metdod with a value (costant) instead a $_POST value , the problem is the same , but if i visit the link :(07-12-2017, 12:19 PM)ivantcholakov Wrote: 403 (Forbidden)It's a free host this is the page : funny it work for me ![]() edit: ok, i see you changed the site :/
(07-13-2017, 10:44 AM)pippuccio76 Wrote:(07-13-2017, 09:44 AM)pippuccio76 Wrote:(07-13-2017, 09:13 AM)pippuccio76 Wrote:I change the code of metdod with a value (costant) instead a $_POST value , the problem is the same , but if i visit the link :(07-12-2017, 12:19 PM)ivantcholakov Wrote: 403 (Forbidden)It's a free host this is the page : you need to return a new token. https://www.codeigniter.com/user_guide/l...rgery-csrf return a json string with the html and the token
(07-13-2017, 10:52 AM)Paradinight Wrote:(07-13-2017, 10:44 AM)pippuccio76 Wrote:(07-13-2017, 09:44 AM)pippuccio76 Wrote:(07-13-2017, 09:13 AM)pippuccio76 Wrote:I change the code of metdod with a value (costant) instead a $_POST value , the problem is the same , but if i visit the link :(07-12-2017, 12:19 PM)ivantcholakov Wrote: 403 (Forbidden)It's a free host this is the page : I use form_open() but i don't understand wath i have to do .... |
Welcome Guest, Not a member yet? Register Sign In |