I'm making a list that people can filter it by categories and supplement it to their preference, like bulletin boards' PM lists. but inevitably for a newbie who hasn't even written a static page, I've encountered a huge problem.
here's what I've done.
<?php
$int=0
funtion set_int($opt_int)
{
$int=$opt_int
in here I used head() to refresh the page, but it didn't work.
}
if ($int==0)
{ echo "the original list" I used ordered list tag, and it didn't work. (I used both apostrophe and escape), is there an alternative way to make lists in PHP without using HTML?}
if ($int==1)
{Filtered list}
if ($int==2)
{ filtered list 2)
//and this pattern goes on.
?>
I use this to trigger opt_int()
<select>
<option onclick="opt_int(1)"><List Filter 1></option>
<option onclick="opt_int(2)"><List Filter 2></option>
But it doesn't work. what should I do?