Voting starts in March for the Drupal Association Board election.
I have a quick question for anyone that can help:
I came across the l() function the other day, and came to realize I should be using it in my code to generate my links.
I wrote the following link before I found this function:
<a href="/'.$_SERVER["REQUEST_URI"].'&CompletedID='.$row->TaskID . '><img src="/misc/img/b_drop.png" Title="Mark Complete" name="CompletedID" border=0></a>
Its basically an image that you click on to mark a "task" complete. It calls the current page, with a CompletedID attribute in the URL.
How to I get the path for my current page in order to use this function?
This doesn't work:
l('Image Here', $_SERVER["REQUEST_URI"], array(), "CompletedID=$row->TaskID")
This does work (but its a hack & wont work if clean URLs is on):
l('Image Here', $_GET["q"], array(), "CompletedID=$row->TaskID")
Any help would be appreciated.