Jump to content

n7dz

Members
  • Posts

    8
  • Joined

  • Last visited

n7dz's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. thanks for the help so far guys
  2. is their any code lines in my html that i dont need or php?
  3. <?php // Check for empty fields if(empty($_POST['name']) || empty($_POST['email']) || empty($_POST['message']) || !filter_var($_POST['email'],FILTER_VALIDATE_EMAIL)) { echo "Thank You and Dont forget to Stop By"; return false; } $name = $_POST['name']; $email_address = $_POST['email']; $phone = $_POST['phone']; $message = $_POST['message']; // Create the email and send the message $to = 'xdz69x@gmail.com'; // Add your email address inbetween the '' replacing yourname@yourdomain.com - This is where the form will send a message to. $email_subject = "Website Contact Form: $name"; $email_body = "You have received a new message from your website contact form.nn"."Here are the details:nnName: $namennEmail: $email_addressnnPhone: $phonennMessage:n$message"; $headers = "From: noreply@yahoo.comn"; // This is the email address the generated message will be from. We recommend using something like noreply@yourdomain.com. $headers .= "Reply-To: $email_address"; mail($to,$email_subject,$email_body,$headers); return true; ?>
  4. i am using bootstrap
  5. Ok so i got a php file running on my site but it doesnt seem to be working. heres a link to where i have a contact form http://www.frostcoding.com/current/index.html also its still a work in progress but if you have any tips on the site let me know but im mainly trying to get the php to work.
  6. well the thing is i dont have the time to learn it.
  7. hey guys i dont know how to code php so i was hoping somone could help me create a php file here is the form that im creating: * * Edit * * i went with a new form a link posted down below. ignore this codeand my request for a php file * * <section id="contact" class="content-section form contact light space"> <div class="container"> <div class="content cover text-center"> <div class="heading"> <h2>Getting in touch</h2> <p>Do you have questions or wanna leave feedback?<br/><br/></p> </div> <div class="row"> <span id="message"></span><!-- remove #message to stop floating jQuery messages --> <form target="#" name="contact"> <div class="col-lg-5 anim fadeInLeft animated" style="visibility: visible;"> <span class="input-group"> <i class="fa fa-user"></i> <input type="text" name="contactName" id="contactName" class="lg" placeholder="Name"> </span><!-- .input-group --> <span class="input-group"> <i class="fa fa-envelope"></i> <input type="text" name="contactEmail" id="contactAddress" class="lg" placeholder="Email Address"> </span><!-- .input-group --> <span class="input-group"> <i class="fa fa-book"></i> <input type="text" name="contactSubject" id="contactSubject" class="lg" placeholder="Subject"> </span><!-- .input-group --> </div><!-- .col-5 --> <div class="col-lg-7 anim fadeInRight animated" style="visibility: visible;"> <span class="input-group"> <textarea name="contactMessage" id="contactMessage" class="lg" placeholder="What's on your mind?"></textarea> </span><!-- .input-group --> <span class="input-group"> <button class="submit" id="submit_contact" data-loading-text="SENDING...">SEND</button> </span><!-- .input-group --> </div> </form> </div> </div><!-- .container --> <span id="message_sent"><i class="fa-check fa"></i></span><!-- jQuery display of giant checkmark --> </section>
×
×
  • Create New...