E
Erica
My form is not posting the form field values for some reason. Here is the
output I get when I put in the response.write commands:
action=add catkey=0 prodid= prodname= price=0
There are definitely values in the fields, and I've double-checked all of
the form field names. Someone please help. My code is below:
If request.querystring("action") = "add" then
objrs.addnew
end if
If request.QueryString("action") = "modify" or request.querystring("action")
= "add" then
response.write("action=add")
objrs("catkey") = cint(request("category"))
response.write("catkey=" & cint(request("category")))
objrs("prod_id") = request.Form("prodid")
response.write("prodid=" & request.form("prodid"))
objrs("pname") = request.form("prodname")
response.write("prodname=" & request.form("prodname"))
objrs("price") = cint(request.form("prodprice"))
response.write("price=" & cint(request.form("prodprice")))
AvailSizes = ""
If request.form("sizesm") = "yes" then
AvailSizes = "S "
else
AvailSizes = " "
end if
If request.form("sizemed") = "yes" then
AvailSizes = AvailSizes & "MED "
else
AvailSizes = AvailSizes & " "
end if
If request.form("sizelg") = "yes" then
AvailSizes = AvailSizes & "LG "
else
AvailSizes = AvailSizes & " "
end if
If request.form("sizexl") = "yes" then
AvailSizes = AvailSizes & "XL "
else
AvailSizes = AvailSizes & " "
end if
If request.form("sizemed") = "yes" then
AvailSizes = AvailSizes & "XXL"
else
AvailSizes = AvailSizes & " "
end if
objrs("sizes") = AvailSizes
response.write(availsizes)
objrs.movefirst
output I get when I put in the response.write commands:
action=add catkey=0 prodid= prodname= price=0
There are definitely values in the fields, and I've double-checked all of
the form field names. Someone please help. My code is below:
If request.querystring("action") = "add" then
objrs.addnew
end if
If request.QueryString("action") = "modify" or request.querystring("action")
= "add" then
response.write("action=add")
objrs("catkey") = cint(request("category"))
response.write("catkey=" & cint(request("category")))
objrs("prod_id") = request.Form("prodid")
response.write("prodid=" & request.form("prodid"))
objrs("pname") = request.form("prodname")
response.write("prodname=" & request.form("prodname"))
objrs("price") = cint(request.form("prodprice"))
response.write("price=" & cint(request.form("prodprice")))
AvailSizes = ""
If request.form("sizesm") = "yes" then
AvailSizes = "S "
else
AvailSizes = " "
end if
If request.form("sizemed") = "yes" then
AvailSizes = AvailSizes & "MED "
else
AvailSizes = AvailSizes & " "
end if
If request.form("sizelg") = "yes" then
AvailSizes = AvailSizes & "LG "
else
AvailSizes = AvailSizes & " "
end if
If request.form("sizexl") = "yes" then
AvailSizes = AvailSizes & "XL "
else
AvailSizes = AvailSizes & " "
end if
If request.form("sizemed") = "yes" then
AvailSizes = AvailSizes & "XXL"
else
AvailSizes = AvailSizes & " "
end if
objrs("sizes") = AvailSizes
response.write(availsizes)
objrs.movefirst