Hi Chris
Are you using classic ASP or ASP.Net? I know classic ASP cannot reference form fields in this way. If it is a postback then you would simply use:
Main Topics
Browse All TopicsGetting the following error when trying to pick up a page element in an ASP postback. I understood that ASP has access to the DOM but if fails.
Microsoft VBScript runtime error '800a01a8' - Object required: 'document', fails on this line:
>> If document.getElementById("o
Form field is - <textarea name="omraSection02a" id="omraSection02a">
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Thanks sybe, can't believe everything someone tells you.
As to my question, I should make it a bit clearer. There are 2 <forms> on the page. If I submit from the 1st I want to pick up a value if someone has entered data into the 2nd form. Probably clutching at straws but thought I'd ask the question anyhow.
<form action="omradetails.asp" method="post" name="Audits TopButton" id="Audits TopButto
<input name="SaveAuditsTopButton"
</form>
<form action="omradetails.asp>" method="post" name="Audits" id="Audits">
<textarea name="omraSection02a" id="omraSection02a"></textar
</form>
You can not do that directly. Only the values which are in the submitted form are going to be posted to the server.
You could do something with javascript at the onsubmit of the form and hidden form values. But that seems a bit strange. Better have a single form with two submit buttons. You can identify on the server which submit button has been pressed if the buttons have a name and a value.
Business Accounts
Answer for Membership
by: ryancysPosted on 2009-09-23 at 22:51:43ID: 25410372
try:
pButton") = "Save Audits TopButton" Then
on02a"),"' ","''")
<%
'
If request.form("SaveAuditsTo
dim val1
If request("omraSection02a") <> "" Then
val1 = Replace(request("omraSecti
End If
%>