Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Code errors in pages. Need help!

Featured Replies

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

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

  • 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

  • Author

Means it's totally insecure - anyone can insert malicious Javascript simply by including it in the URL.

 

Not good, any suggestions??

  • 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

  • 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) :bangb:

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.