week3Flask

This commit is contained in:
mohammedcifci78
2024-02-28 12:09:36 +01:00
parent ef18410631
commit fc76dc14a3
6 changed files with 67 additions and 43 deletions

15
templates/index.html Normal file
View File

@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Python Script Interaction</title>
<script src="{{ url_for('static', filename='index.js') }}"></script>
</head>
<body>
<h1>Choose Operation</h1>
<label for="operation_choice">Choose operation (C for Create, R for Read, U for Update, D for Delete): </label>
<input type="text" id="operation_choice" name="operation_choice" required>
<button onclick="executeOperation(document.getElementById('operation_choice').value)">Submit</button>
</body>
</html>