hi
I have a snippet that is more like a complete php page.
right now it does the following
gets the $_POST.
shows a form (that shows the $_POST options)
shows a list depending on the contents of the $_POST
that works perfectly.
what I want now is:
In the list there are different items, each with it's own link
example
<a href=".../sport?y=2014&c=1&i=1">a title</a>
on the top of my snippet I have following code:
$y= mysql_real_escape_string($_GET['y']);
$i= mysql_real_escape_string($_GET['i']);
$c= mysql_real_escape_string($_GET['c']);
if ($y==''or$i==''or$c==''){
//show the list page as is
...
}
else{
echo "show 1 item";
}
but I never get to "show 1 item"
the link of the current page is
and when I click on an item link
it still shwos the list page as is, I don't see the ?y=... bit in my url
I also tried following as links:
sport/?y=2014&c=1&i=1
sport.html?y=2014&c=1&i=1
sport.php?y=2014&c=1&i=1
I could replace the ?y=2014&c=... with a hidden form,
but that would mean ppl can't surf immediatly to the "show 1 item" page.
any thoughts?
greetings
djemmers
[ed. note: djemmers last edited this post 13 years, 9 months ago.]