On Jan 20, 4:25 pm, Ernesto Karim Oltra <ernestoka...@gmail.com>
wrote:

> Third, you must use URL parameters for this purpose, so you links must
> be something like this:
>
> <a href="/dir?type=tshirt">Tshirt</a>
> <a href="/dir?type=other">other</a>
>
> And in your handler:
>
> merchandise_type = self.request.get("type", "")
> # save in a variable (called merchandise_type for example) the
> parameter passed to the page
> # first argument is the parameter name, and second the default value
> if the parameter is not present (security!)

Thanks! I am using this method and it was very helpful. Can you let me
know references to read about how this works in general and in GAE in
particular? I did some research but could not find good sources.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to