Email contact-form based in php and html not working - php

I'm creating a website with a template from templateforest. I have an HTML contact form which is integrated at the bottom of the site and it is related with a PHP file for the submit process.
Here you are the code from the HTML part:
<!--contact section start-->
<div class="section section-contact" id="contact">
<div class="container">
<div class="row">
<div class="col-md-12">
<!--tittle start-->
<div class="tittle">
<h1>
<a name="contactar"><span>10</span></a>
Contactar</h1>
<h2>
<span> Si deseas ponerte en contacto conmigo por favor, rellena el siguiente formulario o si lo prefieres utiliza los datos de contacto facilitados al pie de esta página.</span>
</h2>
</div>
<!--tittle end-->
<div class="contact-row">
<form role="form" class="form-horizontal">
<div class="row form-group">
<div class="col-sm-4 col-xs-12">
<input type="text" name="name" placeholder="Name" class="form-control">
</div>
<div class="col-sm-4 col-xs-12">
<input type="text" name="email" placeholder="Email" class="form-control">
</div>
<div class="col-sm-4 col-xs-12">
<input type="text" name="subject" placeholder="Subject" class="form-control">
</div>
</div>
<div class="row form-group">
<div class="col-xs-12">
<textarea name="comments" placeholder="Comments" class="form-control" rows="10" cols="30" id="msg" name=""></textarea>
</div>
</div>
<div class="row form-group text-center">
<div class="col-xs-12">
<button type="submit" id="submit" class="view-btn">Contactar con Patricia</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!--contact section end-->
And this is the code from sendmail.php file:
<?php
// Note: filter_var() requires PHP >= 5.2.0
if ( isset($_POST['name']) && isset($_POST['email']) && isset($_POST['subject']) && isset($_POST['comments']) && filter_var($_POST['email'], FILTER_VALIDATE_EMAIL) ) {
// detect & prevent header injections
$mailTest = "/(content-type|bcc:|cc:|to:)/i";
foreach ( $_POST as $key => $val ) {
if ( preg_match( $mailTest, $val ) ) {
exit;
}
}
$headers = 'From: ' . $_POST["name"] . '<' . $_POST["email"] . '>' . "\r\n" .
'Reply-To: ' . $_POST["email"] . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail( "info#example.com", $_POST['subject'], $_POST['comments'], $headers );
// Replace with your email
}
?>
Obviously I've replaced the "info#example.com" with a valid email... but it didn't work.
I've looking for similar codes but I'm not very good at php so I can't find the solution.
When I push on "submit" button at the site, it just reloads the whole page... and that's all... no error message but also no email sent.
The php version of the server is 5.4.
EDIT AT 13/05/2015:
This is the PHP File code after the changes I've performed as they were sugested:
<?php
//this is to activate error messages
error_reporting(E_ALL);
ini_set('display_errors', 1);
// Note: filter_var() requires PHP >= 5.2.0
if ( isset($_POST['name']) && isset($_POST['email']) && isset($_POST['subject']) && isset($_POST['comments']) && filter_var($_POST['email'], FILTER_VALIDATE_EMAIL) ) {
// detect & prevent header injections
$mailTest = "/(content-type|bcc:|cc:|to:)/i";
foreach ( $_POST as $key => $val ) {
if ( preg_match( $mailTest, $val ) ) {
exit;
}
}
$headers = 'From: ' . $_POST["name"] . '<' . $_POST["email"] . '>' . "\r\n" .
'Reply-To: ' . $_POST["email"] . "\r\n" .
'X-Mailer: PHP/' . phpversion();
if(mail( "info#example.com", $subject, $comment, $headers )){
echo "Mail sent, it's out of your hands now and it did its job.";
}
else{
echo "There was an error, check your logs.";
}
// Replace with your email
}
?>
EDIT 2:
Now the HTML code looks like this:
<!--contact section start-->
<div class="section section-contact" id="contact">
<div class="container">
<div class="row">
<div class="col-md-12">
<!--tittle start-->
<div class="tittle">
<h1>
<a name="contactar"><span>10</span></a>
Contactar</h1>
<h2>
<span> Si deseas ponerte en contacto conmigo por favor, rellena el siguiente formulario o si lo prefieres utiliza los datos de contacto facilitados al pie de esta página.</span>
</h2>
</div>
<!--tittle end-->
<div class="contact-row">
<form role="form" class="form-horizontal" action="sendmail.php">
<div class="row form-group">
<div class="col-sm-4 col-xs-12">
<input type="text" name="name" placeholder="Name" class="form-control">
</div>
<div class="col-sm-4 col-xs-12">
<input type="text" name="email" placeholder="Email" class="form-control">
</div>
<div class="col-sm-4 col-xs-12">
<input type="text" name="subject" placeholder="Subject" class="form-control">
</div>
</div>
<div class="row form-group">
<div class="col-xs-12">
<textarea name="comments" placeholder="Comments" class="form-control" rows="10" cols="30" id="msg" name=""></textarea>
</div>
</div>
<div class="row form-group text-center">
<div class="col-xs-12">
<button type="submit" id="submit" class="view-btn">Contactar con Patricia</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>

Seeing that what you posted for code, am submitting the following and taken from my comments.
Forms default to a GET method if a POST method isn't explicitly used.
You're using POST arrays, so make your form a POST method.
<form method="post" role="form" class="form-horizontal">
^^^^^^^^^^^^^
Unless you've got some JS/Ajax you're not showing us that does have a $.post or POST method in there, you will need to post that, after the fact.
"no error message but also no email sent."
That's because you're not checking for them.
Add error reporting to the top of your file(s) which will help find errors.
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
// rest of your code
Sidenote: Error reporting should only be done in staging, and never production.
Footnotes:
You shouldn't pass POST arrays like this:
mail( "info#example.com", $_POST['subject'], $_POST['comments'], $headers );
You're leaving yourself open to XSS injection.
You should use pre-assigned variables.
$subject = $_POST['subject'];
$comment = $_POST['comments'];
...
mail( "info#example.com", $subject, $comment, $headers );
or
if(mail( "info#example.com", $subject, $comment, $headers )){
echo "Mail sent, it's out of your hands now and it did its job.";
}
else{
echo "There was an error, check your logs.";
}
XSS injection articles:
http://en.wikipedia.org/wiki/Cross-site_scripting
Cross-site Scripting (XSS) - OWASP
Edit:
<?php
//this is to activate error messages
error_reporting(E_ALL);
ini_set('display_errors', 1);
// Note: filter_var() requires PHP >= 5.2.0
if ( isset($_POST['name']) && isset($_POST['email']) && isset($_POST['subject']) && isset($_POST['comments']) && filter_var($_POST['email'], FILTER_VALIDATE_EMAIL) ) {
// detect & prevent header injections
$mailTest = "/(content-type|bcc:|cc:|to:)/i";
foreach ( $_POST as $key => $val ) {
if ( preg_match( $mailTest, $val ) ) {
exit;
}
}
$subject = $_POST['subject'];
$comment = $_POST['comments'];
$headers = 'From: ' . $_POST["name"] . '<' . $_POST["email"] . '>' . "\r\n" .
'Reply-To: ' . $_POST["email"] . "\r\n" .
'X-Mailer: PHP/' . phpversion();
if(mail( "info#example.com", $subject, $comment, $headers )){
echo "Mail sent, it's out of your hands now and it did its job.";
}
else{
echo "There was an error, check your logs.";
}
// Replace with your email
}
?>

Related

PHP How can i include a var in my mail message?

Good Day,
I have a form that saves Name, Email, Subject, Tel Number, Message, and a checkbox.
I m sadly not so good in php at all. Im just started to learn the basics. Thats why i need a little help from you :)
The Form
<form class="contact-form" id="contact" role="form">
<!-- IF MAIL SENT SUCCESSFULLY -->
<h6 class="success">
<span class="olored-text icon_check"></span> Your Message has been send. </h6>
<!-- IF MAIL SENDING UNSUCCESSFULL -->
<h6 class="error">
<span class="colored-text icon_error-circle_alt"></span> Error </h6>
<div class="field-wrapper col-md-6">
<input class="form-control input-box" id="cf-name" type="text" name="cf-name" placeholder="Name*" required>
</div>
<div class="field-wrapper col-md-6">
<input class="form-control input-box" id="cf-email" type="email" name="cf-email" placeholder="E-Mail*" required>
</div>
<div class="field-wrapper col-md-6">
<input class="form-control input-box" id="cf-subject" type="text" name="cf-subject" placeholder="Subject*" required>
</div>
<div class="field-wrapper col-md-6">
<input class="form-control input-box" id="cf-number" type="tel" name="cf-number" placeholder="Number">
</div>
<div class="field-wrapper col-md-12">
<textarea class="form-control textarea-box" id="cf-message" rows="7" name="cf-message" placeholder="Message*" required></textarea>
</div>
<div class="form-check col-md-12">
<input type="checkbox" class="form-check-input" id="Checkdata" required>
<label class="form-check-label" for="Checkdata"> yes to this*</label>
</div>
<div class="col-md-12 ">
<p>*required</p>
</div>
<button class="btn standard-button" type="submit" id="cf-submit" name="submit" data-style="expand-left">Send</button>
</form>
Now i need this information: Name, Subject, Email, Number and if the checkbox was checked. I would like to include the Number and the checkbox info in the message, that will send as a email to me, because the Name, Subject and Email info will go in the email header.
I figured out how i could save all to the header, but im not really sure about how to include something in the message. Do i have to sent a HTML email for that? or can i do it without html?
There goes my php code
<?php
if ( isset($_POST['email']) && isset($_POST['name']) && isset($_POST['subject']) && isset($_POST['number']) && isset($_POST['message']) && filter_var($_POST['email'], FILTER_VALIDATE_EMAIL) ) {
$test = "/(content-type|bcc:|cc:|to:)/i";
foreach ( $_POST as $key => $val ) {
if ( preg_match( $test, $val ) ) {
exit;
}
}
$headers = 'From: ' . $_POST["name"] . '<' . $_POST["email"] . '>' . "\r\n" .
'Reply-To: ' . $_POST["email"] . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail( "hey#example.net", $_POST['subject'], $_POST['message'], $headers );
}
?>
Thank you all for your help.
Your question is not clear but assuming you want to append more text to the message?
You can do something like this:
$more_message = $_POST['name']. "hello, this is more \n";
mail( "hey#example.net", $_POST['subject'], $more_message.$_POST['message'], $headers );
Update based on comment below on additional requirements:
$header_1 = $_POST['subject'] ."\n" .$_POST['name'] ."\n";
$more_message = $_POST['message']. "\n". $_POST['number'] ."\n". $_POST['Checkdata'];
something like this...

PHP Parse Error: Syntax Error; unexpected end of file [duplicate]

This question already has answers here:
PHP parse/syntax errors; and how to solve them
(20 answers)
Closed 7 years ago.
trying to setup the webpage with this PHP. I first got the blank page, then had it display the error(s) which was an internal server error. After a bit of research I saw that it's mostly the code that causes issues. If anyone would be kind enough to look this through for any possible solutions, I'd appreciate it. There is some more html code before this although it does not include any of the PHP.
<?php
$subjectPrefix = 'Site Contact Request';
$emailTo = '***#****.com';
if($_SERVER['REQUEST_METHOD'] == 'POST') {
$name = stripslashes(trim($_POST['form-name']));
$email = stripslashes(trim($_POST['form-email']));
$tel = stripslashes(trim($_POST['form-tel']));
$assunto = stripslashes(trim($_POST['form-assunto']));
$mensagem = stripslashes(trim($_POST['form-mensagem']));
$pattern = '/[\r\n]|Content-Type:|Bcc:|Cc:/i';
if (preg_match($pattern, $name) || preg_match($pattern, $email) || preg_match($pattern, $assunto)) {
die("Header injection detected");
}
$emailIsValid = preg_match('/^[^0-9][A-z0-9._%+-]+([.][A-z0-9_]+)*[#][A-z0-9_]+([.][A-z0-9_]+)*[.][A-z]{2,4}$/', $email);
if($name && $email && $emailIsValid && $assunto && $mensagem){
$subject = "$subjectPrefix";
$body = "Name: $name <br /> Subject: $assunto <br /> Email Address: $email <br /> Telephone Number: $tel <br /> Message: $mensagem";
$headers = 'MIME-Version: 1.1' . PHP_EOL;
$headers .= 'Content-type: text/html; charset=utf-8' . PHP_EOL;
$headers .= "From: $name <$email>" . PHP_EOL;
$headers .= "Return-Path: $emailTo" . PHP_EOL;
$headers .= "Reply-To: $email" . PHP_EOL;
$headers .= "X-Mailer: PHP/". phpversion() . PHP_EOL;
mail($emailTo, $subject, $body, $headers);
$emailSent = true;
} else {
$hasError = true;
}
}
?>
<?php if(isset($emailSent) && $emailSent): ?>
<div class="col-md-6 col-md-offset-3">
<div class="alert alert-success text-center">Your message has been sent.</div>
</div>
<?php else: ?>
<?php if(isset($hasError) && $hasError): ?>
<div class="col-md-5 col-md-offset-4">
<div class="alert alert-danger text-center">An error occurred. Please try later.</div>
</div>
<?php endif; ?>
<form action="<?php echo $_SERVER['REQUEST_URI']; ?>" id="contact-form" class="comment_form" role="form" method="post">
<div class="row-fluid">
<div class="span6">
<input type="text" class="form-control" id="form-name" name="form-name" placeholder="Name" required>
</div>
<div class="span6">
<input type="email" class="form-control" id="form-email" name="form-email" placeholder="Email" required>
</div>
</div>
<div class="row-fluid">
<div class="span6">
<input type="tel" class="form-control" id="form-tel" name="form-tel" placeholder="Telephone (Optional)">
</div>
<div class="span6">
<input type="text" class="form-control" id="form-assunto" name="form-assunto" placeholder="Subject" required>
</div>
</div>
<div class="row-fluid">
<div class="span8">
<textarea id="form-mensagem" name="form-mensagem" placeholder="Message"></textarea>
</div>
<div class="span4">
<button class="btn" type="submit"><i class="li_paperplane"></i>Send message</button>
</div>
</div>
</form>
You are not closing one if condition at starting, please modify it like this:-
<?php if(isset($emailSent) && $emailSent): ?>
<div class="col-md-6 col-md-offset-3">
<div class="alert alert-success text-center">Your message has been sent.</div>
</div>
<?php else: ?>
<?php if(isset($hasError) && $hasError): ?>
<div class="col-md-5 col-md-offset-4">
<div class="alert alert-danger text-center">An error occurred. Please try later.</div>
</div>
<?php endif; ?>
<?php endif; ?> // this is missing and based on your functionality you can move it to anywhere else
Output:- http://prntscr.com/74n8d3
Note:- this is very first html started with if condition. depend on your functionality you need to adjust it whereever you want.

PHP form sends but "No Sender"

I am able to receive email with all the information except for the email address that is entered in the form, and when I receive the email, I get "No Sender" instead of the person's name or email.
This is my HTML:
<!-- Contact Form -->
<div class="col-xs-12 col-sm-8 col-md-8">
<div id="contant-form-bx" class="contant-form-bx">
<div class="contact-loader"></div>
<form action="mail.php" id="contact-form" class="contact-form" name="cform" method="post">
<div class="row">
<div class="col-md-6">
<label for="name" id="name_label">Name</label>
<span class="name-missing">Please enter your name!</span>
<input id="name" type="text" value="" name="name" size="30">
</div>
<div class="col-md-6 columns">
<label for="e-mail" id="email_label">Email</label>
<span class="email-missing">Please enter a valid e-mail!</span>
<input id="e-mail" type="text" value="" name="email" size="30">
</div>
<div class="col-md-12">
<label for="message" id="phone_label">Message</label>
<span class="message-missing">Say something!</span>
<textarea id="message" name="message" rows="7" cols="40"></textarea>
</div>
<div class="col-md-12 text-center">
<input type="submit" name="submit" class="button" id="submit_btn" value="Send Message">
</div>
</div>
</form>
</div>
</div>
This is my PHP:
<?php
// declare our variables
$name = $_POST['name'];
$email = $_POST['e-mail'];
$message = nl2br($_POST['message']);
// set a title for the message
$subject = "From $name via WEB";
$body = "From $name, \n\n$message";
$headers = 'From: '.$email.'' . "\r\n" .
'Reply-To: '.$email.'' . "\r\n" .
'Content-type: text/html; charset=utf-8' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
// put your email address here
mail("info#wziel.com", $subject, $body, $headers);
?>
<!--Display a Thank you message in the callback -->
<div class="mail_response">
<h4>Thank you <?php echo $name ?>!</h4>
<p>I'll be in touch real soon!</p>
</div>
According to your form this:
$email = $_POST['e-mail'];
Should be this:
$email = $_POST['email'];
You have e-mail as the id not the name.
The php looks at name and not id
You're using $_POST['e-mail']. e-mail is the ID of the <input> tag. You should be using $_POST['email'] because name="email".

Ussing reCAPTCHA on HTML5 whit contact-form.php

I have a website Html5 and try adding the reCaptcha still sending messages without activating the reCaptcha and last night I received over 300 messages a boot.
Help me please how to add so that only sent when the button is activated reCaptcha.
Send sends works well but not activation reCaptcha.
To start contact.html within my template I have put this way:
<!-- Start formulario de contacto -->
<div class="row">
<div class="col-md-9">
<h2>Formulario de contacto</h2>
<form action="php/contact-form.php" id="contact-form">
<div class="alert alert-success hidden" id="contact-alert-success">
<strong>Mensaje enviado correctamente!</strong> Muchas gracias, pronto nos pondremos en contacto con usted, normalmente nuestro tiempo de respuesta es inferior a 2 horas.
</div>
<div class="alert alert-danger hidden" id="contact-alert-error">
<strong>Error!</strong> A sucedido un error si lo desea puede contactarnos directamente en XXXX#tize.XXXX
</div>
<div class="row">
<div class="col-md-4">
<div class="form-group">
<label>Nombre <span class="required">*</span></label>
<input type="text"
value=""
data-msg-required="Por favor introduzca su nombre"
class="form-control"
name="name" id="name">
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label>eMail <span class="required">*</span></label>
<input type="email"
value=""
data-msg-required="Por favor introduzca su eMail"
data-msg-email="Por favor introduzca un eMail válido"
class="form-control"
name="email"
id="email">
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label>Asunto <span class="required">*</span></label>
<input type="text"
value=""
data-msg-required="Por favor introduzca el asunto"
class="form-control"
name="subject"
id="subject">
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label>Mensaje <span class="required">*</span></label>
<textarea
data-msg-required="Por favor introduzca su mensaje"
rows="10"
class="form-control"
name="message"
id="message"></textarea>
</div>
</div>
</div>
<!-- Start Google Recaptcha -->
<div class="g-recaptcha" data-sitekey="6Lc88P4SAAAAANiT-ZXILUo-ET4xQmbivHy7uHc8"></div><br>
<!-- End Google Recaptcha -->
<div class="row">
<div class="col-md-12">
<input type="submit" value="Enviar mensaje" class="btn btn-primary" data-loading-text="Cargando...">
</div>
</div>
</form>
</div>
<!-- End formulario de contacto -->
And in php form to send the messages have this post with contact-form.php :
<?php
session_cache_limiter('nocache');
header('Expires: ' . gmdate('r', 0));
header('Content-type: application/json');
// Enter your email address
$to = 'XXXX#tize.XX';
$subject = $_POST['subject'];
if($to) {
$name = $_POST['name'];
$email = $_POST['email'];
$fields = array(
0 => array(
'text' => 'Name',
'val' => $_POST['name']
),
1 => array(
'text' => 'Email address',
'val' => $_POST['email']
),
2 => array(
'text' => 'Message',
'val' => $_POST['message']
)
);
$message = "";
foreach($fields as $field) {
$message .= $field['text'].": " . htmlspecialchars($field['val'], ENT_QUOTES) . "<br>\n";
}
$headers = '';
$headers .= 'From: ' . $name . ' <' . $email . '>' . "\r\n";
$headers .= "Reply-To: " . $email . "\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=UTF-8\r\n";
if (mail($to, $subject, $message, $headers)){
$arrResult = array ('response'=>'success');
} else{
$arrResult = array ('response'=>'error');
}
echo json_encode($arrResult);
} else {
$arrResult = array ('response'=>'error');
echo json_encode($arrResult);
}
?>
Picture of my form, If anyone wants to see my website please let me know and send you the link. Thank you very much.
sending without activating the reCaptcha http://goo.gl/oSLQG9

PHP Form Submits But Does Not Display 1 Value

I have a PHP form that works except for 1 thing and I am going nuts trying to figure out how to make it work. It emails me the results, and everything displays in the email fine except the "Plus1" field is always blank. How can I get the value to display in the submitted email form? Thanks for your help.
You can see it live on http://michyandsmiley.com.
Here is the code for the form:
<div id="rsvp" class="text-center" data-scroll-reveal>
<div class="heading">
<h2>RSVP</h2>
<p><span></span><i class="fa fa-heart"></i><span></span></p>
</div>
<form role="form" name="contactform" action="process.php">
<div class="row">
<div id="name-group" class="form-group col-xs-12">
<label for="inputName">Your Name</label>
<input type="text" class="form-control" id="inputName" name="inputName" placeholder="John Doe">
</div>
</div>
<div class="row">
<div id="email-group" class="form-group col-xs-12">
<label for="inputEmail">Your Email</label>
<input type="email" class="form-control" id="inputEmail" name="inputEmail" placeholder="name#domain.com">
</div>
</div>
<div class="row">
<div id="guests-group" class="form-group col-xs-6">
<label for="selectGuests">Total Guests</label>
<select class="form-control" name="selectGuests" id="selectGuests">
<option value="1" selected>1</option>
<option value="2">2</option>
</select>
</div>
<div id="plusone-group" class="form-group col-xs-6">
<label for="inputPlus1">Guest's Name</label>
<input type="Plus1" class="form-control" id="inputPlus1" name="inputPlus1" placeholder="Jane Doe">
</div>
<div class="row">
<div id="attending-group" class="form-group col-xs-12">
<label for="selectAttending">I am...</label>
<select class="form-control" name="selectAttending" id="selectAttending">
<option value="Attending" selected>So excited to attend! Yay!</option>
<option value="Not Attending">Sorry to miss it. Boo!</option>
</select>
</div>
</div>
<div class="row">
<button type="submit" class="btn btn-lg">Submit Your RSVP!</button>
</div>
</form>
</div>
And for the "process.php" code:
<?php
$send_to = '(removed my email for privacy purposes)';
$errors = array(); // array to hold validation errors
$data = array(); // array to pass back data
// validate the variables ======================================================
// if any of these variables don't exist, add an error to our $errors array
if (empty($_POST['inputName']))
$errors['name'] = 'Name is required.';
if (empty($_POST['inputEmail']))
$errors['email'] = 'Email is required.';
// return a response ===========================================================
// if there are any errors in our errors array, return a success boolean of false
if ( ! empty($errors)) {
// if there are items in our errors array, return those errors
$data['success'] = false;
$data['errors'] = $errors;
} else {
// if there are no errors process our form, then return a message
//If there is no errors, send the email
if( empty($errors) ) {
$subject = 'Wedding RSVP Form';
$headers = 'From: ' . $send_to . "\r\n" .
'Reply-To: ' . $send_to . "\r\n" .
'X-Mailer: PHP/' . phpversion();
$message = 'Name: ' . $_POST['inputName'] . '
Email: ' . $_POST['inputEmail'] . '
Guests: ' . $_POST['selectGuests'] . '
GuestName: ' . $_POST['inputPlus1'] . '
Attending: ' . $_POST['selectAttending'];
$headers = 'From: RSVP Form' . '<' . $send_to . '>' . "\r\n" . 'Reply-To: ' . $_POST['inputEmail'];
mail($send_to, $subject, $message, $headers);
}
// show a message of success and provide a true success variable
$data['success'] = true;
$data['message'] = 'Thank you!';
}
// return all our data to an AJAX call
echo json_encode($data);
You don't have the field in the field list to post to the server:
var formData = {
'inputName' : $('input[name=inputName]').val(),
'inputEmail' : $('input[name=inputEmail]').val(),
'selectGuests' : $('select[name=selectGuests]').val(),
'selectAttending' : $('select[name=selectAttending]').val()
};

Categories