il_manti wrote:
PS: my biggest problem here is: the code behind will still need what username i am viewing in order to retrieve the data from the database (something like getImageList(username)). how can i read the username with my method -- or yours -- since it's not in the address bar as a query?
The form method you are familiar with is called "get", where the browser passes the variable data along by appending a '?' followed by the variable name, an '=' and the variable data to the target url. Multiple variables are seperated by an ampersand (&). i.e. user_reply.asp?forumid=12076&main=/script/comments/forums.asp&select=1798826 It's a quick way to pass information and the model also allows you to create dynamic links (which you will no doubt need in your project). Another method you might remember or have seen at least once is "post". Post is often used to transmit more sensitive information such as login names and passwords, birthdates and credit card information which should not be visible to the user. It is adviseable to use this method when working with a secure connection, or when transmitting a large string such as this paragraph. It may also help prevent SQL injection. A variable passed using "post" is not displayed in the url, but may be used in much the same way. If you are looking for a cleaner look you may use this method, but you should also consider the fact that you must balance functionality and SEO. Search engines might not be able to effectively crawl a site that uses a "post" form method as a means of navigation, unless you include an xml sitemap that is constantly updated as new directories are created. Roswell
"Angelinos -- excuse me. There will be civility today."
Antonio VillaRaigosa
City Mayor, Los Angeles, CA