rilana Posted November 5, 2007 Share Posted November 5, 2007 I made a website with a tool to add and edit job lists. Now I have the following problem. Once the list gets to big to show it on one page, it creates a button that says next page. It works fine when the list concludes all the jobs, but when it was selected to only show a certain kind of jobs, then it jumps to the unselected list after clicking on next page. http://www.smartpersonal.ch/purple/jobseekers/JobSearch.php as you can see on the website if you choose Bereiche: Technische Berufe.... the code looks like this if ($rr2 <= $ByPage && $Start == '0') { } if ( $Start > 0 ) { $nom1 = $Start - $ByPage; echo "<td align=left class=inhalt><a class=TN href=\"JobSearch3.php?sm=$sm&position=$position®ion=$region&bereich=$bereich&anstellung=$anstellung&datum=$datum&target_company=$target_company&relocate=$relocate&country=$country&city=$city&kw=$kw&Start=$nom1\">zurück</a></td>"; } if ($rr2 > $Start + $ByPage || ($Start == 0 && $rr2 > $ByPage)) { $nom = $Start + $ByPage; echo "<td align=right class=inhalt><a class=TN href=\"JobSearch3.php?sm=$sm&position=$position&position=$position®ion=$region&bereich=$bereich&anstellung=$anstellung&datum=$datum&target_company=$target_company&relocate=$relocate&country=$country&city=$city&kw=$kw&Start=$nom\">nächste Seite</a></td>"; } bereich would be the variable.. Would be cool if anyone could see the mistake, because I cant seem to figure it out! thanks a lot guys!!! Quote Link to comment Share on other sites More sharing options...
btherl Posted November 6, 2007 Share Posted November 6, 2007 We'll need to see the rest of your code. The "naechste Seite" link looks correct, so I suspect the problem is in how your code interprets that link. Do you use $_POST? If so, try using $_REQUEST instead. Quote Link to comment Share on other sites More sharing options...
rilana Posted November 11, 2007 Author Share Posted November 11, 2007 Wow thanks you are such a genious!!! that was it, and this was so easy I just had to change it to REQUEST!!!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.