Forms

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
 
E

Erica

Yes I am. Something told me that using POST was the problem. Should of
listened to my intuition. I will test and post if Get method worked.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,164
Messages
2,570,901
Members
47,439
Latest member
elif2sghost

Latest Threads

Top