fraser5002 Posted July 3, 2010 Share Posted July 3, 2010 Small bit of help Hi i have 300 text boxes on the screen and i press update this will update my database All my text boxes are call "T1" T2" "T3" etc etc im using this code to collect all the text boxes values together after the update button has been presses $i = 0; while ($i < 300) { $temp[$i] = $_POST["T"+$i]; $i++; } As i expected this code does not work it i just call all the text boxes 1,2,3,4,5 etc etc and use the following code it does work however $i = 0; while ($i < 300) { $temp[$i] = $_POST[$i]; $i++; } So how do i get it to work when the text box name has a letter prefix as shown before? probably something really simple ! thanks Link to comment https://forums.phpfreaks.com/topic/206613-small-piece-of-php-help/ Share on other sites More sharing options...
ChemicalBliss Posted July 3, 2010 Share Posted July 3, 2010 The concatenation symbol for PHP is a period " . ": $temp[$i] = $_POST["T".$i]; One character off . -cb- Link to comment https://forums.phpfreaks.com/topic/206613-small-piece-of-php-help/#findComment-1080611 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.