I keep getting Failed to load resource: the server responded with a status of 404 () here is my code i dont know why but it keeps telling me that it has failed to load resources and everything is in the right file please help me if you can solve this question.

here is my code i dont know why but it keeps telling me that it has failed to load resources and everything is in the right file please help me if you can solve this question.

here is my code i dont know why but it keeps telling me that it has failed to load resources and everything is in the right file please help me if you can solve this question.

<?php

// Read the form values
$success = false;
$successTxt = "";
$senderName = isset( $_POST['name'] ) ? preg_replace( "/[^\.\-\' a-zA-Z0-9]/", "", $_POST['name'] ) : "";
$senderEmail = isset( $_POST['email'] ) ? preg_replace( "/[^\.\-\_\@a-zA-Z0-9]/", "", $_POST['email'] ) : "";
$subject = isset( $_POST['subject'] ) ? preg_replace( "/[^\.\-\' a-zA-Z0-9]/", "", $_POST['subject'] ) : "";
$budget = isset( $_POST['budget'] ) ? preg_replace( "/^[A-Za-z0-9\\-\\.]+$/", "", $_POST['budget'] ) : "";
$message = isset( $_POST['message'] ) ? preg_replace( "/(From:|To:|BCC:|CC:|Subject:|Content-Type:)/", "", $_POST['message'] ) : "";
$txt = "Client budget: " . $budget . "\n\n"  . $message . "\n\n" . "Regards,\n\n" . $senderName . " | " .$senderEmail;

// If all values exist, send the email
if ( $senderName && $senderEmail && $message ) {
  $mailTo = "email"; // change it to your host mail for example ([email protected]).
  $headers = "From: " . $senderEmail;
  $success = mail( $mailTo, $subject, $txt, $headers );
  $successTxt = "<p class='uk-alert uk-alert-success uk-margin-large-bottom success' data-uk-alert=''>Thanks for contacting us. We will contact you ASAP!</p>";
  echo $successTxt;
}

?>


<div id="pr__contact__form" class="pr__contact__form uk-modal-full" data-uk-modal="">
    <div class="uk-modal-dialog" data-uk-height-viewport="">
        <div class="form-outer">
            <div class="uk-container uk-container-xsmall">
                <div class="form-inner uk-position-relative">
                    <button class="uk-modal-close-full" type="button" data-uk-close="ratio: 2;"><span>Close</span></button>
                    <h2 class="uk-modal-title uk-h1">Let's Talk?</h2>
                    <p>Let’s make something awesome together</p>
                    <form class="pr__contact pr__form" action="includes/sendemail.php">
                        <div class="pr__form__group">
                            <label for="name">Your Name <span class="required">*</span></label>
                            <input class="pr-input" id="name" name="name" type="text" />
                        </div>
                        <div class="pr__form__group">
                            <label for="email">Your Email <span class="required">*</span></label>
                            <input class="pr-input" id="email" name="email" type="text" />
                        </div>
                        <div class="pr__form__group">
                            <label for="subject">Your Subject <span class="required">*</span></label>
                            <input class="pr-input" id="subject" name="subject" type="text" />
                        </div>
                                <!-- <div class="pr__form__group">
                                    <label for="budget">What's your budget range?</label>
                                    <select class="uk-select" id="budget" name="budget">
                                        <option>&nbsp;</option>
                                        <option>Low budget</option>
                                        <option>$1,000 — $2,000</option>
                                        <option>$2,000 — $5,000</option>
                                        <option>$5,000 — $10,000</option>
                                        <option>$10,000+</option>
                                    </select>
                                </div> -->
                                <div class="pr__form__group">
                                    <label for="message">Your message <span class="required">*</span></label>
                                    <textarea class="pr-textarea" id="message" name="message"></textarea>
                                </div>
                                <p class="pr__form__group uk-margin-large">
                                    <button class="uk-button uk-button-large uk-button-primary" type="submit">Send message</button>
                                </p>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>

0 Answers