-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #216 from Divyesh000/contactuserfriendly
make contact page user friendly
- Loading branch information
Showing
3 changed files
with
71 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
?> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>New Contact Message</title> | ||
<style> | ||
body { | ||
font-family: Arial, sans-serif; | ||
line-height: 1.6; | ||
color: #333; | ||
background-color: #f4f4f4; | ||
padding: 20px; | ||
} | ||
.container { | ||
background-color: #fff; | ||
padding: 20px; | ||
border-radius: 5px; | ||
box-shadow: 0 2px 4px rgba(0,0,0,0.1); | ||
} | ||
h2 { | ||
color: #555; | ||
} | ||
p { | ||
margin: 0 0 10px; | ||
} | ||
.footer { | ||
margin-top: 20px; | ||
font-size: 0.9em; | ||
color: #888; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<h2>New Contact Message</h2> | ||
<p><strong>Name:</strong> <?= htmlspecialchars($first_name) ?> <?= htmlspecialchars($last_name) ?></p> | ||
<p><strong>Email:</strong> <?= htmlspecialchars($email) ?></p> | ||
<p><strong>Message:</strong></p> | ||
<p><?= nl2br(htmlspecialchars($message)) ?></p> | ||
<div class="footer"> | ||
<p>This message was sent via the contact form on your website.</p> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |