Answer the question
In order to leave comments, you need to log in
Include, ajax, how to make friends?
So there is an index.php in which the session is checked, if the admin then admin.php is included, if a simple user then user.php . There is also a form in the index that sends a post request via Ajax to admin.php (nothing is specified in the action as it is included). Admin.php does not receive values from index.php when using ajax, if you disable it, then everything works fine. Tell me what can be done? if anything I use ajax from malsuna . If you do it without ajax, then the form will be resubmitted.
Answer the question
In order to leave comments, you need to log in
If you do it without ajax, then the form will be resubmitted.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question