<?php
function convert(){
$how_many_jobs = 1;
if($how_many_jobs != ""){
for($i = 1; $i <= $how_many_jobs; ++$i){
$company[$i] = "$job_company[$i]";
$converted .= "<input name=\"job_company\" type=\"hidden\" value=\"$company[$i]\">";
}
}
return($converted);
}
?>
<html>
<body>
<?php
if($submit){
echo(convert());
}
else{
?>
<form action="temp.php" method="post">
<input type="text" name="job_company[1]">
<input type="submit" name="submit" value="submit">
</form>
<?php } ?>
</body>
</html>