Legally-Flowchart Mermaid
Legally-Flowchart Mermaid
Html
//input enctype="multitype/form-data"
<? Php
If(isset($_POST['submit']){
//no $_POST
$file=$_FILES['resume'];
$content = file_get_contents($file['tmp_name']);
//the only go to function you need >>>>>>
$filename = basename($file['name']);
//2 basic commads
$lower = strtolower($content);
//sensitivity bhee I can
foreach ($web_skills as $skill) {
if (strpos($lower, $skill) !== false) {
$category = "Web_Developer_Resumes";
break;
}
}
if (move_uploaded_file($file['tmp_name'], $destination)) {
echo "Resume uploaded and categorized into: <strong>$category</strong>.";
} else {
echo "Failed to upload file.";
}
}
Fof worth
"millponds
yam action: "e" method: apostil enctype
input types" fallen name." accept "tatu reems
*
ate
- Hay
needle
<?php
if (isset($_POST['submit'])) {
$file = $_FILES['resume'];
//samjha $_FILE[]
//IS A GLOBALATTRIBUTE
// Check file type
$content = file_get_contents($file['tmp_name']);//LETS see
// Skill matching
$web_skills = ["php", "javascript", "python"];
///make a non asociative array for comparitive analysis
$data_skills = ["data science", "machine learning"];
$category = "";
if ($category == "") {
foreach ($data_skills as $skill) {
if (strpos($lower, $skill) !== false) {
$category = "Data_Scientist_Resumes";
break;
}
}
}
// If no category matched
if ($category == "") {
echo "No relevant skills found. Resume not categorized.";
exit;
}
####basic form
<!DOCTYPE html>
<html>
<head>
<title>Event Registration Form</title>
</head>
<body>
<h2>Register for Events</h2>
<form method="post">
<label>Full Name:</label><br>
<input type="text" name="fullname" required><br><br>
<label>Email:</label><br>
<input type="email" name="email" required><br><br>
<label>Phone Number:</label><br>
<input type="text" name="phone" required><br><br>
<label>Password:</label><br>
<input type="password" name="password" required><br><br>
<label>Confirm Password:</label><br>
<input type="password" name="confirm_password" required><br><br>
<label>Select Events:</label><br>
<input type="checkbox" name="events[]" value="Workshop"> Workshop<br>
<input type="checkbox" name="events[]" value="Seminar"> Seminar<br>
<input type="checkbox" name="events[]" value="Networking"> Networking<br><br>
<button type="submit">Register</button>
</form>
</body>
</html>
<?php
$errors = [];
$success = "";
// Validations
if (empty($fullname) || empty($email) || empty($phone) || empty($password) ||
empty($confirm_password)) {
$errors[] = "All fields are required.";
}
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
$errors[] = "Invalid email format.";
}
if (strlen($password) < 8) {
$errors[] = "Password must be at least 8 characters long.";
}
if (empty($events)) {
$errors[] = "Please select at least one event.";
}
<?php
// Display errors
if (!empty($errors)) {
echo "<ul style='color:red;'>";
foreach ($errors as $err) {
echo "<li>$err</li>";
}
echo "</ul>";
}
// Success message
if ($success) {
echo "<p style='color:green;'>$success</p>";
}
?>
##xml
<?xmlversion="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.bharaththippireddy.org/order"
xmlns:tns="http://www.bharaththippireddy.org/order">
<element name="order" type="tns:order" />
<complexType name="order">
<sequence>
<element name="customer" type="tns:customer" />
<element name="product" type="tns:product" minOccurs="1"
maxOccurs="unbounded" />
</sequence>
<attribute name="id" type="tns:ID" />
</complexType>
<complexType name="customer">
<sequence>
<element name="name" type="string"/>
<element name="phone" type="string" minOccurs="0"/>
</sequence>
<attribute name="id" type="tns:ID" />
</complexType>
<complexType name="product">
<sequence>
<element name="name" type="tns:string20chars" />
<element name="description" type="int"/>
<element name="price" type="tns:string100chars" />
<element name="category" type="tns:category" />
</sequence>
<attribute name="id" type="tns:ID" />
</complexType>
<simpleType name="string20chars">
<restriction base="string">
<maxLength value="20"/>
</restriction>
</simpleType>
<simpleType name="string100chars">
<restriction base="string">
<maxLength value="100" />
</restriction>
</simpleType>
<simpleType name="category">
<restriction base="string">
<enumeration value="electronics" />
<enumeration value="books"/>
<enumeration value="shoes" />
</restriction>
</simpleType>
<simpleType name="ID">
<restriction base="int">
<maxInclusive value="50"/>
</restriction>
</simpleType>
</schema>
<!ELEMENT bookstore (book+)>
<!ELEMENT book (title)>
<!ATTLIST book id CDATA #REQUIRED>
<!ELEMENT title (#PCDATA)>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE bookstore SYSTEM "books.dtd">
<bookstore>
<book id="90">
<title>B1</title>
</book>
<book id="900">
<title>Wjb</title>
</book>
</bookstore>
07 April 2025 07:07
daily updates Page 1
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="books.xsl"?>
<bookstore>
<book id="90">
<title>B1</title>
</book>
<book id="900">
<title>Wjb</title>
</book>
</bookstore>
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--Output as HTML -->
<xsl:output method="html" indent="yes"/>
<!--Template for root element -->
<xsl:template match="/">
<html>
<head>
<title>Bookstore Inventory</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
}
h1 {
color: darkblue;
}
.book {
border: 1px solid #ccc;
padding: 10px;
margin-bottom: 10px;
background-color: #f9f9f9;
border-radius: 5px;
}
</style>
</head>
<body>
<h1>Bookstore Inventory</h1>
#php file
<!DOCTYPE html>
<html>
<head>
<title>Read Resume File</title>
</head>
<body>
<h2>Read and Display Resume Data</h2>
<form method="post">
<label>Enter file name (e.g., resume.txt):</label>
<input type="text" name="file" required>
<button type="submit">Read File</button>
</form>
<?php
if ($_SERVER["REQUEST_METHOD"] === "POST" && isset($_POST["file"])) {
$filename = $_POST["file"];
if (file_exists($filename)) {
$file = fopen($filename, "r");
$dataArr = [];
if (count($parts) === 3) {
$name = trim($parts[0]);
$age = (int) trim($parts[1]);
$gender = trim($parts[2]);
$dataArr[$name] = [
"age" => $age,
"gender" => $gender
];
}
}
fclose($file);
} else {
echo "<p style='color:red;'>File not found: $filename</p>";
}
}
?>
</body>
</html>
####js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simple Single-Page Navigation</title>
<style>
/* Basic reset and page styling */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
line-height: 1.6;
padding: 20px;
max-width: 1000px;
margin: 0 auto;
}
/* Navigation styling */
nav {
background-color: #333;
padding: 10px;
margin-bottom: 20px;
}
nav ul {
display: flex;
list-style: none;
}
nav a {
color: white;
text-decoration: none;
padding: 10px 15px;
}
nav a.active {
background-color: #4CAF50;
border-radius: 4px;
}
/* Section styling */
.page-section {
display: none;
padding: 20px;
border: 1px solid #ddd;
border-radius: 4px;
}
.page-section.active {
display: block;
}
h1 {
margin-bottom: 15px;
}
p {
margin-bottom: 10px;
}
</style>
</head>
<body>
<!-- Navigation Menu -->
<nav>
<ul>
<li><a href="#home" class="nav-link active"
data-section="home">Home</a></li>
<li><a href="#about" class="nav-link"
data-section="about">About</a></li>
<li><a href="#services" class="nav-link" data-
section="services">Services</a></li>
<li><a href="#contact" class="nav-link" data-
section="contact">Contact</a></li>
</ul>
</nav>
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$conn->close();
?>
###append child
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Append and Delete Example</title>
<style>
#item-list li {
margin: 5px 0;
padding: 6px 10px;
background: #f0f0f0;
border-radius: 4px;
display: flex;
justify-content: space-between;
align-items: center;
}
button {
margin-left: 10px;
}
</style>
</head>
<body>
<h2>Todo List</h2>
<input type="text" id="item-input" placeholder="Add item" />
<button id="add-btn">Add</button>
<ul id="item-list"></ul>
<script>
const addBtn = document.getElementById("add-btn");
const input = document.getElementById("item-input");
const itemList = document.getElementById("item-list");
addBtn.addEventListener("click", () => {
const value = input.value.trim();
if (value !== "") {
// Create list item
const li = document.createElement("li");
li.textContent = value;
// Clear input
input.value = "";
}
});
</script>
</body>
</html>