Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 76 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Ex.05 Design a Website for Server Side Processing
## Date:
## Date:20.10.2025

## AIM:
To design a website to calculate the power of a lamp filament in an incandescent bulb in the server side.
To design a website to calculate the BMI in the server side.


## FORMULA:
P = I<sup>2</sup>R
<br> P --> Power (in watts)
<br> I --> Intensity
<br> R --> Resistance
BMI = W/(H)<sup>2</sup>
<br> BMI =BODY MASS INDEX
<br> H =HEIGHT
<br> W =WEIGHT

## DESIGN STEPS:

Expand All @@ -32,13 +32,81 @@ Create a HTML file to implement form based input and output.
Publish the website in the given URL.

## PROGRAM :
```
<html>
<head>
<title>BMI Calculator</title>
<style type="text/css">
body{
border: solid rgb(238, 241, 243) 10px;
background-color: rgb(9, 16, 148);
}
.value{
text-align: center;
padding: 30px;
width: 300px;
height: 30px;
font-size: 20px;
background-color: rgb(222, 81, 189);
margin:auto;

}
h1,h2,h3{
text-align: center;
font-size: 20px;
padding: 20px;

}
button{
padding: 10px;
width: 250px;
border-radius: 25px;
border:solid rgb(250, 152, 152) 5px;
background-color: rgb(132, 74, 148);
font-size: 15px;
}
h3{
padding: 20px 50px;
text-align: center;
border: 10px solid rgb(121, 177, 9);
background-color: rgb(181, 182, 206);
width: 380px;
margin: 20px auto;

}
input{
padding: 10px;
}
</style>
</head>
<body>
<h1>Guhan.K (25014479)</h1>
<h2>Body Mass Index (BMI) Calculator</h2>
<form method="post">
{% csrf_token %}
<div class="value">
<label>Height (cm):</label>
<input type="text" name="height" required>
</div>
<div class="value">
<label>Weight (kg):</label>
<input type="text" name="weight" required>
</div>
<div class="value">
<button type="submit" >Calculate BMI</button>
</div>
<h3>Your BMI: {{bmi}}</h3>
</form>
</body>
</html>
```


## SERVER SIDE PROCESSING:

![alt text](<guhan/myapp/templates/myapp/Screenshot 2025-10-18 113105.png>)

## HOMEPAGE:

![alt text](<guhan/myapp/templates/Screenshot (115).png>)

## RESULT:
The program for performing server side processing is completed successfully.