IIS apps to display and update records

I have written an IIS application in VB to display a record at a time and allow add, delete, modify etc. but I cant get it to work.   I cant seem to get the value in the text boxes into the data fields.  I have defined the form tag as follows:
<form name="identupdate" method=post action="" >
 

 <table  border="1" width="100%" height="70">
    <tr>
      <td width="12%" bgcolor="#808000" align="middle" height="17"><font color="#ffff00">Ident Code</font></td>
      <td width="12%" bgcolor="#808000" align="middle" height="17"><font color="#ffff00">Facility Code</font></td>
      <td width="12%" bgcolor="#808000" align="middle" height="17"><font color="#ffff00">Facility
            Details</font></td>
      <td width="12%" bgcolor="#808000" align="middle" height="17"><font color="#ffff00">Survey Period
            (Yrs)</font></td>
      <td width="13%" bgcolor="#808000" align="middle" height="17"><font color="#ffff00">Last Survey</font></td>
      <td width="13%" bgcolor="#808000" align="middle" height="17"><font color="#ffff00">Surveyed by</font></td>
      <td width="13%" bgcolor="#808000" align="middle" height="17"><font color="#ffff00">Remarks</font></td>
    </tr>
    <tr>
      <td width="12%" align="middle" height="41"><input size="6" type="TEXT"  name="T1" value="<WC@fieldIdentCode></WC@fieldIdentCode>" MAXLENGTH=6></td>

  <td width="12%" align="middle" height="41"><input name="T2"   size="5" value="<WC@fieldFacilityCode></WC@fieldFacilityCode>"></td>

   <td width="12%" align="middle" height="41"><input name="T3" size="17" value=<WC@fieldFacilityDetail></WC@fieldFacilityDetail>" </td>
     
 <td width="12%" align="middle" height="41"><input name="T6" size="3"
 value="<WC@FIELDSURVEYPERIOD></WC@FIELDSURVEYPERIOD>" ></td>
     
<td width="13%" align="middle" height="41"><input name="T4" size="7"
 value="<WC@fieldLastSurvey></WC@fieldLastSurvey>" ></td>

<td width="13%" align="middle" height="41"><input name="T5" size="4" value="<WC@FIELDSURVEYBY></WC@FIELDSURVEYBY>"></td>

<td width="13%" align="middle" height="41"><TEXTAREA name=S1 rows=1><WC@FIELDREMARKS></WC@FIELDREMARKS></TEXTAREA></WC@FIELDREMARKS></td>
    </tr>
  </table>
</form>


I am trying to get the text by access the request.form("Identcode") but all I get is an empty value. Could anybody help me.  Or has any body have a sample program to display a record of a database with buttons to add a new record, modify, search, delete, cancel.  This must be an IIS vb application. I would like the template so I could follow the logic.

I would really appriciate this.  Many thanks
celoAsked:
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.

celoAuthor Commented:
Edited text of question.
0
motogodCommented:
From the code listed above your problem is the HTML form field names.

Example:

<td width="12%" align="middle" height="41"><input size="6" type="TEXT"  name="T1" value="<WC@fieldIdentCode></WC@fieldIdentCode>" MAXLENGTH=6></td>

Pay close attention to the 'name' attribute of the form tag. In the example listed above you would need to grab the value of the input box as follows:

IdentCode = Request.Form("T1")

Make sure you give your input boxes descriptive names to help you along with your scripts.

 
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
celoAuthor Commented:
I am using IdentCode = Request.Form("T1") to obtain the value , but I am only getting the values of the submit button.

Any sample code and template for what I need to do.
0
motogodCommented:
Using Request.Form implies that you are using the POST method for your form.

If your unsure which method your using(or just want IIS to search em all) use:

IdentCode = Request("T1")
Response.Write "IdentCode: " & IdentCode & "'"

I noticed above that your form tag doesn't have an action in it either...add in the filename you want the script to submit to for that attribute as such:

<form action="process.asp" method="POST">
0
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
Visual Basic Classic

From novice to tech pro — start learning today.