Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2 tables in one form?

Status
Not open for further replies.

MikeT

IS-IT--Management
Feb 1, 2001
376
US
I have two tables, both in the same form. The second table consists of only one cell; a <textarea>. When this form is submitted, I get everything except for the contents of the textarea.

The opening <form> call is in the second cell of the first table(long story). The closing call is after the second table. I cant put the textarea in the first table becuase of alignment problems. If the name of the textarea is &quot;strNotes&quot;, would the call for its contents be request.form(&quot;strNotes&quot;)? That is what I am using, but it doesn't work. Can one form encompass two tables? I don't see why not.
Any thoughts?
 
UPDATE:
I put the textarea in the first table for the heck of it, and still did not get its contents after submitting the form. This leads me to believe the request.form method I'm using is how its supposed to work. How is it supposed to work?
 
&quot;If the name of the textarea is &quot;strNotes&quot;, would the call for its contents be request.form(&quot;strNotes&quot;)? &quot;

are you targetting ns or ie ? which version ? here i'll suppose you only want to support ie 4+
the call to strNotes is then : document.the_name_of_the_form.strNotes if you only have 1 form called the_name_of_the_form
becareful that this doesn't give you the VALUE entered in the textarea ! to get it it's : document.the_name_of_the_form.strNotes.value
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top