Jump to content

Few things that got forgotten


Xoom3r

Recommended Posts

Hey there! guys.  :)

 

I waned to know few things that got shown here a while ago.

 

1st. A script that does something like this: showmap.php?map=12 .

 

2nd. Simple way to make a registration + login + comments script.

 

3rd. something like index.php?action=download (only logged in users can download)

 

Can you please help and not refer me to other places?

Link to comment
https://forums.phpfreaks.com/topic/117133-few-things-that-got-forgotten/
Share on other sites

1st. use

<?php
echo $_GET['map']; // will display 12

 

2nd. google it. There is plenty of free ones out there, and examples.

 

3rd. check if the user is logged in, normally by checking for a session variable.

<?php
if(isset($_SESSION['username'])) { // if the user is logged in
  header("Location: index.php?action=download"); // redirect them to the download page
}

 

Regards ACE

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.