userid = form["userid"].value
for entry in data:
if userid != entry[0]:
print "<p> No grades available. </p>"
else:
print
entry[0] = [studenta, studentb, studentc, etc...]
entry[1] = [75,80,90, etc...]
I'm trying to create a web form where a user can type in their userid (studenta) and then the program will only display their own information. For example, studenta:75. However, if the username is not on file, it displays "No grades available".
Can anyone give me a hand?
for entry in data:
if userid != entry[0]:
print "<p> No grades available. </p>"
else:
entry[0] = [studenta, studentb, studentc, etc...]
entry[1] = [75,80,90, etc...]
I'm trying to create a web form where a user can type in their userid (studenta) and then the program will only display their own information. For example, studenta:75. However, if the username is not on file, it displays "No grades available".
Can anyone give me a hand?
Comment