-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcreateacct.php
More file actions
25 lines (23 loc) · 1.04 KB
/
createacct.php
File metadata and controls
25 lines (23 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
// Process the form data when the form is submitted
$accountName = $_POST["account_name"];
$domainName = $_POST["domain_name"];
// Perform account creation logic here
// You can use the values of $accountName and $domainName to create the hosting account
// For demonstration purposes, we'll just display a success message
echo "<h1>Hosting Account Created Successfully</h1>";
echo "<p>Account Name: $accountName</p>";
echo "<p>Domain Name: $domainName</p>";
} else {
// Display the hosting account creation form
echo "<h1>Create Hosting Account</h1>";
echo "<form method='post'>";
echo "<label for='account_name'>Account Name:</label>";
echo "<input type='text' id='account_name' name='account_name' required><br><br>";
echo "<label for='domain_name'>Domain Name:</label>";
echo "<input type='text' id='domain_name' name='domain_name' required><br><br>";
echo "<input type='submit' value='Create Account'>";
echo "</form>";
}
?>