Davecachia Posted August 18, 2008 Share Posted August 18, 2008 Hey guys. So i've mutilated my HTML form and merged into my PHP page.. i've got so many problems I do not even know where to start. I did what you guys suggested with the $showform bool, and started some sort of validations.. but I have a feeling alot of my stuff is not lining up and i've lost track of where the HTML Starts/Ends. I know there are probably tons of mistakes here.. if someone could take a look it would be great. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Survey</title> </head> <body> <?php echo "Impact of Training Form: ";// READ IN DATA FROM HTML FORM ?> <?php if(!isset($_POST['process_form'])) { //Submit not pressed, show form! $showForm = true; } else { //Submit has been pressed. $showForm = false; //We'll default it at false if they submitted form. $error = false; //No errors yet if( isset( $_POST['process_form'] ) ) { $CompanyName = $_POST['CompanyName']; $IndustryType = $_POST['IndustryType']; $CompanySize = $_POST['CompanySize']; $ClassRoomTraining = $_POST['ClassRoomTraining']; $ClassRoomOrientation = $_POST['ClassRoomOrientation']; $ClassRoomManagerialOrSupervisoryTraining = $_POST['ClassRoomManagerialOrSupervisoryTraining']; $ClassRoomApprenticeshipTraining = $_POST['ClassRoomApprenticeshipTraining']; $ClassroomComputerHardware = $_POST['ClassRoomComputerHardware']; $ClassroomComputerSoftware = $_POST['ClassRoomComputerSoftware']; $ClassroomOtherOffice = $_POST['ClassRoomOtherOffice']; $ClassroomGroupDecisionMaking = $_POST['ClassRoomGroupDecisionMaking']; $ClassroomTeamBuilding = $_POST['ClassRoomTeamBuilding']; $ClassroomLiteracyOrNumeracy = $_POST['ClassRoomLiteracyOrNumeracy']; $TotalTrainingExpenditure = $_POST['TotalTrainingExpenditure']; $TrainersSalary =$_POST['TrainersSalary']; $TraineesSalary =$_POST['TraineesSalary']; $ContractsToVendors = $_POST['ContractsToVendors']; $DirectTuition = $_POST['DirectTuition']; $TrainingMaterials = $_POST['TrainingMaterials']; $TravelOrLivingCosts = $_POST['TravelorLivingCosts']; $Overhead = $_POST['Overhead']; $Other = $_POST['Other']; $WorkPlaceOrientation = $_POST['WorkPlaceOrientation']; $WorkPlaceManagerialOrSupervisoryTraining = $_POST['WorkPlaceManagerialOrSupervisoryTraining']; $WorkPlaceApprenticeshipTraining = $_POST['WorkPlaceApprenticeshipTraining']; $WorkPlaceComputerHardware = $_POST['WorkPlaceComputerHardwar']; $WorkPlaceComputerSoftware = $_POST['WorkPlaceComputerSoftware']; $WorkPlaceOtherOffice = $_POST ['WorkPlaceOtherOffice']; $WorkPlaceGroupDecisionMaking = $_POST ['WorkPlaceGroupDecisionMaking']; $WorkPlaceTeamBuilding = $_POST ['WorkPlaceTeamBuilding']; $WorkPlaceLiteracyOrNumeracy =$_POST['WorkPlaceLiteracyOrNumeracy']; $TotalAmountEmployees = $_POST ['TotalAmountEmployees']; /// Finished Here } } ?> <?php if($showForm) { <html> <form id="Survey" name="Survey" method="post" action="survey.php" form> <p>Please enter your company name: </p><p><label><font color="#ff0000">"*" Denotes a required answer</font></label></p> <p><label><strong><font color="#000000">Please enter your company name:</font></strong></label></p> <p><label><font color="#ff0000">* </font>1. Company Name: <input name="CompanyName" /> </label></p> <p><strong>Please select your industry type:</strong></p><label><font color="#ff0000">* </font>Industry Type <select name="IndustryType"> <option value="1" selected="selected">Select Industry..</option> <option value="2">Forestry, Mining, Oil, and Gas extraction</option> <option value="3">Finance and Insurance</option> <option value="4">Real estate, rental, and leasing ops</option> <option value="5">Business services</option> <option value="6">Education and health services</option> <option value="7">Information and cultural services</option> <option value="8">Labour intensive tertiary manufacturing</option> <option value="9">Primary product manufacturing</option> <option value="10">Secondary product manufacturing</option> <option value="11">Capital intensive tertiary manufacturing</option> <option value="14">Construction</option> <option value="15">Transportation, warehousing, wholesale</option> <option value="16">Communication and utilities</option> <option value="17">Retail trade and consumer services</option> <option value="18">None of the above</option></select> </label> <p><strong> </strong><font color="#ff0000">*</font><strong>Please select your company size: </strong></p><label><input type="radio" value="1" name="CompanySize" /> Small (less than 50 employees) </label> <p><label><input type="radio" value="2" name="CompanySize" /> Medium (between 50 and 250 employees) </label></p> <p><label><input type="radio" value="3" name="CompanySize" /> Large (greater than 250) </label><br /> </p> <p align="left"><strong>Class Room Training </strong></p> <p align="left">If your organization participated in Class Room Training, please indicate so by clicking the appropriate radio button. </p><label>Class Room Training</label> <input type="radio" value="1" name="ClassRoomTraining" /> <label>No Class Room Training</label> <input type="radio" value="2" name="ClassRoomTraining" /> <p><strong>Go to Question 2</strong></p> <p><strong>Your organization participates in Class Room Training. Please select those that apply: </strong></p><label><input type="checkbox" value="1" name="ClassRoomOrientation" /> Orientation for new Employees </label> <p><label><input type="checkbox" value="1" name="ClassRoomManagerialOrSupervisoryTraining" /> Managerial or Supervisory Training </label></p> <p><label><input type="checkbox" value="1" name="ClassRoomApprenticeshipTraining" /> Apprenticeship Training</label> </p> <p><label><input type="checkbox" value="1" name="ClassRoomComputerHardware" /> Computer Hardware </label></p> <p><label><input type="checkbox" value="1" name="ClassRoomComputerSoftware" /> Computer Software</label> </p> <p><label><input type="checkbox" value="1" name="ClassRoomOtherOffice" /> Other office and non-office equipment </label></p> <p><label><input type="checkbox" value="1" name="ClassRoomGroupDecisionMaking" /> Group decision-making or problem solving </label></p> <p><label><input type="checkbox" value="1" name="ClassRoomTeamBuilding" /> Team-building, leadership, communication</label> </p> <p><label><input type="checkbox" value="1" name="ClassRoomLiteracyOrNumeracy" /> Literacy or Numeracy </label></p> <p><strong>Please estimate the workplaces total training expenditure (in Dollars)</strong></p> <p><label>$ <input id="TotalTrainingExpenditure" name="TotalTrainingExpenditure" /> </label></p> <p><strong>Which of the following are included in the estimate?</strong></p> <p><label><input type="checkbox" value="1" name="TrainersSalary" /> Trainers' Salaries </label></p> <p><label><input type="checkbox" value="1" name="TraineesSalary" /> Trainees' Salaries </label></p> <p><label><input type="checkbox" value="1" name="ContractsToVendors" /> Contracts to vendors </label></p> <p><label><input type="checkbox" value="1" name="DirectTuition" /> Direct Tuition to schools or training institutions </label></p> <p><label><input type="checkbox" value="1" name="TrainingMaterials" /> Training materials </label></p> <p><label><input type="checkbox" value="1" name="TravelOrLivingCosts" /> Travel or living costs for trainees and trainers </label></p> <p><label><input type="checkbox" value="1" name="Overhead" /> Overhead or Office costs for training </label></p> <p><label><input type="checkbox" value="1" name="OtherTraining" /> Other training expenses </label></p> <p align="left"><strong>Work Place Training</strong></p> <p align="left">If your organization participated in Work Place Training, please indicate so by clicking the appropriate radio button. </p><label>Work Place Training </label><input type="radio" value="1" name="WorkPlaceTraining" /> <label>No Work Place Training</label> <input type="radio" value="2" name="WorkPlaceTraining" /> <br /> <p><strong>Your organization participates in Work Place Training. Please select those that apply:</strong></p><br /> <input type="checkbox" value="1" name="WorkPlaceOrientation" /> Orientation for new Employees </label> <p><label><input type="checkbox" value="1" name="WorkPlaceManagerialOrSupervisoryTraining" /> Managerial or Supervisory Training </label></p> <p><label><input type="checkbox" value="1" name="WorkPlaceApprenticeshipTraining" /> Apprenticeship Training </label></p> <p><label><input type="checkbox" value="1" name="WorkPlaceComputerHardware" /> Computer Hardware </label></p> <p><label><input type="checkbox" value="1" name="WorkPlaceComputerSoftware" /> Computer Software </label></p> <p><label><input type="checkbox" value="1" name="WorkPlaceOtherOffice" /> Other Office and non-office equipment </label></p> <p><label><input type="checkbox" value="1" name="WorkPlaceGroupDecisionMaking" /> Group Decision Making or Problem Solving </label></p> <p><label><input type="checkbox" value="1" name="WorkPlaceTeamBuilding" /> Team-building, leadership, communication </label></p> <p><label><input type="checkbox" value="1" name="WorkPlaceLiteracyOrNumeracy" /> Literacy or Numeracy </label></p> <p> </p> <p><strong>Please estimate the amount of employees that have had workplace training between April of last year and March of this year: </strong></p> <p><label><input id="TotalAmountEmployees" name="TotalAmountEmployees" /> </label></p><input type="submit" value="Submit the Form" name="process_form" /> <p> </p> <p> </p> </form> </html> } ?> </body> Quote Link to comment https://forums.phpfreaks.com/topic/120187-php-validation-part-2/ Share on other sites More sharing options...
revraz Posted August 18, 2008 Share Posted August 18, 2008 Well, you need to provide some info on the problems. Quote Link to comment https://forums.phpfreaks.com/topic/120187-php-validation-part-2/#findComment-619151 Share on other sites More sharing options...
Davecachia Posted August 18, 2008 Author Share Posted August 18, 2008 Parse error: syntax error, unexpected '<' in /home2/dcncs/public_html/survey.php on line 76 I think it has to do something with the <html> and </html> in the form near the bottom - i've played around with the syntax and haven't got far. How's the if statements look? Quote Link to comment https://forums.phpfreaks.com/topic/120187-php-validation-part-2/#findComment-619153 Share on other sites More sharing options...
revraz Posted August 18, 2008 Share Posted August 18, 2008 You forgot your echo " before the HTML code. Quote Link to comment https://forums.phpfreaks.com/topic/120187-php-validation-part-2/#findComment-619155 Share on other sites More sharing options...
Davecachia Posted August 19, 2008 Author Share Posted August 19, 2008 You forgot your echo " before the HTML code. Where does the echo go? and where would I put the " ; " Also, I am getting internal error 500 now. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Survey</title> </head> <body> <?php echo "Impact of Training Form: ";// READ IN DATA FROM HTML FORM ?> <?php if(!isset($_POST['process_form'])) { //Submit not pressed, show form! $showForm = true; } else { //Submit has been pressed. $showForm = false; //We'll default it at false if they submitted form. $error = false; //No errors yet if( isset( $_POST['process_form'] ) ) { $CompanyName = $_POST['CompanyName']; $IndustryType = $_POST['IndustryType']; $CompanySize = $_POST['CompanySize']; $ClassRoomTraining = $_POST['ClassRoomTraining']; $ClassRoomOrientation = $_POST['ClassRoomOrientation']; $ClassRoomManagerialOrSupervisoryTraining = $_POST['ClassRoomManagerialOrSupervisoryTraining']; $ClassRoomApprenticeshipTraining = $_POST['ClassRoomApprenticeshipTraining']; $ClassroomComputerHardware = $_POST['ClassRoomComputerHardware']; $ClassroomComputerSoftware = $_POST['ClassRoomComputerSoftware']; $ClassroomOtherOffice = $_POST['ClassRoomOtherOffice']; $ClassroomGroupDecisionMaking = $_POST['ClassRoomGroupDecisionMaking']; $ClassroomTeamBuilding = $_POST['ClassRoomTeamBuilding']; $ClassroomLiteracyOrNumeracy = $_POST['ClassRoomLiteracyOrNumeracy']; $TotalTrainingExpenditure = $_POST['TotalTrainingExpenditure']; $TrainersSalary =$_POST['TrainersSalary']; $TraineesSalary =$_POST['TraineesSalary']; $ContractsToVendors = $_POST['ContractsToVendors']; $DirectTuition = $_POST['DirectTuition']; $TrainingMaterials = $_POST['TrainingMaterials']; $TravelOrLivingCosts = $_POST['TravelorLivingCosts']; $Overhead = $_POST['Overhead']; $Other = $_POST['Other']; $WorkPlaceOrientation = $_POST['WorkPlaceOrientation']; $WorkPlaceManagerialOrSupervisoryTraining = $_POST['WorkPlaceManagerialOrSupervisoryTraining']; $WorkPlaceApprenticeshipTraining = $_POST['WorkPlaceApprenticeshipTraining']; $WorkPlaceComputerHardware = $_POST['WorkPlaceComputerHardwar']; $WorkPlaceComputerSoftware = $_POST['WorkPlaceComputerSoftware']; $WorkPlaceOtherOffice = $_POST ['WorkPlaceOtherOffice']; $WorkPlaceGroupDecisionMaking = $_POST ['WorkPlaceGroupDecisionMaking']; $WorkPlaceTeamBuilding = $_POST ['WorkPlaceTeamBuilding']; $WorkPlaceLiteracyOrNumeracy =$_POST['WorkPlaceLiteracyOrNumeracy']; $TotalAmountEmployees = $_POST ['TotalAmountEmployees']; /// Finished Here } } ?> <?php if($showForm) { <html> <form id="Survey" name="Survey" method="post" action="survey.php" form> <p>Please enter your company name: </p><p><label><font color="#ff0000">"*" Denotes a required answer</font></label></p> <p><label><strong><font color="#000000">Please enter your company name:</font></strong></label></p> <p><label><font color="#ff0000">* </font>1. Company Name: <input name="CompanyName" /> </label></p> <p><strong>Please select your industry type:</strong></p><label><font color="#ff0000">* </font>Industry Type <select name="IndustryType"> <option value="1" selected="selected">Select Industry..</option> <option value="2">Forestry, Mining, Oil, and Gas extraction</option> <option value="3">Finance and Insurance</option> <option value="4">Real estate, rental, and leasing ops</option> <option value="5">Business services</option> <option value="6">Education and health services</option> <option value="7">Information and cultural services</option> <option value="8">Labour intensive tertiary manufacturing</option> <option value="9">Primary product manufacturing</option> <option value="10">Secondary product manufacturing</option> <option value="11">Capital intensive tertiary manufacturing</option> <option value="14">Construction</option> <option value="15">Transportation, warehousing, wholesale</option> <option value="16">Communication and utilities</option> <option value="17">Retail trade and consumer services</option> <option value="18">None of the above</option></select> </label> <p><strong> </strong><font color="#ff0000">*</font><strong>Please select your company size: </strong></p><label><input type="radio" value="1" name="CompanySize" /> Small (less than 50 employees) </label> <p><label><input type="radio" value="2" name="CompanySize" /> Medium (between 50 and 250 employees) </label></p> <p><label><input type="radio" value="3" name="CompanySize" /> Large (greater than 250) </label><br /> </p> <p align="left"><strong>Class Room Training </strong></p> <p align="left">If your organization participated in Class Room Training, please indicate so by clicking the appropriate radio button. </p><label>Class Room Training</label> <input type="radio" value="1" name="ClassRoomTraining" /> <label>No Class Room Training</label> <input type="radio" value="2" name="ClassRoomTraining" /> <p><strong>Go to Question 2</strong></p> <p><strong>Your organization participates in Class Room Training. Please select those that apply: </strong></p><label><input type="checkbox" value="1" name="ClassRoomOrientation" /> Orientation for new Employees </label> <p><label><input type="checkbox" value="1" name="ClassRoomManagerialOrSupervisoryTraining" /> Managerial or Supervisory Training </label></p> <p><label><input type="checkbox" value="1" name="ClassRoomApprenticeshipTraining" /> Apprenticeship Training</label> </p> <p><label><input type="checkbox" value="1" name="ClassRoomComputerHardware" /> Computer Hardware </label></p> <p><label><input type="checkbox" value="1" name="ClassRoomComputerSoftware" /> Computer Software</label> </p> <p><label><input type="checkbox" value="1" name="ClassRoomOtherOffice" /> Other office and non-office equipment </label></p> <p><label><input type="checkbox" value="1" name="ClassRoomGroupDecisionMaking" /> Group decision-making or problem solving </label></p> <p><label><input type="checkbox" value="1" name="ClassRoomTeamBuilding" /> Team-building, leadership, communication</label> </p> <p><label><input type="checkbox" value="1" name="ClassRoomLiteracyOrNumeracy" /> Literacy or Numeracy </label></p> <p><strong>Please estimate the workplaces total training expenditure (in Dollars)</strong></p> <p><label>$ <input id="TotalTrainingExpenditure" name="TotalTrainingExpenditure" /> </label></p> <p><strong>Which of the following are included in the estimate?</strong></p> <p><label><input type="checkbox" value="1" name="TrainersSalary" /> Trainers' Salaries </label></p> <p><label><input type="checkbox" value="1" name="TraineesSalary" /> Trainees' Salaries </label></p> <p><label><input type="checkbox" value="1" name="ContractsToVendors" /> Contracts to vendors </label></p> <p><label><input type="checkbox" value="1" name="DirectTuition" /> Direct Tuition to schools or training institutions </label></p> <p><label><input type="checkbox" value="1" name="TrainingMaterials" /> Training materials </label></p> <p><label><input type="checkbox" value="1" name="TravelOrLivingCosts" /> Travel or living costs for trainees and trainers </label></p> <p><label><input type="checkbox" value="1" name="Overhead" /> Overhead or Office costs for training </label></p> <p><label><input type="checkbox" value="1" name="OtherTraining" /> Other training expenses </label></p> <p align="left"><strong>Work Place Training</strong></p> <p align="left">If your organization participated in Work Place Training, please indicate so by clicking the appropriate radio button. </p><label>Work Place Training </label><input type="radio" value="1" name="WorkPlaceTraining" /> <label>No Work Place Training</label> <input type="radio" value="2" name="WorkPlaceTraining" /> <br /> <p><strong>Your organization participates in Work Place Training. Please select those that apply:</strong></p><br /> <input type="checkbox" value="1" name="WorkPlaceOrientation" /> Orientation for new Employees </label> <p><label><input type="checkbox" value="1" name="WorkPlaceManagerialOrSupervisoryTraining" /> Managerial or Supervisory Training </label></p> <p><label><input type="checkbox" value="1" name="WorkPlaceApprenticeshipTraining" /> Apprenticeship Training </label></p> <p><label><input type="checkbox" value="1" name="WorkPlaceComputerHardware" /> Computer Hardware </label></p> <p><label><input type="checkbox" value="1" name="WorkPlaceComputerSoftware" /> Computer Software </label></p> <p><label><input type="checkbox" value="1" name="WorkPlaceOtherOffice" /> Other Office and non-office equipment </label></p> <p><label><input type="checkbox" value="1" name="WorkPlaceGroupDecisionMaking" /> Group Decision Making or Problem Solving </label></p> <p><label><input type="checkbox" value="1" name="WorkPlaceTeamBuilding" /> Team-building, leadership, communication </label></p> <p><label><input type="checkbox" value="1" name="WorkPlaceLiteracyOrNumeracy" /> Literacy or Numeracy </label></p> <p> </p> <p><strong>Please estimate the amount of employees that have had workplace training between April of last year and March of this year: </strong></p> <p><label><input id="TotalAmountEmployees" name="TotalAmountEmployees" /> </label></p><input type="submit" value="Submit the Form" name="process_form" /> <p> </p> <p> </p> </form> </html> } ?> </body> http://dcncs.net/survey.php Quote Link to comment https://forums.phpfreaks.com/topic/120187-php-validation-part-2/#findComment-620021 Share on other sites More sharing options...
revraz Posted August 19, 2008 Share Posted August 19, 2008 if($showForm) { echo '<html> <form id="Survey" name="Survey" method="post" action="survey.php" form> <p>Please enter your company name: </p><p><label><font color="#ff0000">"*" Denotes a required answer</font></label></p> <p><label><strong><font color="#000000">Please enter your company name:</font></strong></label></p> <p><label><font color="#ff0000">* </font>1. Company Name: <input name="CompanyName" /> </label></p> <p><strong>Please select your industry type:</strong></p><label><font color="#ff0000">* </font>Industry Type <select name="IndustryType"> <option value="1" selected="selected">Select Industry..</option> <option value="2">Forestry, Mining, Oil, and Gas extraction</option> <option value="3">Finance and Insurance</option> <option value="4">Real estate, rental, and leasing ops</option> <option value="5">Business services</option> <option value="6">Education and health services</option> <option value="7">Information and cultural services</option> <option value="8">Labour intensive tertiary manufacturing</option> <option value="9">Primary product manufacturing</option> <option value="10">Secondary product manufacturing</option> <option value="11">Capital intensive tertiary manufacturing</option> <option value="14">Construction</option> <option value="15">Transportation, warehousing, wholesale</option> <option value="16">Communication and utilities</option> <option value="17">Retail trade and consumer services</option> <option value="18">None of the above</option></select> </label> <p><strong> </strong><font color="#ff0000">*</font><strong>Please select your company size: </strong></p><label><input type="radio" value="1" name="CompanySize" /> Small (less than 50 employees) </label> <p><label><input type="radio" value="2" name="CompanySize" /> Medium (between 50 and 250 employees) </label></p> <p><label><input type="radio" value="3" name="CompanySize" /> Large (greater than 250) </label><br /> </p> <p align="left"><strong>Class Room Training </strong></p> <p align="left">If your organization participated in Class Room Training, please indicate so by clicking the appropriate radio button. </p><label>Class Room Training</label> <input type="radio" value="1" name="ClassRoomTraining" /> <label>No Class Room Training</label> <input type="radio" value="2" name="ClassRoomTraining" /> <p><strong>Go to Question 2</strong></p> <p><strong>Your organization participates in Class Room Training. Please select those that apply: </strong></p><label><input type="checkbox" value="1" name="ClassRoomOrientation" /> Orientation for new Employees </label> <p><label><input type="checkbox" value="1" name="ClassRoomManagerialOrSupervisoryTraining" /> Managerial or Supervisory Training </label></p> <p><label><input type="checkbox" value="1" name="ClassRoomApprenticeshipTraining" /> Apprenticeship Training</label> </p> <p><label><input type="checkbox" value="1" name="ClassRoomComputerHardware" /> Computer Hardware </label></p> <p><label><input type="checkbox" value="1" name="ClassRoomComputerSoftware" /> Computer Software</label> </p> <p><label><input type="checkbox" value="1" name="ClassRoomOtherOffice" /> Other office and non-office equipment </label></p> <p><label><input type="checkbox" value="1" name="ClassRoomGroupDecisionMaking" /> Group decision-making or problem solving </label></p> <p><label><input type="checkbox" value="1" name="ClassRoomTeamBuilding" /> Team-building, leadership, communication</label> </p> <p><label><input type="checkbox" value="1" name="ClassRoomLiteracyOrNumeracy" /> Literacy or Numeracy </label></p> <p><strong>Please estimate the workplaces total training expenditure (in Dollars)</strong></p> <p><label>$ <input id="TotalTrainingExpenditure" name="TotalTrainingExpenditure" /> </label></p> <p><strong>Which of the following are included in the estimate?</strong></p> <p><label><input type="checkbox" value="1" name="TrainersSalary" /> Trainers\' Salaries </label></p> <p><label><input type="checkbox" value="1" name="TraineesSalary" /> Trainees\' Salaries </label></p> <p><label><input type="checkbox" value="1" name="ContractsToVendors" /> Contracts to vendors </label></p> <p><label><input type="checkbox" value="1" name="DirectTuition" /> Direct Tuition to schools or training institutions </label></p> <p><label><input type="checkbox" value="1" name="TrainingMaterials" /> Training materials </label></p> <p><label><input type="checkbox" value="1" name="TravelOrLivingCosts" /> Travel or living costs for trainees and trainers </label></p> <p><label><input type="checkbox" value="1" name="Overhead" /> Overhead or Office costs for training </label></p> <p><label><input type="checkbox" value="1" name="OtherTraining" /> Other training expenses </label></p> <p align="left"><strong>Work Place Training</strong></p> <p align="left">If your organization participated in Work Place Training, please indicate so by clicking the appropriate radio button. </p><label>Work Place Training </label><input type="radio" value="1" name="WorkPlaceTraining" /> <label>No Work Place Training</label> <input type="radio" value="2" name="WorkPlaceTraining" /> <br /> <p><strong>Your organization participates in Work Place Training. Please select those that apply:</strong></p><br /> <input type="checkbox" value="1" name="WorkPlaceOrientation" /> Orientation for new Employees </label> <p><label><input type="checkbox" value="1" name="WorkPlaceManagerialOrSupervisoryTraining" /> Managerial or Supervisory Training </label></p> <p><label><input type="checkbox" value="1" name="WorkPlaceApprenticeshipTraining" /> Apprenticeship Training </label></p> <p><label><input type="checkbox" value="1" name="WorkPlaceComputerHardware" /> Computer Hardware </label></p> <p><label><input type="checkbox" value="1" name="WorkPlaceComputerSoftware" /> Computer Software </label></p> <p><label><input type="checkbox" value="1" name="WorkPlaceOtherOffice" /> Other Office and non-office equipment </label></p> <p><label><input type="checkbox" value="1" name="WorkPlaceGroupDecisionMaking" /> Group Decision Making or Problem Solving </label></p> <p><label><input type="checkbox" value="1" name="WorkPlaceTeamBuilding" /> Team-building, leadership, communication </label></p> <p><label><input type="checkbox" value="1" name="WorkPlaceLiteracyOrNumeracy" /> Literacy or Numeracy </label></p> <p> </p> <p><strong>Please estimate the amount of employees that have had workplace training between April of last year and March of this year: </strong></p> <p><label><input id="TotalAmountEmployees" name="TotalAmountEmployees" /> </label></p><input type="submit" value="Submit the Form" name="process_form" /> <p> </p> <p> </p> </form> </html>'; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/120187-php-validation-part-2/#findComment-620076 Share on other sites More sharing options...
Davecachia Posted August 19, 2008 Author Share Posted August 19, 2008 Thanks.. now all I have to do is get the validation to work Quote Link to comment https://forums.phpfreaks.com/topic/120187-php-validation-part-2/#findComment-620306 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.