大家好,我是新手,正在尝试为用户输入 ID、标题和描述但不正确的工作创建一个关联数组,你能指导我完成这个吗?
我还想按标题或描述搜索职位并返回职位 ID,
非常感谢
<html>
<body>
This form is for storing array of jobs with ID and description for each
<form method = "post" >
input job iD <input id="jobid">
input jobname <input id="jobname">
Write a description <input id="jobdesc">
<input type="submit" value="click to store input" >
</form>
</body>
</html>
<?php
$jobs_array = array();
$jobs_array[] = array ($_POST['jobid'] ,$_POST['jobname'], $_POST['jobdesc']);
?>