Ok, this is very frustrating. I need to be able to take an array, and user input, compare both, and see if the user input equals anything in the array....how the heck do i do this??? Below is some of the important code I have.
------config.php----------
$helpDesk = "-----Help Desk Services-----,
Technology Support Student Team Leader,
Technology Support Assistant - Level 1,
Technology Support Assistant - Level 2,
Help Desk Services Office Assistant";
$libraryServices = ",
-----The George and Helen Ladd Library-----,
Acquisitions Student Specialist - Grade 2,
Public Services Student Assistant - Grade 1,
Public Services Shelving Assistants - Grade 1,
Documents Processor Student Assistant - Grade 1,
Special Collections Student Specialist - Grade 2,
Muskie Oral History Project - Editor - Grade 2";
-------------------end--------------------
-----------------index.php-------------
user fills out form, hits submit
----------------end-------------------
---------------form.php----------------------
//explode the array and iterate through the array
$marray = explode(",",$helpDesk);
foreach ($marray as $item){
$item;
}
if($position == $item) //position is the users input
{
include("../include/helpdesk.php");
}
else
{
include("../include/library.php");
}
}
---------------end----------------
I am in need of desperate help here.