Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End sending and receiving data on php Re: sending and receiving data on php

#135284
CrocoDillon
Participant

I think AJAX would be a good solution too. I don’t see why you’re not just posting to index.php, check if there is $_POST data and if there is, include login.php to handle that data.

If you really want to post to login.php without using AJAX you could use session variables to set the return value/errors and redirect to index.php using the header. Then in index.php read those session variables.