Jump to content


Photo

Legal Text Area for scroll but not input


  • Please log in to reply
4 replies to this topic

#1 turbobill

turbobill
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 05 August 2006 - 03:00 PM

Hello,

I'm using PHP & HTML, trying to display the legal doc but not allow it to be edited.  You know the drill  :).

The code I'm using below causes it to be an input field, which I don't want.  I only want it to show the legal doc then the user checks an acceptance box.

<TEXTAREA NAME="TextFileName" ROWS=14 COLS=80>@TextFileName@
</TEXTAREA>

Thanks for the help,
Bill


#2 Chetan

Chetan
  • Members
  • PipPipPip
  • Advanced Member
  • 162 posts
  • LocationIndia

Posted 05 August 2006 - 03:04 PM

use iframes or div tags for that case, i know there is a way to make it uneditable but i dun remember
I am a PHP Guru, ask me questions if you want to

#3 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 05 August 2006 - 04:29 PM

<div style="border : solid 2px #ff0000; background : #f7f7f7; color : #000000; padding : 4px; width : 400px; height : 150px; overflow : auto; ">

Your legal text all goes in here

</div>

Adjust the styling on the div to suit your width/height/colors, etc.  Produces a scrollable div containing your 'legal agreement stuff'


Legend has it that reading the manual never killed anyone.
My site

#4 turbobill

turbobill
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 05 August 2006 - 05:24 PM

Ok, thanks a lot, AndyB( Super Guru ).  That looks like it will work.

Where can I find a quick html turorial?  I've been a database app developer for many years but just now getting into html.

Thanks again,
Bill


#5 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 05 August 2006 - 05:29 PM

Where can I find a quick html turorial?  I've been a database app developer for many years but just now getting into html.


Cripes! Depends on what you want to learn, but a few minutes ought to be enough.

http://www.htmlite.com/HTMintro.php is pretty easy reading.
Legend has it that reading the manual never killed anyone.
My site




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users