Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Clarification On The Use Of Query Strings
Old 07-31-2011, 05:08 AM Clarification On The Use Of Query Strings
evans123's Avatar
Ultra Talker

Posts: 468
Trades: 0
Im currently building an admin panel for my website and i need clarification on the use of query strings.

I have a page which contains some articles and when you click on the "edit" button it will take you to the link /admin/articles/?article=[Article's ID] and then underneath the row you clicked all the information about the article will be displayed.

If the ?article=[Article's ID] matches up to an article on the page then there isn't an issue, however when the ?article=[Article's ID] doesn't match up for example ?article=1&page=2 then im not sure what i should do. Do i issue a 404 error or simply a message saying that the article cannot be found on this page?

I have attached some images which show you the current state of play. Do you think this is the correct way of going about it?

article.png - /admin/articles/
article_1.png - /admin/articles/?article=1
article_2.png - /admin/articles/?article=1&page=2
Attached Images
File Type: png article.png (105.1 KB, 6 views)
File Type: png article_1.png (95.7 KB, 4 views)
File Type: png article_2.png (94.7 KB, 5 views)
evans123 is offline
Reply With Quote
View Public Profile Visit evans123's homepage!
 
 
Register now for full access!
Old 07-31-2011, 09:35 AM Re: Clarification On The Use Of Query Strings
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Your edit page should simply ignore any parameters it does not need.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-31-2011, 01:14 PM Re: Clarification On The Use Of Query Strings
evans123's Avatar
Ultra Talker

Posts: 468
Trades: 0
Thanks, How does this stand with SEO and web crawlers?
evans123 is offline
Reply With Quote
View Public Profile Visit evans123's homepage!
 
Old 07-31-2011, 02:32 PM Re: Clarification On The Use Of Query Strings
Physicsguy's Avatar
404 - Title not found

Posts: 920
Name: Scott Kaye
Location: Ontario
Trades: 0
Web crawlers shouldn't be inside your admin panel xD

Set your ROBOTS meta tag to noindex,nofollow.
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!
Physicsguy is offline
Reply With Quote
View Public Profile
 
Old 08-01-2011, 05:22 AM Re: Clarification On The Use Of Query Strings
Super Spam Talker

Posts: 879
Name: Paul W
Trades: 0
I would handle any incorrect values on the GET string - a simple "invalid arguments: click to return to somewhere" message - I'd also log such errors to see how many occured.

Excluding crawlers by use of robots.txt is a normal activity - it'll have no bearing on their assessment of your other pages.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


*** New:
Please login or register to view this content. Registration is FREE
PaulW is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Clarification On The Use Of Query Strings
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.49071 seconds with 13 queries