C
Crystal
Ok, I know this sounds weird, but it's really bugging me. I have a
few list boxes on my form (basic pick a month, year, state stuff) and
you can only choose one value. I need to be able to run a script to
pick out those boxes and request the value and then response.write the
value to a URL that I am creating. The script actually sends an email
to me that contains a link to the form that the user filled in and
populates the form with their information. Here is what I have so
far, only the first and last cases work, I still can't figure out how
to get it to work for "sel" (listboxes) and I also need to make it
work for a text area:
<%
sub RequestInfo(objName, btnVal)
Select Case left(objName,3)
Case "rad", "chk"
if Request(objName)=btnVal then
Response.Write("checked")
end if
Case "sel"
if Request(objName)=btnVal then
Response.Write("selected")
end if
Case "txt"
Response.Write "Value='" & Request(objName) & "'"
End Select
end sub
%>
Any help would be GREATLY appreciated! I just need it to write the
selected value, don't worry about where it's coming from or where it's
going, that all works fine
few list boxes on my form (basic pick a month, year, state stuff) and
you can only choose one value. I need to be able to run a script to
pick out those boxes and request the value and then response.write the
value to a URL that I am creating. The script actually sends an email
to me that contains a link to the form that the user filled in and
populates the form with their information. Here is what I have so
far, only the first and last cases work, I still can't figure out how
to get it to work for "sel" (listboxes) and I also need to make it
work for a text area:
<%
sub RequestInfo(objName, btnVal)
Select Case left(objName,3)
Case "rad", "chk"
if Request(objName)=btnVal then
Response.Write("checked")
end if
Case "sel"
if Request(objName)=btnVal then
Response.Write("selected")
end if
Case "txt"
Response.Write "Value='" & Request(objName) & "'"
End Select
end sub
%>
Any help would be GREATLY appreciated! I just need it to write the
selected value, don't worry about where it's coming from or where it's
going, that all works fine