[Tutor] cgi scripts

Alan Gauld alan.gauld at btinternet.com
Sat Nov 8 09:25:13 CET 2008


"Jim Morcombe" <jmorcombe at westnet.com.au> wrote

> The code I sent before had a silly mistake in it.  Here is a better 
> example of the things I am trying and failing at.

Look at what you are doing in the two examples....

> # This next bit also works and I can see the value of the variable 
> print "<B>JQuiz_q01_score = ", data["JQuiz_q01_score"].value
>
> # However, whenever I try to iterate over all the keys, I get the 
> print "<BR>"data[k].key

Can you see what you are doing differently whwen accessing
the data?

HTH,


-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld 




More information about the Tutor mailing list