Jump to content

Text box


bob_rock

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.