Skip to content
Advertisement

Tag: php

Keeping variables in a class after refresh PHP

i come here with a question: I have a class User created in a php file, this class is included in 2 main files, it’s there any chance to save values in that file? I mean, in the moment when i refresh the page, my variables saved in class are gone, and i want to save them without using $_SESSION.

Get different values of same string in PHP

I have checkboxes of categories in a form. When checkbox is changed, from is submitted through ajax and get the values in PHP. //form I get the form data and submit through ajax In PHP, I am getting input fields as a string I tried to get the inputs values of category using explode, parse_str but could not get all

Advertisement