Jump to content

Username and password


Guest

Recommended Posts

You could do it a better way. For example, you could have one page called profile.php that takes in a Get variable. The variable of the $_GET could be the username.

 

So, I'm just after logging in, my username is waynewex, and I am redirected to profile.jsp?username=waynewex

 

On the profile page

 

<?php

$username = $_GET['username'];

?>

 

Then maybe use that username to query a database and display all of their details.

 

If you want to stick to your other idea, I suggest having a look at PHP's file functions. All the best.

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.