$ _GET Ile çalışma [page_id]

0 Cevap php

Okay, this might be a basic question. Here is my code:

<?php $pageid = $_GET[page_id]; ?>

Ve sonra:

<a href="" <?php if($pageid == '2' OR $pageid == '9') { echo...

So this makes it so that if they are on page ID 2 or 9, then it will echo a message. Now what I want to do is that I want to add index.php as one of those pages. But index.php does not have a page id. So I want <?php if($pageid == '2' OR $pageid == '9' OR index.php) { echo... How the heck do I do that? Just placing the filename wont work obviously.

0 Cevap