Skip to content

PHP submitting a form is destroying my sessions

Hello I am trying to make a form in the page where I created a session so when I submit the form the sessions gets destroyed here is my code: PHP code to start the session : Answer Make sure you have session_start(); at the top of all the PHP scripts So, put the session_start(); at the top of the

why my variable does not pass in the modal box

good evening I have two sites the first in php and the second in wordpress on the one in php i have a table with links each link opens an article to wordpress the link is in $donnees[“guid”] I did some var_dump of $donnees[“guid”] the results are correct Except when the modal opens It&…

Remove A|B duplicates from associative array in Laravel

I have an associative array containing entries that are virtually the same, except the key-value pairs are swapped: I stored the array in a Laravel collection and tried using ->unique() but the output matches the array feeding in. How can I remove duplicates like this from an array so each pair is unique n…

Passing 2 parameters in ajax url in Laravel route

I need help, my ajax request doesn’t work if i use 2 parameters in url but if i only use 1 parameter it works perfectly fine. There isn’t error in the first one but i think it does not reach to the controller because the output in response is undefined. this is my view this is my ajax request when