hoppers
2006-11-14 10:09:10 UTC
Hi All.
I have an ASP form which is requesting data and the posting the data to
ADSI. Before i post the form i am running some VBScript to qualify the
data.
I am able to retrieve the data from text field ("DeskNumber") but not
the select drop down field ("title").
I have listed an example (thisis not the whole code) of what i am doing
below
Can anyone tell me what i am doing wrong.
Thanks
<HTML><HEAD>
<TITLE>Update My Info</TITLE>
<form name="UpdateInfo" method="POST" action="UpdateMyInfo.asp"">
<script language="VBScript">
Function RunSubmit()
msgbox
document.forms("UpdateInfo").item("title").value
msgbox
document.forms("UpdateInfo").item("DeskNumber").value
End Function
</script>
<table border="0" width="100%">
<tr>
<td width="19%"><font face="Arial"></font> </td>
<td width="27%"><font color="#0000FF">PRESENT
INFORMATION</font></td>
<td width="54%"></td>
</tr>
<tr>
<td width="19%"><font face="Arial">Title: </font> </td>
<td width="27%"><%= (title)%></td>
<td width="54%"><font face="Arial"><select size="1" name="Title">
<option><%= (title)%></option>
<option>Assistant Vice president</option>
<option>Senior Specialist</option>
<option>Vice Preseident</option>
</select></font></td>
</tr>
<tr>
<td width="19%"><font face="Arial">Desk Number:</font></td>
<td width="27%"><%= (streetaddress)%></td>
<td width="54%"><font face="Arial"><input type="text"
name="DeskNumber" size="20"> <font size="2"
color="#0000FF"> </font></font>
</td>
</tr>
</table>
<p> </p>
<p>
<input name="SubmitButton" type="button" value="SUBMIT"
onclick="RunSubmit">
</form>
<p> </p>
<p> </p>
<p> </p>
</HTML>
I have an ASP form which is requesting data and the posting the data to
ADSI. Before i post the form i am running some VBScript to qualify the
data.
I am able to retrieve the data from text field ("DeskNumber") but not
the select drop down field ("title").
I have listed an example (thisis not the whole code) of what i am doing
below
Can anyone tell me what i am doing wrong.
Thanks
<HTML><HEAD>
<TITLE>Update My Info</TITLE>
<form name="UpdateInfo" method="POST" action="UpdateMyInfo.asp"">
<script language="VBScript">
Function RunSubmit()
msgbox
document.forms("UpdateInfo").item("title").value
msgbox
document.forms("UpdateInfo").item("DeskNumber").value
End Function
</script>
<table border="0" width="100%">
<tr>
<td width="19%"><font face="Arial"></font> </td>
<td width="27%"><font color="#0000FF">PRESENT
INFORMATION</font></td>
<td width="54%"></td>
</tr>
<tr>
<td width="19%"><font face="Arial">Title: </font> </td>
<td width="27%"><%= (title)%></td>
<td width="54%"><font face="Arial"><select size="1" name="Title">
<option><%= (title)%></option>
<option>Assistant Vice president</option>
<option>Senior Specialist</option>
<option>Vice Preseident</option>
</select></font></td>
</tr>
<tr>
<td width="19%"><font face="Arial">Desk Number:</font></td>
<td width="27%"><%= (streetaddress)%></td>
<td width="54%"><font face="Arial"><input type="text"
name="DeskNumber" size="20"> <font size="2"
color="#0000FF"> </font></font>
</td>
</tr>
</table>
<p> </p>
<p>
<input name="SubmitButton" type="button" value="SUBMIT"
onclick="RunSubmit">
</form>
<p> </p>
<p> </p>
<p> </p>
</HTML>