Jump to content

PHP Page calling another PHP page before being served...


silentweed

Recommended Posts

Hi,

 

I have a login.html page with a username and password field. When the submit button is clicked the username and password entered is POSTED to a login.php page on Server A. This php page then checks the username/password against a mySQL database. If the username/password is not valid the script exits() and the user is told that he has entered incorrect login details.

 

However if a user enters valid details I want the login.php script to call another page called message.php. This message.php page will simply return a letter "A" or "B" to members.php page. The member.php page should then display this letter to the user.

 

Is this possible? i.e a php page calling another php page (which returns a value to the calling page) and then the calling page returning the result passed back to it to the user?

 

Thanks in advance...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.