is it possible to put data from a text file into input type <input type="text" name="phone" size="33" value="<?php echo stripslashes($phone); ?>"> PHP: $phone have value $lines = file('phones.txt'); foreach($lines as $num => $phone){ PHP: stripslashes is necessary as the data added with addslashes currently it gets only the last line of phones.txt
Hi, You can't use <input type="text"> tag to display multi-line text. If you want to display multi-line text then you need to use <textarea rows="" cols=""> tag. Or if you want to display every data in new <input type="text"> tag ? Rudolf