navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

What is this line of code doing?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Microsoft FrontPage Help >> What is this line of code doing?
Page: [1]
 
contactcp

 

Posts: 167
From: None
Status: offline

 
What is this line of code doing? - 4/15/2002 12:07:54   
Could somebody please explain what this line of code would do and what it is calling and how it is calling it. I know that it is a link but I usually right links like <a href="index.htm" so what is happening below?:

<a href="../index.php?page=links&lang=" target="_top"><img src=img_sv/links.gif border="0"></a>

The reason why i ask is that i have often seen code that calls a page with these 2 dots and a forward slash e.g ../index.php where is it trying to call it from.

Also, what is this trying to call
?page=links&lang=

would appreciate if someone could explain this line of code so I can understand how to use it in different ways.

Thanks!


Chris Phillips 
pageoneresults

 

Posts: 1001
From: Orange, CA USA
Status: offline

 
RE: What is this line of code doing? - 4/15/2002 12:39:22   
Hello contactcp! Are you involved in some sort of link exchange program? It looks like that link is calling a page named links and then asking for a language and its opening the link in a new window.

I'd have to see the page in question so I could determine what it is doing.

SEO Consultants Directory
Search Engine Optimization Tips

(in reply to contactcp)
abbeyvet

 

Posts: 5095
From: Kilkenny Ireland
Status: offline

 
RE: What is this line of code doing? - 4/15/2002 13:05:33   
quote:
these 2 dots and a forward slash e.g ../index.php where is it trying to call it from.



This means it is calling the index page form the directory above the one containing the page you are viewing.

It is a relative link. The ../ indicated that you need to go up a directory, the index.php is what should be displayed in that directory.

For example if I had the following set up:

Directory 1
|
Contaning---Subdir
|
In turn containing Dir (i)

A page in Dir (i) would access a page in SubDir 1 using ../page/htm

and a page in the main directory using ../../page.htm


quote:
Also, what is this trying to call
?page=links&lang=


The fact that the page being linked to ends in php means that there is some sort of a php script working inside it. This is a command to the script. What it actually does will depend on what the particular script is configured to make it do - there is no way to tell by looking at it.

Katherine

++++++++++++++++++++++++
www.inkkdesign.com

Women and cats will do as they please. Men and dogs should relax and get used to the idea.

(in reply to contactcp)
Page:   [1]

All Forums >> Web Development >> Microsoft FrontPage Help >> What is this line of code doing?
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts