Jump to content

i need help with Logging Information with PHP!!!


GRPsuper

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?
Link to comment
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]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.