-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclinic.php
More file actions
24 lines (20 loc) · 753 Bytes
/
clinic.php
File metadata and controls
24 lines (20 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<html>
<head>
<title>CURL Request</title>
</head>
<body>
<?php
require __DIR__ . '/helper.php';
$url = "https://localhost:5001/api/clinics/AddClinic";
$data = ['ClinicNo' => $_GET['id'], 'Name' => $_GET['name'],'Address' => $_GET['address']];
make_curl_post_request($data, $url);
$url1 = "https://localhost:5001/api/pharmacies/AddPharmacy";
$data1 = ['name' => $_GET['pharmName'], 'location' => $_GET['pharmAddress'], 'clinic_no' => $_GET['id']];
make_curl_post_request($data1, $url1);
$url2 = "https://localhost:5001/api/worksAt/AddWorksAt";
$data2 = ['clinicNo' => $_GET['id'], 'medID' => $_GET['userID']];
make_curl_post_request($data2, $url2);
redirect('/PatientMedicationApplication/doctor.php?userID='.$_GET['userID']);
?>
</body>
</html>