Forum Moderators: coopster

Message Too Old, No Replies

Newbie.I can not find this error can somebody point me in ther right

         

quallytalk

10:44 pm on Nov 22, 2005 (gmt 0)

10+ Year Member



Parse error: syntax error, unexpected T_STRING in C:\Accounts\thequall\wwwRoot\rankingnomination.php on line 2

Here is the script

<?
$First Name = $_REQUEST["First Name"];
$Last Name = $_REQUEST["Last Name"];
$Record = $_REQUEST["Record"];
$Team = $_REQUEST["Team"];
$Class = $_REQUEST["Class"];
$Weight = $_REQUEST["Weight"];
$Sectional Placing = $_REQUEST["Sectional Placing"];
$District Placing = $_REQUEST["District Placing"];
$State Tournament Placing = $_REQUEST["State Tournament Placing"];
$Quality Opponents = $_REQUEST["Quality Opponents"];
$Other Info = $_REQUEST["Other Info"];

mail( "webmaster@example.com", "Ranking Nomination Form",
$Last name, $Record, $Team, $Class, $Weight, $Sectional Placing,
$Distirct Placing, State Tournament Placing, $Quality Opponents, $Other Info "From: $First Name" );
header( "Location: http://www.example.com/thankyou.asp" );
?>

[edited by: coopster at 11:03 pm (utc) on Nov. 22, 2005]
[edit reason] generalized urls and emails per TOS [/edit]

jd01

10:56 pm on Nov 22, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi quallytalk,

Welcome to WebmasterWorld.

Remove the spaces from your variables =)
Use_Underscores_Instead

Justin

quallytalk

11:05 pm on Nov 22, 2005 (gmt 0)

10+ Year Member



<?
$First Name_=_$_REQUEST['First Name'];
$Last Name_=_$_REQUEST['Last Name'];
$Record_=_$_REQUEST['Record'];
$Team_=_$_REQUEST['Team'];
$Class_=_$_REQUEST['Class'];
$Weight_=_$_REQUEST['Weight'];
$Sectional Placing_=_$_REQUEST['Sectional Placing'];
$District Placing_=_$_REQUEST['District Placing'];
$State Tournament Placing_=_$_REQUEST['State Tournament Placing'];
$Quality Opponents_=_$_REQUEST['Quality Opponents'];
$Other Info_=_$_REQUEST['Other Info'];

mail("webmaster@example.com", "Ranking Nomination Form",
$Last name, $Record, $Team, $Class, $Weight, $Sectional Placing,
$Distirct Placing, State Tournament Placing, $Quality Opponents, $Other Info "From: $First Name");
header("Location: http://www.example.com/thankyou.asp");
?>

Justin thanks so it should look like this

[edited by: coopster at 1:21 am (utc) on Nov. 23, 2005]
[edit reason] removed ulr per TOS [webmasterworld.com] [/edit]

jd01

11:08 pm on Nov 22, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No, more like this:

$First_Name = $_REQUEST['First Name'];
OR
$Last_Name=$_REQUEST['Last Name'];

Justin

quallytalk

11:13 pm on Nov 22, 2005 (gmt 0)

10+ Year Member



<?
$First_Name = $_REQUEST['First Name'];
$Last_Name = $_REQUEST['Last Name'];
$Record = $_REQUEST['Record'];
$Team = $_REQUEST['Team'];
$Class = $_REQUEST['Class'];
$Weight = $_REQUEST['Weight'];
$Sectional_Placing = $_REQUEST['Sectional Placing'];
$District_Placing = $_REQUEST['District Placing'];
$State_Tournament_Placing = $_REQUEST['State Tournament Placing'];
$Quality_Opponents = $_REQUEST['Quality Opponents'];
$Other_Info = $_REQUEST['Other Info'];

mail("webmaster@example.com", "Ranking Nomination Form",
$Last name, $Record, $Team, $Class, $Weight, $Sectional Placing,
$Distirct Placing, State Tournament Placing, $Quality Opponents, $Other Info "From: $First Name");
header("Location: http://www.example.com/thankyou.asp");
?>

so like this justin

[edited by: coopster at 1:22 am (utc) on Nov. 23, 2005]
[edit reason] generalized email and url [/edit]

jd01

11:16 pm on Nov 22, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



At a glance, it looks like it should work...

Justin