Click here to Skip to main content
15,886,919 members
Home / Discussions / Web Development
   

Web Development

 
Question[MODIFIED] - ASP.Net MVC - "A data source must be bound before this operation can be performed" Pin
Kevin Marois22-Mar-17 5:47
professionalKevin Marois22-Mar-17 5:47 
AnswerRe: [MODIFIED] - ASP.Net MVC - "A data source must be bound before this operation can be performed" Pin
Richard Deeming22-Mar-17 6:24
mveRichard Deeming22-Mar-17 6:24 
GeneralRe: [MODIFIED] - ASP.Net MVC - "A data source must be bound before this operation can be performed" Pin
Kevin Marois22-Mar-17 6:55
professionalKevin Marois22-Mar-17 6:55 
QuestionMessage Closed Pin
20-Mar-17 1:59
professionalQuuick20-Mar-17 1:59 
QuestionRe: What are 5 essential skills every Web Developer should have? Pin
Nathan Minier21-Mar-17 1:33
professionalNathan Minier21-Mar-17 1:33 
AnswerRe: What are 5 essential skills every Web Developer should have? Pin
ZurdoDev21-Mar-17 1:46
professionalZurdoDev21-Mar-17 1:46 
AnswerRe: What are 5 essential skills every Web Developer should have? Pin
Amarnath S21-Mar-17 1:50
professionalAmarnath S21-Mar-17 1:50 
QuestionHtml Contact form with PHP Pin
lapeci15-Mar-17 3:11
lapeci15-Mar-17 3:11 
Hello Everyone

I need help with html form using php. I have created a form on my web page where customer can fill up the form and with submit button to send to my email the entire data content filled in and to be displayed to my email. When i press the submit button no email is coming, Could someone please help me solve this problem and just for reference i'm new to php technology. I have the php code which i will provide.

PHP
<?php 

if(isset($_POST['submit'])) {
		$full_name=$_POST['full_name'];
		$email=$_POST['email'];
		$telephone=$_POST['telephone'];
		$purposeJourney=$_POST['purposeJourney'];
		$Vehicle-Type=$_POST['Vehicle-Type'];
		$journeyFrom=$_POST['journeyFrom'];
		$startDestinationPostcode=$_POST['startDestinationPostcode'];
		$date=$_POST['date'];
		$Hour-Field[h]=$_POST['Hour-Field[h]'];
		$Minute-Field[m]=$_POST['Minute-Field[m]'];
		$AM_PM-Field[ap]=$_POST['AM_PM-Field[ap]'];
		$journeyTo=$_POST['journeyTo'];
		$endDestinationPostcode=$_POST['endDestinationPostcode'];
		$return=$_POST['return'];
		$return=$_POST['return'];
		$returnJourneyDate=$_POST['returnJourneyDate'];
		$Return-Journey-Time[h]=$_POST['Return-Journey-Time[h]'];
		$Return-Journey-Time[m]=$_POST['Return-Journey-Time[m]'];
		$Return-Journey-Time[ap]=$_POST['Return-Journey-Time[ap]'];
		$message=$_POST['message'];
		/*$success=$_POST['success'];*/

		$to="e_chauffeur@hotmail.com";
		$subject='the subject';
		$message="Name: ".$full_name."\n" "Email: ".$email."\n" .$telephone."\n" .$purposeJourney."\n" .$Vehicle-Type."\n"
				.$journeyFrom."\n" .$startDestinationPostcode."\n" .$date."\n" .$Hour-Field[h]."\n" .$Minute-Field[m]."\n" .$AM_PM-Field[ap]."\n"
				.$journeyTo."\n" .$endDestinationPostcode."\n" .$return."\n" .$return."\n" .$returnJourneyDate."\n"
				.$Return-Journey-Time[h]."\n" .$Return-Journey-Time[m]."\n" .$Return-Journey-Time[ap]. "Wrote the following: "."\n\n" .$message;
		$headers="From: ".$email;

		if(mail($to, $subject, $message, $headers)) {
			echo '<h1>Your message has been send successfully, Thank you' .$full_name.' We will contact you very shortly...</h1>';
			/*echo "<h1></h1>";*/
		}
		else {
			echo '<h3>Something went wrong!</h3>';
		}
	}
?>

AnswerRe: Html Contact form with PHP Pin
Jochen Arndt15-Mar-17 4:39
professionalJochen Arndt15-Mar-17 4:39 
GeneralRe: Html Contact form with PHP Pin
lapeci15-Mar-17 6:21
lapeci15-Mar-17 6:21 
GeneralRe: Html Contact form with PHP Pin
Jochen Arndt15-Mar-17 6:33
professionalJochen Arndt15-Mar-17 6:33 
AnswerRe: Html Contact form with PHP Pin
biplob-hider18-Mar-17 2:26
professionalbiplob-hider18-Mar-17 2:26 
QuestionASP.Net Core Web Config Properites Pin
Member 1061576012-Mar-17 9:54
Member 1061576012-Mar-17 9:54 
AnswerRe: ASP.Net Core Web Config Properites Pin
Kornfeld Eliyahu Peter13-Mar-17 1:14
professionalKornfeld Eliyahu Peter13-Mar-17 1:14 
QuestionPHP WITH BIOMETRIC Pin
Member 117865228-Mar-17 1:31
Member 117865228-Mar-17 1:31 
AnswerRe: PHP WITH BIOMETRIC Pin
ZurdoDev10-Mar-17 6:53
professionalZurdoDev10-Mar-17 6:53 
GeneralRe: PHP WITH BIOMETRIC Pin
Member 1178652210-Mar-17 7:12
Member 1178652210-Mar-17 7:12 
QuestionPHP MYSQL UPDATE ISSUE Pin
Member 117865228-Mar-17 1:29
Member 117865228-Mar-17 1:29 
AnswerRe: PHP MYSQL UPDATE ISSUE Pin
ZurdoDev10-Mar-17 6:54
professionalZurdoDev10-Mar-17 6:54 
QuestionMake up of a single web with react Pin
Orlando.Net1-Mar-17 8:29
Orlando.Net1-Mar-17 8:29 
AnswerRe: Make up of a single web with react Pin
Nathan Minier2-Mar-17 2:32
professionalNathan Minier2-Mar-17 2:32 
QuestionRe: Make up of a single web with react Pin
ZurdoDev10-Mar-17 6:55
professionalZurdoDev10-Mar-17 6:55 
QuestionJavaScript - Help Me Understand Pin
Kevin Marois28-Feb-17 7:54
professionalKevin Marois28-Feb-17 7:54 
AnswerRe: JavaScript - Help Me Understand Pin
Nathan Minier28-Feb-17 9:38
professionalNathan Minier28-Feb-17 9:38 
GeneralRe: JavaScript - Help Me Understand Pin
Kevin Marois28-Feb-17 10:45
professionalKevin Marois28-Feb-17 10:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.