for($i = 1; $i <= 1; $i++) {
$you_item[$i] = ucwords($_POST['you_item'.$i.'']);
$you_item[$i] = "http://steamcommunity.com/market/priceoverview/?appid=570¤cy=1&market_hash_name=".$you_item[$i]."";
$you_item[$i] = str_replace(' ', '%20', $you_item[$i]);
$you_item[$i] = file_get_contents($you_item[$i]);
$you_item[$i] = json_decode($you_item[$i], true);
$you_item[$i] = $you_item[$i]['median_price'];
$you_item[$i] = preg_replace("/&#?[a-z0-9]{2,8};/i","", $you_item[$i]);
echo $you_item[$i];
}
the sample site is this http://bit.ly/1gKGoN0
I have a problem on the loop of getting the value from the textboxes
i declared the form like this
<?php for($i=1;$i<=15;$i++){ ?> <input type="text" name="<?php echo
"you_item".$i.""?>" /> <?php } ?>
but the problem now is i cant get the value from the textboxes where i forwarded to $you_item[$i]. the site that i made doesnt have a loop. i coded the $you_item1 upto 15 because i have 15 textboxes. can someone help me out?