Contact Form php


#1

Hello I need php code, to finish this code…


<!-- Contact Form Start -->
									<form method="post" id="contact_form" action="contact.php">
										<input type="text" id="contact_name" name="name" class="form-control contact_input_box wow fadeInUp" placeholder="Име" required/>
										<input type="email" id="contact_email" name="email" class="form-control contact_input_box wow fadeInUp" placeholder="E-mail" required/>
										<textarea id="contact_text" name="message" rows="5" cols="30" class="form-control contact_input_box wow fadeInUp" placeholder="Напишете вашето съобщение към нас!!!" required></textarea>
										<button type="submit" class="btn btn-primary contact_button wow fadeInUp"> <i class="fa fa-send-o"></i>  Изпрати</button>
									</form>
								<!-- Contact Form End -->
								</div>
							</div>
					</div>
				</div>
			</div>
			</div>	
		</div>	
	</section>

Ajax Submiting


<script>
[b]	/* ==============================================
	Ajax Submiting For Email Subscriber Form.
	=====================================================================*/	[/b]
	$("#subscriber_form").submit(function(e)
	{
	$('#show_subscriber_msg').html('<div class=gen>Submiting..</div>');
	var subscriberemail = $('#subscriberemail').val();
		var formURL = $(this).attr("action");
		var data = {
					subscriberemail:subscriberemail
				   }
		$.ajax(
		{
			url : formURL,
			type: "POST",
			data : data,
			
		 success: function (res) {
								 if(res=='1'){
									$('#show_subscriber_msg').html('<div class=gen>Thank you very much, We will notify you when we lunch</div>');
								 }
					
								 if(res=='5'){
								 $('#show_subscriber_msg').html('<div class=err>Please enter a valid email address</div>');
								 }
							}
		});
		e.preventDefault();	//STOP default action
	});
[b]	/* ==============================================
	Ajax Submiting For Email Contact Form.
	=====================================================================*/	[/b]
	$("#contact_form").submit(function(e)
	{
	$('#show_contact_msg').html('<div class=gen>Submiting..</div>');
	var username = $('#contact_name').val();
	var useremail = $('#contact_email').val();
	var commenttext = $('#contact_text').val();
		var formURL = $(this).attr("action");
		var data = {
					username:username,
					useremail:useremail,
					commenttext:commenttext,
				   }
		$.ajax(
		{
			url : formURL,
			type: "POST",
			data : data,
			
		 success: function (res) {
								 if(res=='1'){
									$('#show_contact_msg').html('<div class=gen>Thank you very much, We will notify you when we lunch</div>');
								 }
					
								 if(res=='5'){
								 $('#show_contact_msg').html('<div class=err>Please enter a valid email address</div>');
								 }
							}
		});
		e.preventDefault();	//STOP default action
	});
	</script>

thanks in advance!!!


#2

This forum is for help with PHP code, if you want someone to do the actual coding for you this might be better suited moved to the freelancer section


#3

If someone can move to not let new topic there !!!


#4

Any ideas for php code :?


#5

[member=72631]stepinsolutions[/member] , I don’t really like spam. So, I am going to trim your post.


#6

He is a repeat offender. I deleted it.