D
D
Develm2015-09-21 17:33:40
PHP
Develm, 2015-09-21 17:33:40

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

1 answer(s)
A
Andrey Andreev, 2015-09-21
@b0nn1e

If you do it without ajax, then the form will be resubmitted.

Do a redirect.
O_o

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question