var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: request form Variable problem
when i post form collection all variables are accesable by this method
but i want to do this things
i want to aSSign value to the form value, but i get error
Object doesn't support this property or method: 'form'
what i'm doing wrong ?
thanks for help
Your problem is not much clear .Can you provide the part of code which you are using.
Using 'Request.form' you can not assign the values .This is using to retrieve the value assigned in varaiable.
If you want assign a value to a text box in a form you can use HTML tag.
if MY CONDITIONS then request.form("select1")=""
here i simply want to check posted variable request.form("select1")
if this var doesnt match to my conditions then i must to setup request.form("select1") variable to NULL
because second select component works when request.form("select1") is not empty
when i was used php, in php i can do this things, but how can i assign value to request.form collection variable using ASP ????
<select name="select1" onchange="submit()">
set rs1 = create recordset ............
<option value="<%=rs1.fields("field_id")%>"><%=rs1.fields( "field_name")%></option>
<select name="select2" onchange="submit()">
if request.form("select1")<>"" then
set rs2 = create recordset ............
<option value="<%=rs2.fields("field_id")%>"><%=rs2.fields( "field_name")%></option>
thanks for help
difine a variable
assign the request .form in avaraiable and check the variable for the condition.
if a (condition)
thanks for spending time, but this was simple.
my question was about form collection,
ok, it is not very big problem for me,
the values in the forms collects are read only. you can request what is submitted and but you can not change the value.
the correct method of doing what you are trying to do is as suggested.
request the value once and apply it to a variable, from then on whenever you want to reference that form value you use the variable which is read/write.
this will also improve your performance as you don't need to go through the request object to find the values for things every time you want to perform a check or calculation.