hey guys, does anyone know of a way to get gd to use the line breaks from a <textarea> field? i was currently using a text field for each line like so:
<b>Details</b><br>
<input type="text" name="details" value="<? echo $new['details']; ?>"><br>
<input type="text" name="details2" value="<? echo $new['details2']; ?>"><br>
<input type="text" name="details3" value="<? echo $new['details3']; ?>"><br>
<input type="text" name="details4" value="<? echo $new['details4']; ?>"><br>
<input type="text" name="details5" value="<? echo $new['details5']; ?>"><br>
<input type="text" name="details6" value="<? echo $new['details6']; ?>"><br>
<input type="text" name="details7" value="<? echo $new['details7']; ?>"><br>
then gd will use it like this:
imagestring ($im, 4, 170, 50, $details, $black);
imagestring ($im, 4, 170, 65, $details2, $black);
imagestring ($im, 4, 170, 80, $details3, $black);
imagestring ($im, 4, 170, 95, $details4, $black);
imagestring ($im, 4, 165, 110, $details5, $black);
imagestring ($im, 4, 140, 125, $details6, $black);
imagestring ($im, 4, 100, 140, $details7, $black);
so basically i just want one textarea field($details) and have gd detect each line break, and start a new imagestring() 15 pixels down....i have a feeling there's no functions for this....thanks for your replies!