question about "?id=123" lookup
Posted: Thu Jun 29, 2006 10:28 pm
I am sure that someone smarter than me knows this answer.
I am setting up a simple database with 4-5 fields, and wish to use the url to access the db and then redirect the visitor to the proper page. With that said, this url is not a link, it will be typed in, so my question is:
If I create an index page in php that is only looking for one data bit like "12345" eg. .com/pn/index.php?pn=12345. Can I eliminate most of this url down to something like .com/pn/?=12345 or .com/pn/?12345 and still have it work? I am trying to make the url information so simple that when it is on a piece of paper it is as simple as possible and when it is typed in, it works. I don't wish to have a lookup, just a url that is as simple as possible and works, and if so, is there anything special I should be looking for, or avoiding on the processing side. Like assigning an id to the input or limiting the string to five numbers for safety...
Obviously, I am a bit new to this part of the process, but I'm a fast learner.
So is there anyone that might be able to offer a bit of insight to this, it will be most welcome.
Thank you...
I am setting up a simple database with 4-5 fields, and wish to use the url to access the db and then redirect the visitor to the proper page. With that said, this url is not a link, it will be typed in, so my question is:
If I create an index page in php that is only looking for one data bit like "12345" eg. .com/pn/index.php?pn=12345. Can I eliminate most of this url down to something like .com/pn/?=12345 or .com/pn/?12345 and still have it work? I am trying to make the url information so simple that when it is on a piece of paper it is as simple as possible and when it is typed in, it works. I don't wish to have a lookup, just a url that is as simple as possible and works, and if so, is there anything special I should be looking for, or avoiding on the processing side. Like assigning an id to the input or limiting the string to five numbers for safety...
Obviously, I am a bit new to this part of the process, but I'm a fast learner.
So is there anyone that might be able to offer a bit of insight to this, it will be most welcome.
Thank you...