Hi,
I am trying to write a custom php script that will add the logged in username into my mySQL table. Any simple guide/snippet that could help me retrieve the logged in username from different PC? To make it clear, I will need a simple script that could trace for his/her log in username and insert into mySQL table. I am still new to php but I don't need the full piece of script but just a snippet of how to retrieve the logged in forum ID from different PC(probably), and I will do the rest my own, thanks.
Code:
<html>
<head>
<title>Database</title>
</head>
<body>
<form action="welcome.php" method="get">
HWID: <input type="text" name="HWID" size="30"/><br />
<input type="submit" name="submit" value="Submit" />
</form>
</body>
</html>
Above are some snippet that will direct to welcome.php after clicking the "Submit" button and in my welcome.php i will need to search for the username in the "user" table automatically add it up to my mySQL table.
Thanks in advance.
Regards,
Nerrazzuri