bob_rock Posted December 25, 2006 Share Posted December 25, 2006 Hello , I'm new to php and i'm wondering is there anykind of dynamic text box like in flash , where you load text into txtbox and it breaks text apart so it fits the txtbox. ??? For example I have td size 300x300px and i load external txt into it- The size of the table must stay the same just text must break apart so it fits the box.this would be the code for getting text , and now i want to display it, in a different td.Comment : <br /><form method="post" action="<?php echo $PHP_SELF;?> "><textarea rows="5" cols="20" name="besedilo" wrap="physical"></textarea>Email : <input type="text" size="12" name="email" /><input type="submit" value="submit" name="submit"></form><?php$besedilo=$_POST["besedilo"];$email=$_POST["email"];$ime="text.txt";$datoteka=fopen($ime,'a')or die ("napaka pri odpiranju datoteke");fwrite($datoteka,"<br />".$besedilo."<br />".$email);fclose($datoteka);$tekst = "text.txt";$fh = fopen($tekst, 'r');$vsebina = fread($fh, filesize($tekst));fclose($fh);?> Link to comment https://forums.phpfreaks.com/topic/31822-text-box/ Share on other sites More sharing options...
ted_chou12 Posted December 25, 2006 Share Posted December 25, 2006 can you please explain in more detail? by what you siad, do you mean that you want to import the text into the text box? by text box do you mean a text area? an input field or what?Ted. Link to comment https://forums.phpfreaks.com/topic/31822-text-box/#findComment-147564 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.