Skip to content
This is my space, where experience meets the will to start over. This is my space, where experience meets the will to start over.

The first step is knowing where you want to go.

  • Home
  • Coding Hub
    • Software & Project
      • Small Biz Ops – S.B.O.
        • SmallBizOps – Day 10/90
      • CRM/ERP
      • MyTracker
      • My Budget
    • Form Zero to “WoW”
      • JavaScript from Zero (Completed)
        • 2. Remove and Edit List Items
        • 3. Separate HTML and JavaScript, Use addEventListener and Conditional Logic
        • 4. Add Dynamic CSS Classes
        • 5. Save & Restore Your List with localStorage
        • 6 – Turn Your App into a Full To-Do List
      • Python from Zero (Completed)
        • 2. Lists & Loops
        • 3. Conditional Menus
        • 4. Edit & Remove Tasks (with closing: Python vs PHP and Large Data)
        • 5 – Save to File: Make Your Tasks Survive Restarts
        • 6 β€” Pythin from zero – Final Project Polishing: Numbering, Formatting, and Preparing for CSV
      • Rust – From Zero to β€œWoW” (Completed)
        • 1 – Setup and Project Structure in Rust
        • 2 – User input: validation and error handling
        • 3 – Rust from Zero to β€œWoW – BMI Calculation and Conditional Logic
        • 4 –Rust – Clear, Formatted Output
        • 5 – Rust – Final Thoughts: Precision as a Form of Respect
      • Go from Zero to β€œWoW” (Completed)
        • 1 – Why Go Is Perfect for a Personal Expense Tracker
        • 2 – Logging Expenses and Console Input
        • 3 – Go from Zero to β€œWoW” – Smart Filtering & Display Logic
        • 4 – Go – Saving Data to Local Files
        • 5 – Go – Final Project – Expense Tracker in Go
      • C++ from Zero to β€œWoW” (Completed)
        • 1 – Why C++ for file organization?
        • 2 – C++ – File Type Detection and Classification
        • 3 – C++ – Creating & Managing Subfolders
        • 4 – C++ – Safe File Movement and User Feedback
        • 5 – C++ – Order as Mental Clarity
      • Ubuntu – From Zero to β€œWoW” (Completed)
        • 2 – Ubuntu – The Desktop Environment and Essential Commands
        • 3 – Ubuntu – Managing Files, Folders, and Permissions
        • 4 – Ubuntu – Installing and Updating Software with APT and Snap
        • 5 – Ubuntu – Customizing the Desktop Environment
        • 6 – Ubuntu – Network and Device Configuration
        • 7 – Ubuntu – User Management & System Security β€” β€œThe Cathedral of Permissions”
        • 8 – Ubuntu – The Talking Machine: Terminal & Bash Scripting
        • 9 – Ubuntu – Ubuntu as a Server or Development Environment
        • 10 – Ubuntu – Backup, Maintenance & Troubleshooting
    • Git Hub Repository
      • Small Biz Ops – S.B.O.
      • Mini ERP – PHP & MySQL
      • CleverCRM (Java, Spring Boot)
      • FraudWatch (Python, FastAPI + scikit-learn)
      • OnboardIQ – Smart Onboarding Portal (Flask + SQLite Demo)
    • ArchPilot
      • 1-Users & Roles, End-to-End (Architecture, Database, and Cross-Framework Code)
      • 2 – Client Registry (CRM) Across Frameworks
      • 3 – Project & Budget Tracker (ERP)
      • 4 – Approval Workflow Engine Multi-step routing, status tracking, escalation paths
      • 5 – Audit Trail & Versioning
    • Small Biz Ops – S.B.O.
  • Vivere in USA
  • P4Y
  • Testi poetici
    • 1 – Sospeso
    • 2 – Il bicchiere di vetro quieto
    • 3 – Quando l’amore inciampa
    • 4 – Ma chi siete davvero?
    • 5 – Above the Thread of Day
    • 6 – The Truth That Doesn’t Exist
    • 7 – All of You, I Miss
    • 8 – The Captain and the Ocean
    • 9 – Between Light and Mist
    • 10 – Il peso delle scelte
  • Contact
  • Admin
This is my space, where experience meets the will to start over.
This is my space, where experience meets the will to start over.

The first step is knowing where you want to go.

Coding – Step 2 – πŸ” Access Project Section

Posted on 6 Giugno 202526 Luglio 2025 By Francesco

In this section of the website, I share practical code examples that help highlight the differences between common web development technologies and structures.

Each example is crafted to be clear, educational, and replicable, so anyone can understand the logic and experiment with the source code directly.


πŸ“Œ Starting with a simple login database

I began with a basic login system using a user database and implemented it in three different ways:

  1. Basic login with plain PHP
    Go to demo Β»
  2. Login using RESTful API
    Go to demo Β»
  3. Login using JavaScript + AJAX
    Go to demo Β»

πŸ” Code Snapshots & Key Differences

1. βœ… Plain PHP (Basic)

The form sends the data directly to the PHP file that processes login and redirects:

<?php
require_once('../config/config.php');

$username = $_POST['username'] ?? '';
$password = md5($_POST['password'] ?? '');

$stmt = $pdo->prepare("SELECT * FROM utenti WHERE username = ? AND password = ?");
$stmt->execute([$username, $password]);

if ($stmt->fetch()) {
    header("Location: welcome.php");
} else {
    header("Location: error.php");
}
?>
  • βœ… Simple
  • ❌ Reloads the page
  • ❌ Not reusable for other apps

2. 🌐 REST API (PHP Endpoint)

Here the logic is separated into a clean backend API:

<?php
require_once('../config/config.php');
header('Content-Type: application/json');

$username = $_POST['username'] ?? '';
$password = md5($_POST['password'] ?? '');

$stmt = $pdo->prepare("SELECT * FROM utenti WHERE username = ? AND password = ?");
$stmt->execute([$username, $password]);
$user = $stmt->fetch();

echo json_encode(['success' => (bool) $user]);
?>

Frontend can use this with mobile apps or frontend frameworks.

  • βœ… Clean separation of logic
  • βœ… Reusable in other platforms
  • ❌ Requires understanding of APIs and response formats

3. 🧠 JavaScript + AJAX

Login is handled via fetch, without reloading the page:

fetch('check.php', {
    method: 'POST',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    body: `username=${encodeURIComponent(username)}&password=${encodeURIComponent(password)}`
})
.then(res => res.json())
.then(data => {
    if (data.success) {
        window.location.href = 'welcome.html';
    } else {
        document.getElementById('message').textContent = 'Invalid credentials';
    }
});
  • βœ… Modern and smooth UX
  • βœ… No full-page reload
  • ❌ Needs JS + server coordination

βš–οΈ Summary: Which one to choose?

GoalBest Option
Simplicity and speedPlain PHP
API reuse or external appsREST API
Smooth and modern user flowJavaScript + AJAX

In the next steps, I will cover more advanced topics like:

  • Secure user registration
  • Password reset flows
  • Login using tokens (JWT)
  • Full-stack integration examples

Do you want me to now convert this into an actual WordPress page layout using <div> and blocks, or leave it as raw text for your editor?

Post Views: 296

Condividi:

  • Condividi su Facebook (Si apre in una nuova finestra) Facebook
  • Condividi su X (Si apre in una nuova finestra) X
Coding

Navigazione articoli

Previous post
Next post

Francesco

My name is Francesco Boschi, originally from Italy and currently based in the United States. For over twenty years, I’ve worked as a manager and consultant across diverse sectors β€” from education and cultural institutions to the food industry β€” developing skills in operational management, strategic consulting, and complex problem-solving. In recent years, I’ve combined this experience with a strong passion for software development, creating custom tools designed to simplify workflows and meet real business needs.

Relocating to the U.S. marks the beginning of a new chapter: a personal and professional decision driven by the desire to be close to my son and to embrace new challenges in a different environment. Today, my goal is to turn my experience into meaningful solutions, blending strategic vision with technical expertise to help people and organizations work more effectively.

I enjoy moving between different worlds, adapting tools and approaches to people and contexts. I bring leadership, flexibility, attention to detail, analytical thinking, and a strong problem-solving mindset β€” along with a deep curiosity to learn and grow. Above all, I believe in sharing: I’m always eager to offer my experience to support the growth of others.

Related Posts

Coding

Coding – Step 13.5 – C++ – Order as Mental Clarity

Posted on 18 Ottobre 202518 Ottobre 2025

C++ file organizer that categorizes files by extension, moves them into folders, and provides clear feedback.

Condividi:

  • Condividi su Facebook (Si apre in una nuova finestra) Facebook
  • Condividi su X (Si apre in una nuova finestra) X
Read More
Coding

Coding – Step 14.8 – Ubuntu – The Talking Machine: Terminal & Bash Scripting

Posted on 29 Ottobre 202529 Ottobre 2025

Meet the real voice of Ubuntu β€” the terminal. Learn to write simple yet powerful Bash scripts that greet you, monitor your system, and automate your daily tasks from scratch to β€œWoW.”

Condividi:

  • Condividi su Facebook (Si apre in una nuova finestra) Facebook
  • Condividi su X (Si apre in una nuova finestra) X
Read More
Coding

Coding – Step 8 – The Most Popular Programming Languages: Different Tools, One Common Logic

Posted on 14 Luglio 202526 Luglio 2025

When people talk about coding, the conversation often starts with: β€œWhat’s the best language?” Is it JavaScript or Python? PHP or Java?In reality, the better question is: What kind of project do I want to build, and which tool fits that purpose best? The 5 Most Used Programming Languages in…

Condividi:

  • Condividi su Facebook (Si apre in una nuova finestra) Facebook
  • Condividi su X (Si apre in una nuova finestra) X
Read More

Iscriviti alla nostra Newsletter

🀞 Let's keep in touch

We do not send spam! Read ourΒ Privacy policyΒ for more information.

Controlla la tua casella di posta o la cartella spam per confermare la tua iscrizione

Cerca nel sito

©2026 This is my space, where experience meets the will to start over. | WordPress Theme by SuperbThemes