PHP include with scroll bar

liguehs

New Member
Messages
62
Reaction score
0
Points
0
Hi guys,

I was wondering if its possible to have a php include file with a limited height and with a scroll bar.

So in details, I have this really huge table, but I want to make it like 300 px max.
But I cant use Iframe, because I have a script that when users clicks on the table, the name of the persons gets inserted into a form... so too complicated to change that.

I tought of using Iframe, but the values doesnt get passed...

So I wonder is it possible?


THanks for your help,
Ara
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
HTML:
<TEXTAREA COLS="10" ROWS="10" >
Lots of text in the box
</TEXTAREA>

Have you tried putting into a text area?


Edit:

Better response by saif7463 below....
 
Last edited:

saif7463

New Member
Messages
30
Reaction score
0
Points
0
Try using a div:

PHP:
<?php 
echo "<div style='height:300px; overflow:scroll'>";
include("stuff.txt");
echo "</div>";
?>
 
Top