Tool Script for YouTube Tag Generator
Index.html
<!DOCTYPE html>
<html>
<head>
<title>YouTube Tag Generator</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
margin: 0;
padding: 20px;
}
.container {
max-width: 400px;
margin: 0 auto;
background-color: #fff;
padding: 20px;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
}
label {
display: block;
margin-bottom: 10px;
font-weight: bold;
}
.result {
margin-top: 20px;
text-align: center;
font-weight: bold;
}
.btn {
display: inline-block;
background-color: #4CAF50;
color: #fff;
text-decoration: none;
padding: 10px 20px;
border-radius: 4px;
cursor: pointer;
}
</style>
</head>
<body>
<div class="container">
<h1>YouTube Tag Generator</h1>
<form action="generate.php" method="post">
<label for="videoTitle">Video Title:</label>
<input type="text" name="videoTitle" id="videoTitle" placeholder="Video Title" required>
<label for="videoCategory">Video Category:</label>
<input type="text" name="videoCategory" id="videoCategory" placeholder="Video Category" required>
<button class="btn" type="submit">Generate</button>
</form>
</div>
</body>
</html>
Generate.php:
<!DOCTYPE html>
<html>
<head>
<title>YouTube Tag Generator</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
margin: 0;
padding: 20px;
}
.container {
max-width: 400px;
margin: 0 auto;
background-color: #fff;
padding: 20px;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
}
.result {
margin-top: 20px;
text-align: center;
font-weight: bold;
}
.tags {
margin-top: 20px;
text-align: center;
}
</style>
</head>
<body>
<div class="container">
<h1>YouTube Tag Generator</h1>
<?php
$videoTitle = $_POST['videoTitle'];
$videoCategory = $_POST['videoCategory'];
// Generate tags logic here
// Replace the following with your own tag generation algorithm
$tags = generateTags($videoTitle, $videoCategory);
echo "<div class='result'>Generated Tags:</div>";
echo "<div class='tags'>" . $tags . "</div>";
// Function to generate tags
function generateTags($title, $category) {
$tags = $title . ', ' . $
0 Comments