Using href to send an empty variable to another directory

Hi,
I am trying to send an empty variable via $_GET when a link is clicked.

<a href="/artgibney/admin/notes/index.php?search">Notes</a>

Above i am trying to send the empty variable “search” to the directory …/notes/ which contains a file index.php In that file I wanted to set some variables inside

if (isset($_GET['search']))
{ 
  set some variables here.....
  
  include '.............';
  exit();
}

This is not working. So how can it be done?

Also is this an insecure way to do this?

Thanks,
Shane

Ok, I just figured it out. Should be,

<a href="/artgibney/admin/notes/?search">Notes</a>

Thanks,
Shane

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.