• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[PHP] Admin Panel

Kavvson

Gdy boli cie glowa wez
Joined
Jun 25, 2008
Messages
1,177
Reaction score
72
Location
Poland
Im going to create a standalone admin panel. While creating i occurred some problems. I hope someone can help me in this.

First of all the script base on $_GET['editcharacter'] which is received from index.html

PHP:
<?PHP   if ( !isset( $_GET['editcharacter'] )) header( 'Location: index.html' ); ?>

=>
PHP:
<input id="search" name="editcharacter" type="text" ...

This part works correct. After putting in a name it converts to index.php?editcharacter=Kavvson

I know it would be possible to put in this into 1 file. Which would be lunched from index.php .

In index.php would be a search filed. Something like this.

PHP:
<input type="text" name="" class="search_input" value="search keyword" onclick="this.value=''" />

Each admin site page will have subpages. Dont know how to correct the page. Like

Code:
 <div class="submenu">
                    <ul>
                    <li><a href="Equipment.php?editcharacter=<?PHP ECHO $_GET['editcharacter'] ; ?>">Characters Equipment</a></li>
                    <li><a href="">Contnet</a></li>
                    <li><a href="">Contnet</a></li>
                    <li><a href="">Contnet</a></li>
                    <li><a href="">Contnet</a></li>
                    </ul>
                </div>
I think it is a good possibility. Isn't it? Or could it be like
PHP:
index.php?page=equipment&editcharacter=Name

I can add you here the source

For upcoming questions please ask. I can provide some additional files.


@2 How to display the sites? I mean there should be index.php ( has all menus headers etc. ) and the pages just get in the main content. So not each page has the full page code :/
 

Attachments

Last edited:
Or easier to use a framework? Since i cant get how can the sites look like. Template or we;(


I have no site concept. Maybe someone want do it?:D
 
Back
Top