I have been working on this form for 2 days now, each day I get one step further. Now I am stumped with this message:
Parse error: parse error in /home/radiode/public_html/phpform/forms/process.php on line 78
and an additional quick question is to confirm that audio files should be allowed to upload (mp3, wav, wma)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-02-16
I am also having a parsing error on line 80 (very end of the code...)
Parse error: parse error in /home/wufrzvrb/public_html/phpform/forms/process.php on line 80
Here is my proccess.php code
<?php
include("global.inc.php");
$errors=0;
$error="The following errors occured while processing your form input.<ul>";
pt_register('POST','SierraName');
pt_register('POST','Name');
pt_register('POST','Email');
pt_register('POST','Age');
pt_register('POST','Stateyouracefrom');
pt_register('POST','Howlonghaveyoubeenracing');
pt_register('POST','WhatisyourfavoriteTrackinthegame');
pt_register('POST','haveyoueverbeentoaNASCARrace');
pt_register('POST','WhatisyourFavoritetrackforrealNASCAR');
pt_register('POST','WhatisyourBrandloyalty');
pt_register('POST','WhatisyourracingGoal');
pt_register('POST','Haveyoueverdoneanyrealracing');
pt_register('POST','Explain');
pt_register('POST','IwouldliketorunSundayNightGrandNationalSeries');
pt_register('POST','GrandNationalSeriesPartTimeorFullTime');
pt_register('POST','GrandNational1stnumberchoice');
pt_register('POST','GrandNational2ndnumberchoice');
pt_register('POST','IwouldliketorunWednesdayNightIROCseries');
pt_register('POST','IROCPartTimeorFullTime');
pt_register('POST','IROC1stnumberchoice');
pt_register('POST','IROC2ndnumberchoice');
pt_register('POST','IwouldliketorunThursdayNightCUPseries');
pt_register('POST','CUPPartTimeorFullTime');
pt_register('POST','CUP1stnumberchoice');
pt_register('POST','CUP2ndnumberchoice');
pt_register('POST','IwouldliketorunFridaynightTruckseries');
pt_register('POST','TrucksPartTimeorFullTime');
pt_register('POST','Trucks1stnumberchoice');
pt_register('POST','Trucks2ndnumberchoice');
pt_register('POST','IhavereadtherulesforSimTelracingandagreetofollowthem');
if($SierraName=="" || $Name=="" || $Email=="" || $Age=="" || $Stateyouracefrom=="" || $Howlonghaveyoubeenracing=="" || $WhatisyourfavoriteTrackinthegame=="" || $haveyoueverbeentoaNASCARrace=="" || $WhatisyourFavoritetrackforrealNASCAR=="" || $WhatisyourBrandloyalty=="" || $WhatisyourracingGoal=="" || $Haveyoueverdoneanyrealracing=="" || $IhavereadtherulesforSimTelracingandagreetofollowthem=="" ){
$errors=1;
$error.="<li>You did not enter one or more of the required fields. Please go back and try again.";
}
if($errors==1) echo $error;
else{
$where_form_is="http".($HTTP_SERVER_VARS["HTTPS"]=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr(strrev($PHP_SELF),"/"));
$message="Sierra Name: ".$SierraName."
Name: ".$Name."
Email: ".$Email."
Age: ".$Age."
State you race from: ".$Stateyouracefrom."
How long have you been racing: ".$Howlonghaveyoubeenracing."
What is your favorite Track in the game: ".$WhatisyourfavoriteTrackinthegame."
have you ever been to a NASCAR race: ".$haveyoueverbeentoaNASCARrace."
What is your Favorite track for real NASCAR : ".$WhatisyourFavoritetrackforrealNASCAR."
What is your Brand loyalty: ".$WhatisyourBrandloyalty."
What is your racing Goal: ".$WhatisyourracingGoal."
Have you ever done any real racing: ".$Haveyoueverdoneanyrealracing."
Explain: ".$Explain."
I would like to run Sunday Night Grand National Series: ".$IwouldliketorunSundayNightGrandNationalSeries."
Grand National Series Part Time or Full Time: ".$GrandNationalSeriesPartTimeorFullTime."
Grand National 1st number choice: ".$GrandNational1stnumberchoice."
Grand National 2nd number choice: ".$GrandNational2ndnumberchoice."
I would like to run Wednesday Night IROC series: ".$IwouldliketorunWednesdayNightIROCseries."
IROC Part Time or Full Time: ".$IROCPartTimeorFullTime."
IROC 1st number choice: ".$IROC1stnumberchoice."
IROC 2nd number choice: ".$IROC2ndnumberchoice."
I would like to run Thursday Night CUP series: ".$IwouldliketorunThursdayNightCUPseries."
CUP Part Time or Full Time: ".$CUPPartTimeorFullTime."
CUP 1st number choice: ".$CUP1stnumberchoice."
CUP 2nd number choice: ".$CUP2ndnumberchoice."
I would like to run Friday night Truck series: ".$IwouldliketorunFridaynightTruckseries."
Trucks Part Time or Full Time: ".$TrucksPartTimeorFullTime."
Trucks 1st number choice: ".$Trucks1stnumberchoice."
Trucks 2nd number choice: ".$Trucks2ndnumberchoice."
I have read the rules for SimTel racing and agree to follow them: ".$IhavereadtherulesforSimTelracingandagreetofollowthem."
";
$message = stripslashes($message);
mail("Rwallacefan2@simtelracing.com","Form Submitted at your website",$message,"From: phpFormGenerator");
$link = mysql_connect("localhost","wufrzvrb_SimTel1","sim1tel2");
mysql_select_db("wufrzvrb_nuke",$link);
$query="insert into Season2_apps (sierra,firstname,emailaddress,ageofracer,statefrom,howlong,favtrackgame,realnascarrace,favnascartrack,brand,racinggoal,realracing,explainrealracing,sgn,sgnfulltime,sgn1stchoice,sgn2ndchoice,iroc,irocfulltime,iroc1stchoice,iroc2ndchoice,cup,cupfulltime,cup1stchoice,cup2ndchocie,trucks,trucksfulltime,trucks1stchoice,trucks2ndchoice,readtherules) values ('".$SierraName."','".$Name."','".$Email."','".$Age."','".$Stateyouracefrom."','".$Howlonghaveyoubeenracing."','".$WhatisyourfavoriteTrackinthegame."','".$haveyoueverbeentoaNASCARrace."','".$WhatisyourFavoritetrackforrealNASCAR."','".$WhatisyourBrandloyalty."','".$WhatisyourracingGoal."','".$Haveyoueverdoneanyrealracing."','".$Explain."','".$IwouldliketorunSundayNightGrandNationalSeries."','".$GrandNationalSeriesPartTimeorFullTime."','".$GrandNational1stnumberchoice."','".$GrandNational2ndnumberchoice."','".$IwouldliketorunWednesdayNightIROCseries."','".$IROCPartTimeorFullTime."','".$IROC1stnumberchoice."','".$IROC2ndnumberchoice."','".$IwouldliketorunThursdayNightCUPseries."','".$CUPPartTimeorFullTime."','".$CUP1stnumberchoice."','".$CUP2ndnumberchoice."','".$IwouldliketorunFridaynightTruckseries."','".$TrucksPartTimeorFullTime."','".$Trucks1stnumberchoice."','".$Trucks2ndnumberchoice."','".$IhavereadtherulesforSimTelracingandagreetofollowthem."')";
mysql_query($query);
header("Refresh: 0;url=http://www.simtelracing.com/Thankyou.php");
<?php
)
?>
Any help would be greatly appreciated...also this is version 2.0.6
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have been working on this form for 2 days now, each day I get one step further. Now I am stumped with this message:
Parse error: parse error in /home/radiode/public_html/phpform/forms/process.php on line 78
and an additional quick question is to confirm that audio files should be allowed to upload (mp3, wav, wma)
I am also having a parsing error on line 80 (very end of the code...)
Parse error: parse error in /home/wufrzvrb/public_html/phpform/forms/process.php on line 80
Here is my proccess.php code
<?php
include("global.inc.php");
$errors=0;
$error="The following errors occured while processing your form input.<ul>";
pt_register('POST','SierraName');
pt_register('POST','Name');
pt_register('POST','Email');
pt_register('POST','Age');
pt_register('POST','Stateyouracefrom');
pt_register('POST','Howlonghaveyoubeenracing');
pt_register('POST','WhatisyourfavoriteTrackinthegame');
pt_register('POST','haveyoueverbeentoaNASCARrace');
pt_register('POST','WhatisyourFavoritetrackforrealNASCAR');
pt_register('POST','WhatisyourBrandloyalty');
pt_register('POST','WhatisyourracingGoal');
pt_register('POST','Haveyoueverdoneanyrealracing');
pt_register('POST','Explain');
pt_register('POST','IwouldliketorunSundayNightGrandNationalSeries');
pt_register('POST','GrandNationalSeriesPartTimeorFullTime');
pt_register('POST','GrandNational1stnumberchoice');
pt_register('POST','GrandNational2ndnumberchoice');
pt_register('POST','IwouldliketorunWednesdayNightIROCseries');
pt_register('POST','IROCPartTimeorFullTime');
pt_register('POST','IROC1stnumberchoice');
pt_register('POST','IROC2ndnumberchoice');
pt_register('POST','IwouldliketorunThursdayNightCUPseries');
pt_register('POST','CUPPartTimeorFullTime');
pt_register('POST','CUP1stnumberchoice');
pt_register('POST','CUP2ndnumberchoice');
pt_register('POST','IwouldliketorunFridaynightTruckseries');
pt_register('POST','TrucksPartTimeorFullTime');
pt_register('POST','Trucks1stnumberchoice');
pt_register('POST','Trucks2ndnumberchoice');
pt_register('POST','IhavereadtherulesforSimTelracingandagreetofollowthem');
if($SierraName=="" || $Name=="" || $Email=="" || $Age=="" || $Stateyouracefrom=="" || $Howlonghaveyoubeenracing=="" || $WhatisyourfavoriteTrackinthegame=="" || $haveyoueverbeentoaNASCARrace=="" || $WhatisyourFavoritetrackforrealNASCAR=="" || $WhatisyourBrandloyalty=="" || $WhatisyourracingGoal=="" || $Haveyoueverdoneanyrealracing=="" || $IhavereadtherulesforSimTelracingandagreetofollowthem=="" ){
$errors=1;
$error.="<li>You did not enter one or more of the required fields. Please go back and try again.";
}
if($errors==1) echo $error;
else{
$where_form_is="http".($HTTP_SERVER_VARS["HTTPS"]=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr(strrev($PHP_SELF),"/"));
$message="Sierra Name: ".$SierraName."
Name: ".$Name."
Email: ".$Email."
Age: ".$Age."
State you race from: ".$Stateyouracefrom."
How long have you been racing: ".$Howlonghaveyoubeenracing."
What is your favorite Track in the game: ".$WhatisyourfavoriteTrackinthegame."
have you ever been to a NASCAR race: ".$haveyoueverbeentoaNASCARrace."
What is your Favorite track for real NASCAR : ".$WhatisyourFavoritetrackforrealNASCAR."
What is your Brand loyalty: ".$WhatisyourBrandloyalty."
What is your racing Goal: ".$WhatisyourracingGoal."
Have you ever done any real racing: ".$Haveyoueverdoneanyrealracing."
Explain: ".$Explain."
I would like to run Sunday Night Grand National Series: ".$IwouldliketorunSundayNightGrandNationalSeries."
Grand National Series Part Time or Full Time: ".$GrandNationalSeriesPartTimeorFullTime."
Grand National 1st number choice: ".$GrandNational1stnumberchoice."
Grand National 2nd number choice: ".$GrandNational2ndnumberchoice."
I would like to run Wednesday Night IROC series: ".$IwouldliketorunWednesdayNightIROCseries."
IROC Part Time or Full Time: ".$IROCPartTimeorFullTime."
IROC 1st number choice: ".$IROC1stnumberchoice."
IROC 2nd number choice: ".$IROC2ndnumberchoice."
I would like to run Thursday Night CUP series: ".$IwouldliketorunThursdayNightCUPseries."
CUP Part Time or Full Time: ".$CUPPartTimeorFullTime."
CUP 1st number choice: ".$CUP1stnumberchoice."
CUP 2nd number choice: ".$CUP2ndnumberchoice."
I would like to run Friday night Truck series: ".$IwouldliketorunFridaynightTruckseries."
Trucks Part Time or Full Time: ".$TrucksPartTimeorFullTime."
Trucks 1st number choice: ".$Trucks1stnumberchoice."
Trucks 2nd number choice: ".$Trucks2ndnumberchoice."
I have read the rules for SimTel racing and agree to follow them: ".$IhavereadtherulesforSimTelracingandagreetofollowthem."
";
$message = stripslashes($message);
mail("Rwallacefan2@simtelracing.com","Form Submitted at your website",$message,"From: phpFormGenerator");
$link = mysql_connect("localhost","wufrzvrb_SimTel1","sim1tel2");
mysql_select_db("wufrzvrb_nuke",$link);
$query="insert into Season2_apps (sierra,firstname,emailaddress,ageofracer,statefrom,howlong,favtrackgame,realnascarrace,favnascartrack,brand,racinggoal,realracing,explainrealracing,sgn,sgnfulltime,sgn1stchoice,sgn2ndchoice,iroc,irocfulltime,iroc1stchoice,iroc2ndchoice,cup,cupfulltime,cup1stchoice,cup2ndchocie,trucks,trucksfulltime,trucks1stchoice,trucks2ndchoice,readtherules) values ('".$SierraName."','".$Name."','".$Email."','".$Age."','".$Stateyouracefrom."','".$Howlonghaveyoubeenracing."','".$WhatisyourfavoriteTrackinthegame."','".$haveyoueverbeentoaNASCARrace."','".$WhatisyourFavoritetrackforrealNASCAR."','".$WhatisyourBrandloyalty."','".$WhatisyourracingGoal."','".$Haveyoueverdoneanyrealracing."','".$Explain."','".$IwouldliketorunSundayNightGrandNationalSeries."','".$GrandNationalSeriesPartTimeorFullTime."','".$GrandNational1stnumberchoice."','".$GrandNational2ndnumberchoice."','".$IwouldliketorunWednesdayNightIROCseries."','".$IROCPartTimeorFullTime."','".$IROC1stnumberchoice."','".$IROC2ndnumberchoice."','".$IwouldliketorunThursdayNightCUPseries."','".$CUPPartTimeorFullTime."','".$CUP1stnumberchoice."','".$CUP2ndnumberchoice."','".$IwouldliketorunFridaynightTruckseries."','".$TrucksPartTimeorFullTime."','".$Trucks1stnumberchoice."','".$Trucks2ndnumberchoice."','".$IhavereadtherulesforSimTelracingandagreetofollowthem."')";
mysql_query($query);
header("Refresh: 0;url=http://www.simtelracing.com/Thankyou.php");
<?php
)
?>
Any help would be greatly appreciated...also this is version 2.0.6
I just found out that there is a bug in the latest version. I will fix and update it. Thanks for the bug reports.
Wow, Now that was a quick response, thank you very much Rwallacefan2
SimTel Racing