guys pleaese help me with the code , correct the flask py code snippet for me.
`code html[`
<!DOCTYPE html>
<html>
<head>
<title>Admin manage doctor</title>
<link rel="stylesheet" type="text/css" href="static/images/admindoctor.css">
</head>
<body>
<div class="hai">
<table cellspacing="15" cellpadding="15">
<tr>
<th class="btn"> View Doctors List</th>
<th class="btn">Register Doctors</th>
<th class="btn">Shedule Time For Doctors</th>
<th class="btn">View Shedules</th>
<th class="btn">View Complaints / Feedbacks</th>
</tr></table>
</div>
</body>
</html>
Now i will share the py code
@admin.route('/patients',methods=['get','post'])
def patients():
data={}
if 'view_patients' in request.form:
data['pat']="hai"
I know the code is wrong… What i want is correct the code such that while i click any of the rows the table i want to performe data[‘pat’=”hai’
It is form my college project