PenguinHead
Programmer
I am attempting to grab the selected value from a <SELECT>...<OPTION> statement [DB generated] and pass that value along to the next page.
I cannot seem to grab the values while I am in the loop because it gives me all of them, not the one selected. I cannot grab it outside the loop because it's an EOF.
My Code
Do Until UserRecord.EOF %><option
value="<%Response.Write(UserRecord("church"))%>">
<%Response.Write(UserRecord("church"))%></option><%
%><Input type="Hidden" name="strChurch" value="%Response.Write(UserRecord("church"))%"><%
%><Input type="Hidden" name="strPath" value="%Response.Write(UserRecord("path"))%"><%
UserRecord.MoveNext
Loop
*I have read some of the other threads and they didn't answer my question. =)
I cannot seem to grab the values while I am in the loop because it gives me all of them, not the one selected. I cannot grab it outside the loop because it's an EOF.
My Code
Do Until UserRecord.EOF %><option
value="<%Response.Write(UserRecord("church"))%>">
<%Response.Write(UserRecord("church"))%></option><%
%><Input type="Hidden" name="strChurch" value="%Response.Write(UserRecord("church"))%"><%
%><Input type="Hidden" name="strPath" value="%Response.Write(UserRecord("path"))%"><%
UserRecord.MoveNext
Loop
*I have read some of the other threads and they didn't answer my question. =)