help@rskworld.in +91 93305 39277
RSK World
  • Home
  • Development
    • Web Development
    • Mobile Apps
    • Software
    • Games
    • Project
  • Technologies
    • Data Science
    • AI Development
    • Cloud Development
    • Blockchain
    • Cyber Security
    • Dev Tools
    • Testing Tools
  • About
  • Contact

Theme Settings

Color Scheme
Display Options
Font Size
100%
Back to Project
RSK World
basic-form
RSK World
basic-form
Basic Form Project - Modern Contact Form with Glassmorphism Design, Dark/Light Themes, Real-time Validation, Auto-save, and Complete Web Development Features
basic-form
  • css
  • js
  • LICENSE1.1 KB
  • README.md2.9 KB
  • RELEASE_NOTES.md1 KB
  • index.html5.9 KB
  • privacy.html3.7 KB
  • submit.php1.2 KB
submit.php
submit.php
Raw Download
Find: Go to:
<?php
/*
 * Created by: Molla Samser & Rima Khatun
 * Website: https://rskworld.in/contact.php
 * Emails: help@rskworld.in, support@rskworld.in
 * Phone: +91 93305 39277
 * Year: 2026
 */

header('Content-Type: application/json');

// Simulate processing delay
sleep(1);

$response = [
    'success' => false,
    'message' => 'Invalid request method.'
];

if ($_SERVER["REQUEST_METHOD"] == "POST") {
    // Collect and sanitize input
    $name = strip_tags(trim($_POST["name"] ?? ''));
    $email = filter_var(trim($_POST["email"] ?? ''), FILTER_SANITIZE_EMAIL);
    $message = strip_tags(trim($_POST["message"] ?? ''));

    // Validation
    if (empty($name) || empty($email) || empty($message)) {
        $response['message'] = 'All fields are required.';
        http_response_code(400);
    } elseif (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
        $response['message'] = 'Invalid email format.';
        http_response_code(400);
    } else {
        // Success
        // Here you would typically send an email or save to database
        $response['success'] = true;
        $response['message'] = 'Message sent successfully! We will contact you soon.';
    }
}

echo json_encode($response);
?>
43 lines•1.2 KB
php

About RSK World

Founded by Molla Samser, with Designer & Tester Rima Khatun, RSK World is your one-stop destination for free programming resources, source code, and development tools.

Founder: Molla Samser
Designer & Tester: Rima Khatun

Development

  • Game Development
  • Web Development
  • Mobile Development
  • AI Development
  • Development Tools

Legal

  • Terms & Conditions
  • Privacy Policy
  • Disclaimer

Contact Info

Nutanhat, Mongolkote
Purba Burdwan, West Bengal
India, 713147

+91 93305 39277

hello@rskworld.in
support@rskworld.in

© 2026 RSK World. All rights reserved.

Content used for educational purposes only. View Disclaimer