Trying to write some PHP pseudocode for a recruitmentposter to hang at my university.
The idea is to make readers walk through a list of requirements in their head and go to the QR code if they think they fit the description.
Unfortunately I have virtually no experience @ PHP and therefore am having some difficulty figuring out the following three things:
-
Do I need to use $post(value of …) to ‘retrieve’ their personal information or is simply stating the variable/bool enough?
-
Can I use an array like I did in $skills? Basically I want readers to imagine the following: skilltype | myskill
-
Is assigning a bool value for the array entries of $interests correct like this? Here I’d want readers to think: Interest | personalboolvalue
It would be no surprise to me if this is complete and utter nonsense but it’s what I produced after about an hour and a half of sleep-deprived searching. I’d be ever grateful if anyone could shed some light on the matter.
<?php
$skills = array ("PHP" => $level, "HTML5" => $level, "CSS3" => $level, "SQL" => $level);
$interests = array ("iOS" => $bool, "start_up" => $bool, "money" => $bool);
if ($skill[0, 1, 2, 3] == "expert") {
if ($interests[0, 1] == TRUE && $interests[2] == FALSE) {
if ($interested && $entrepreneur && $concrete_exp && $willing_to_commit) {
echo "Please go to /images/qrcode.png";
}
}
}
?>
Full working solution with nice HTML: