PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I created a user registration form working. I decided to modify it for security reasons. What I did was have one page called profile.php include the appropriate files according to the URL. The problem is that when I include the files I can't send anything from profile.php to the included page. I can't send variables, $_SESSION variables, nothing! So here's my code:
Oh, sorry, last time I didn't have enough time to look over your code. The problem may be that you are including register.php, instead you should just use a header to redirect the user right to it. I know with cookies that you cannot use the cookie values until the script that created them has ended. So just make sure that this script ends and sends the user to the other page.
Yeah, that's what I figured was happening. I included it so that the URL would stay profile.php, and I wouldn't have to switch around files into different, less sensitive folders. Thanks for the help. I'll come back here tomorrow if I have any more trouble.