PDA

View Full Version : Is this XML ?


newkid
11-15-2004, 06:42 PM
I've seen a few pages like this and was wondering if they were HTML ?

http://www.yart.com.au/article.asp?ID=12

http://www.yart.com.au/article.asp?ID=15

It looks like each page uses article.asp and ID identifies the page content?
and I'm assuming that id "12/15" some how refers to some type of an Html document?
I've looked at the code and as normal I'm totaly confused.

Guess I'm just looking for a short explanation I have bunch of pages that I would like to set up like this (I think). I've read a few things on Html and originaly I just thought it was kind a replacement for a flat file or database file. Also if the above linkes are Html and my two question are some what true what's a good learning source either on-line or book is fine.


Thanks
J.C.

chilipie
11-15-2004, 06:45 PM
The pages are HTML, but there is an ASP navigation system in place. I can give you the PHP code, but do not know how to implement this with ASP.

newkid
11-15-2004, 11:26 PM
Chili
it's not so much the Navigation (well at least I dont think it is)
what I'm confused by is:

<a href="article.asp?ID=15">The Disadvantages Of XML</a>

<a href="article.asp?ID=2">What Is Yart?</a>

<a href="article.asp?ID=3">Yart Work</a>

How does this work?

Thanks
J.C.

gsnedders
11-15-2004, 11:46 PM
It's get's the ID (from ?ID=) and outputs a page with content about that ID.

newkid
11-16-2004, 09:48 PM
Error
Yep I understand
It's get's the ID (from ?ID=)

The part that has me confused (looking for info on) is

outputs a page with content about that ID

Thanks
J.C.

gsnedders
11-16-2004, 10:55 PM
It looks at the ID, and give you a page, depending on the ID.

Sayonara
11-17-2004, 10:30 AM
I've seen a few pages like this and was wondering if they were HTML ?

http://www.yart.com.au/article.asp?ID=12

http://www.yart.com.au/article.asp?ID=15

It looks like each page uses article.asp and ID identifies the page content?
and I'm assuming that id "12/15" some how refers to some type of an Html document?
I've looked at the code and as normal I'm totaly confused.
No, it's not XML.

The page those URLs point to is an ASP (Active Server Pages) page. This is a dynamic server-side language which, among other things, can generate or choose HTML output based on a number of inputs.

Everything after the question mark is called the "query string", and is a bunch of variable=value declarations separated by either ; or &.

So the ID is a variable that is being passed to the article.asp page, which will obviously include a script to decide how to use that information. In this case it chooses which article to show in the page body (along with some other stuff, like the page title) based on the ID, probably by looking up a row with that ID in a database table or including the content of a file with that ID as its name.

Is that what you were after?

newkid
11-17-2004, 05:17 PM
Thanks Sayonara,
yes that answers my question, now I know what direction to start looking and learning. Now just have to find some one to plug into so I can do one of those data transfers and instantly have all there knowledge :D . Took a look at your web site and projects .... looks good.


Thanks
J.C.

Sayonara
11-17-2004, 05:38 PM
If you want to learn a dynamic language for the first time, I'd suggest PHP rather than ASP.

:thumbsup: