Hello,
My script's (see below) function convert_vars() outputs the results of this form as Array... I don;t want that 🙁 Anyone know how to fix this so the $HTTP_POST_VARS doesnt change my results into Array?
<?php
function convert_vars(){
global $HTTP_POST_VARS;
foreach($HTTP_POST_VARS as $var_name => $var_value){
$converted_vars .= $var_name." = ".$var_value."<br>\r\n";
}
return $converted_vars;
}
if($go){
$how_many_jobs = 1;
for($i = 1; $i <= $how_many_jobs; ++$i){
echo($job_company[$i]."<br>");
echo($boss_name[$i]."<br>");
}
echo(convert_vars());
}
else{
?>
<html>
<body>
<form action="temp.php" method="post">
<?php
for($i = 1; $i <= 1; ++$i){
?>
<input type="text" name="job_company[<?php echo($i); ?>]"><br>
<input type="text" name="boss_name[<?php echo($i); ?>]"><br>
<?php } ?>
<input type="hidden" name="go" value="1">
<input type="submit" name="submit" value="submit">
</form>
</body>
</html>
<?php } ?>