Hello,
I appologize ahead of time because I have never used php before but my boss needs an example project done for a conference he is presenting at.
I have created a Website where users enter information into a form and when a user press submit the information is suppose to be sent to the companies email address. When i attempt i press submit i am currently receiving the following error:
Parse error: parse error, unexpected ':' in C:\web\Apache2\htdocs\test.php on line 8
My code is:
<?php
$empID = $_REQUEST['empID'] ;
$Password = $_REQUEST['pass'];
$AccountSales = $_REQUEST['acct'];
mail( "example@yahoo.com", "Feedback Form Results", empID: $empID\nPassowrd: $pass\nAccountSales: $acct , "From: example@yahoo.com" );
header( "Location: );
?>
Like i said i have never used PHP before so any help you can provide would be appriciated. I have tried several different methods of submitting the form fields but they give me various errors like:
Parse error: parse error, unexpected T_STRING in C:\web\Apache2\htdocs\test.php on line 8
Thank you
I appologize ahead of time because I have never used php before but my boss needs an example project done for a conference he is presenting at.
I have created a Website where users enter information into a form and when a user press submit the information is suppose to be sent to the companies email address. When i attempt i press submit i am currently receiving the following error:
Parse error: parse error, unexpected ':' in C:\web\Apache2\htdocs\test.php on line 8
My code is:
<?php
$empID = $_REQUEST['empID'] ;
$Password = $_REQUEST['pass'];
$AccountSales = $_REQUEST['acct'];
mail( "example@yahoo.com", "Feedback Form Results", empID: $empID\nPassowrd: $pass\nAccountSales: $acct , "From: example@yahoo.com" );
header( "Location: );
?>
Like i said i have never used PHP before so any help you can provide would be appriciated. I have tried several different methods of submitting the form fields but they give me various errors like:
Parse error: parse error, unexpected T_STRING in C:\web\Apache2\htdocs\test.php on line 8
Thank you