Jump to content

[SOLVED] $_GET not working.


Northern Flame

Recommended Posts

I am working on a project and I want all the content to be displayed on the index of my Admin. So I wrote a script for this, but it displays all of the files that I ask for it to include, and none of the "submit" buttons work. Can anyone take a look and see what I did wrong?

 

<?php
$page = $_GET['page'];
$generator = 'generator';
$admin = 'admin';
$links = 'links';
$results = 'results';
$success = 'success';
include('var/config.php');
include('login.php');

if($page == $generator){
include('generator.php');
}
if($page == $admin){
include('admin.php');
}
if($page == $links){
include('links.php');
}
if($page == $results){
include('links_results.php');
}
if($page == $success){
include('success.php');
}
?>

Link to comment
https://forums.phpfreaks.com/topic/61062-solved-_get-not-working/
Share on other sites

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.