I have a loop that outputs the list in that array. For each entry I want a a button to remove it. The button will submit the form to another page which contains the script to be able to remove it from the array. The infomation for the keys name is used for the buttons name value. Im not sure how you go about grabbing this information once on the submitted page.
heres my code
CODE
echo("<form name='jobs' action='remove_job.php'>");
foreach($jobs as $job_class => $job_level) {
echo($job_class . " - " . $job_level . " <input type='submit' name='" . $job_class . "' value='Remove' /> <br />" );
}
echo("</form>");
foreach($jobs as $job_class => $job_level) {
echo($job_class . " - " . $job_level . " <input type='submit' name='" . $job_class . "' value='Remove' /> <br />" );
}
echo("</form>");
when submitted to remove_job.php i get the key + value added onto the url. eg. remove_job.php?job_class=Remove
note: job_class on the url would be either class i chose to remove eg. warrior, paladin, ninja.... on yeah some of my job classes have spaces in them for example "White Mage" would be be a potential problem?

