Home › Forums › Back End › sending and receiving data on php › Re: sending and receiving data on php
May 16, 2013 at 8:47 am
#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.