Jump to content

Isset Pages


-Karl-

Recommended Posts

Okay so I have:

<?php

$page = $_get['page']; 

if (isset($page['add'])) {

//do add

}

if (isset($page['edit'])) {

//do edit

}

 

So if the page is index.php?page=add, it will do the $page['add'] and if not the $page['edit'].

 

I've probably done it wrong which is why it isn't working, but I've looked over the manual and it seems logical. What am I doing wrong?

Link to comment
https://forums.phpfreaks.com/topic/196362-isset-pages/
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.