Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ok I have a little question about addresses.

Status
Not open for further replies.
It is a query string you can use it to pass data from one page to another, for example :

When a user first visits a page write a cookie, next time user visits page read-back cookie, but only read cookie back on first page instaed of having to keep reading it on every page, you just pass the cookie data from page to page using query string. Regards

Big Dave

davidbyng@hotmail.com


** If I am wrong I am sorry, but i'm only trying to help!! **

 
Ok, but I think it is calling a file from somewhere because it is on a news site and it has the main file article.html and then after it is the date and other info so I think that it is calling based on that information.
 
The information is being passed to the page in question. This method is used to transfer data between pages - made very quick and easy with ASP,PHP etc.

The page grabs this data and acts on it - performing some action - you will most probably find it is an .asp extension, meaning it is an active server page. The query string data is being used by the server to get stuff for the page, either form a database or XML file.

In this way only one page has to be coded in HTML, but many pages of different data can be displayed.

You should get Personal web server and start trying some ASP, you'll enjoy it.

;-)
 
I have a server but I don't ASP, how would I do this with ASP do I make one page, like a sort of template, and then script up some ASP?
 
You have the server? Then you do have ASP - yay!

Yes that's right - you just make a page, then you can write data in from the server - you'll want these: They should be on your local machine, but if yours aren't [like mine] then you'll need this:


and download this:

[bb]
 
Hi thebensonfactor,
here's a little asp-code for you to play around with...
Put it into your favourite text-editor (mine is EditPad) and save it, somewhere under with the .asp extension...
ie. as c:\inetpub\
Code:
<%
strSubmission = request.querystring(&quot;submission&quot;)
if trim(strSubmission) <> &quot;&quot; then
	response.write &quot;You submitted: &quot; & strSubmission & &quot;<br>&quot;
else
	response.write &quot;You didn't submit a submission ;(<br>&quot;
end if
response.write &quot;<form action=default.asp method=get><input name=submission></form>&quot;
%>

When you have done this, open a browser and point it to:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top