How do i clear the parameters in a link in php?
The problem is that your href="evenement/..."
is a relative URL and is getting appended to the current URL. You have two options:
Place an absolute URL in your code, e.g.
href="http://www.mywebsite.com/path/to/code/index.php/evenement/..."
orhref="/path/to/code/index.php/evenement/..."
Provide a base href in the
<head>
of the page, e.g.<base href="http://www.mywebsite.com/path/to/code/index.php/">
.Use
$_SERVER['REQUEST_URI']
to generate an absolute URL.
Here is an example for #3:
<?phplist ($url) = explode('index.php/', $_SERVER['REQUEST_URI']);$calendar.= '<a href="'.$url.'/evenement/showTaken/day/'. $list_day .'/maand/'.$month.'/jaar/'.$year.'">';?>
Try to add a leading slash '/' in front of "event" on your second line :
$calendar.= '<a href="/evenement/showTaken/day/'. $list_day .'/maand/'.$month.'/jaar/'.$year.'">';
Or even better, use CodeIgniter url generation :
$calendar.= '<a href="<=site_url('/evenement/showTaken/day/'.$list_day.'/maand/'.$month.'/jaar/'.$year);?>">';