Rows and columns in text box??

How do i make columns and rows to appear in a text box?? For eg in a simple text box as shown below  I want 3 rows and  3 columns to be seen. How do I do this? Thank you.

A

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 2</title>
</head>

<body>

<form method="POST">
  <p align="center"><input type="text" name="T1" size="20"></p>
</form>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>

</body>

</html>
aej1973Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Irwin SantosComputer Integration SpecialistCommented:
<table width="100%"  border="0" cellspacing="5" cellpadding="5">
  <tr>
    <td>r1c1</td>
    <td>r1c2</td>
    <td>r1c3</td>
  </tr>
  <tr>
    <td>r2c1</td>
    <td>r2c2</td>
    <td>r2c3</td>
  </tr>
  <tr>
    <td>r3c1</td>
    <td>r3c2</td>
    <td>r3c3</td>
  </tr>
</table>
0
aej1973Author Commented:
Thank you for the answer. I am looking for the table inside the text area box. Now I am getting the rows and columns only in the form.

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>

<body>

<form method="POST">
  <p align="center"><input type="text" name="T1" size="20"><table width="100%"  border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">
  <tr>
    <td align="center" style="border-style: solid; border-width: 1">r1c1</td>
    <td align="center" style="border-style: solid; border-width: 1">r1c2</td>
    <td align="center" style="border-style: solid; border-width: 1">r1c3</td>
  </tr>
  <tr>
    <td align="center" style="border-style: solid; border-width: 1">r2c1</td>
    <td align="center" style="border-style: solid; border-width: 1">r2c2</td>
    <td align="center" style="border-style: solid; border-width: 1">r2c3</td>
  </tr>
  <tr>
    <td align="center" style="border-style: solid; border-width: 1">r3c1</td>
    <td align="center" style="border-style: solid; border-width: 1">r3c2</td>
    <td align="center" style="border-style: solid; border-width: 1">r3c3</td>
  </tr>
</table></p>
</form>

</body>

</html>
0
smaccariCommented:
An input type=text has only one row.
If you need a multiple row/multiple columns input, use a <textarea>.

0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

sam85281Commented:
You can't display anything but text in an input or textarea.  No tables, images, etc. ONLY TEXT.

-Sam
0
aej1973Author Commented:
Thanks, Sam.
0
nifmcmCommented:
you could place your table in a div and set contentEditable="true" on the div. e.g.

<div contentEditable="true" id="myTextArea" name="myTextArea">
      <table width="100%"  border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">
            <tr>
                  <td align="center" style="border-style: solid; border-width: 1">r1c1</td>
                  <td align="center" style="border-style: solid; border-width: 1">r1c2</td>
                  <td align="center" style="border-style: solid; border-width: 1">r1c3</td>
            </tr>
            <tr>
                  <td align="center" style="border-style: solid; border-width: 1">r2c1</td>
                  <td align="center" style="border-style: solid; border-width: 1">r2c2</td>
                  <td align="center" style="border-style: solid; border-width: 1">r2c3</td>
            </tr>
            <tr>
                  <td align="center" style="border-style: solid; border-width: 1">r3c1</td>
                  <td align="center" style="border-style: solid; border-width: 1">r3c2</td>
                  <td align="center" style="border-style: solid; border-width: 1">r3c3</td>
            </tr>
      </table>
</div>

you'll need to set a hidden input field's value in your form to the innerHTML of the div on submit of your form in order for you to access the data on your action page.

but, this'll only work in IE.

if it needs to work in firefox and other browsers, you might want to look into getting hold of a wysiwyg kind of editor as the code gets fairly involved and you need iframes and designMode. there are plenty of wysiwyg editors out there. try this url:

http://www.htmlarea.com/directory/Web_Software_Components/WYSIWYG_Editors/index.html
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.