February 1, 201214 yr Hi All, I am currently helping out on an Art Gallery web site. I have a major issue with one of the categories. They have a retro art section, with several categories. For example; movies, advertising, comics, fashion, etc. http://www.g1art.com/cgi-bin/index.cgi?retro_cats=1 The issue I have, is if you are in any of these given sub-categories and click '2', for page 2 of that sub-category that you are in, it takes you to page 2 of the retro art 'all categories' section. So ultimately the page links are wrong. I know this sounds a little confusing, but I would be very grateful to any help or advise that can be offered. Thanks in advance Jay
February 1, 201214 yr Yes something wrong in your code. If I go to retro art and automotive the link is http://www.g1art.com/cgi-bin/index.cgi?retro_cat=4&category=retro_art&category_name=Automotive if if then select page 2 it takes me to http://www.g1art.com/cgi-bin/index.cgi?next=42&cart_id=1328094375.15138&category=retro_art when by applying a little logic it should in fact be? http://www.g1art.com/cgi-bin/index.cgi?next=42&retro_cat=4&category=retro_art&category_name=Automotive
February 1, 201214 yr Author Yes something wrong in your code. If I go to retro art and automotive the link is http://www.g1art.com/cgi-bin/index.cgi?retro_cat=4&category=retro_art&category_name=Automotive if if then select page 2 it takes me to http://www.g1art.com/cgi-bin/index.cgi?next=42&cart_id=1328094375.15138&category=retro_art when by applying a little logic it should in fact be? http://www.g1art.com/cgi-bin/index.cgi?next=42&retro_cat=4&category=retro_art&category_name=Automotive OK understood thanks. But how and where would I change this code? I have inherited this build from another developer and being a more frontend man I'm struggling a little. Cheers Jay
February 1, 201214 yr i would ditch the script totally... &category_name=Automotive<script>alert('jolly+rodger')</script> Edited February 1, 201214 yr by SniderDK
February 1, 201214 yr Author i would ditch the script totally... &category_name=Automotive<script>alert('jolly+rodger')</script> I dont really understand what you mean by that? Sorry a bit of a noob when it comes t php.
February 1, 201214 yr Means it's totally insecure - anyone can insert malicious Javascript simply by including it in the URL.
February 3, 201214 yr Author Means it's totally insecure - anyone can insert malicious Javascript simply by including it in the URL. Not good, any suggestions??
February 3, 201214 yr Author So guys , how do I change the script to point to the right page? Is that a page edit or script on a given page or what? I'm clueless here and any help you could offer would be great... Jay
February 8, 201214 yr Author Hi all, I posted on this a week or so ago and still have not found the resolution. I have an issue with the page numbers pointing at the wrong place. The site is an art gallery site and under the 'Retro Art' section are a number of sub categories. I.e. Advertising, Comics, Sport etc. http://www.g1art.com/cgi-bin/index.cgi?retro_cats=1 When I go into any one of these given sub categories, say for example Advertising, there are a number of images and then at the bottom, links to the next pages. http://www.g1art.com/cgi-bin/index.cgi?retro_cat=2&category=retro_art&category_name=Advertising However, when I click on '2' for page 2, it takes me to page 2 of the "All retro art' section. What I really need to know is how to edit the script/php to point at the right place and where that code is likely to be located. Thanks in advance people. Jay (Front end developer)
February 8, 201214 yr You're going to need to show us the PHP code that generates the page numbers before anyone is able to help you.
February 8, 201214 yr Threads merged. Don't double post. I dont really understand what you mean by that? Sorry a bit of a noob when it comes t php. You've already been given some good advice: get rid of the whole script and start again. It's completely insecure. What I suggest you do is contract out any backend development work you get and use the extra free time to get a whole lot better at it. If you don't want to take my advice, make sure your professional indemnity cover is up to date; you'll need it.
Create an account or sign in to comment