SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 1258 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


Using the URL to Pass Parameters
In a static Web site, links are used to navigate from one page to another. In a
dynamic site, links can have an additional function: passing parameters to an
application server so that it can determine the dynamic content on the linked
page. The added parameters are known as a query string and follow the standard
URL after a question mark, like this:
dvd_details.asp?movie=Serenity
729
IN THIS CHAPTER
Forwarding parameters
via a URL
Automating Application
Object production
Getting values from a form
Dreamweaver Technique:
Building a Search Page
Making form elements dynamic
Administering data sources with
Web applications
Dreamweaver Technique:
Creating the Results Page
Displaying variables
Authenticating site visitors
Crafting Multiple-Page
Applications
Every parameter is composed of a name/value pair separated by an equals sign. If more than one parameter
is sent, each pair is separated by an ampersand, as in the following example:
dvd_details.asp?movie=Serenity&genre=scifi
Unlike in HTML or other languages, quotation marks are not used to set off the values. Quotation marks
and other non-alphanumeric characters including spaces, single quotes, and tildes must be translated into
encoded characters so that the server interprets them correctly.


Pages:
1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270