Jump to content

Archived

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

GRPsuper

i need help with Logging Information with PHP!!!

Recommended Posts

hey, i was wondering if someone could help me with the code i will describe below.
this is what im trying to do:
i want to make a link called grpsuper9.stylehosting.com/log.php

and in that file, i want me to be able to do this

grpsuper9.stylehosting.com/log.php?username=GRPsuper9&password=hihihihi

first off, i want to know how to make it so i can the ?username=GRPsuper9&password=hihihihi. then, i want the information that i typed "GRPsuper9" and "hihihihi" to be writting automaticly to this page

grpsuper9.stylehosting.com/logged.php

and each time i used this url grpsuper9.stylehosting.com/log.php?username=aaaa&password=bbbbb, it would stack the information in an array.

how would i do this?

Share this post


Link to post
Share on other sites
Use $_GET?

In log.php you can do the following at the very top of the file:
[code]<?php

if(isset($_GET['username']) && isset($_GET['password']))
{
    echo "Your Username is <b>{$_GET['username']}</b> and your password is <b>{$_GET['password']}</b>";

    // other code here.

}

?>[/code]

Share this post


Link to post
Share on other sites

×

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.