I have a python-generated html form that lists values retrieved from a mysql database. The form has two submit buttons that work: database records are initially sorted by name or by record number depending on the submit button selected.
Table row: Last Name First Name Submitted on: View Record
<TR> Brando Marlon timestamp 1
The last table cell of each row source:
<input type="hidden" name="id" value="1"><a onClick="identify_record(1)" href="">1</a>
I am looking for a way to call the function as an onClick event and to pass the student ID argument so that when the user clicks on the record number in the page, the record number is passed to the function.
The python function is in the module called by the html form:
The print statement fails so I must be missing something. I have tried a number of ways to do this and nothing seems to work so far. Let me know your thoughts thanks.