I have a dropdown list that POSTS to itself and shows a table of paginated links. I can get the first page ok and the URL is correct but no subsequent pages of links. So, for example, when I click on the "next" link I get nothing but the dropdown. What am I doing wrong?
This is the form:
PHP 5.2.9
MySQL 5.0.81-community
This is the form:
Code:
echo '<div align="left">
<form action="index.php?p=view_recipes" method="POST">
<select name="type">
<option value="NULL">Choose a category:</option>
';
// Retrieve and display the available categories.
$catquery = 'SELECT * FROM categories ORDER BY category ASC';
$catresult = mysql_query ($catquery);
while ($row = mysql_fetch_array ($catresult, MYSQL_NUM)) {
echo "<option value=\"$row[0]\">$row[1]</option>";
}
// Complete the form.
echo '</select>
<input type="submit" name="submit" value="submit">
<input type="hidden" name="submitted" value="TRUE">
</form>
PHP 5.2.9
MySQL 5.0.81-community