0

I have a form (testform.html)as follows:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>test</title>
</head>
<body>
    <form id="form1" method="post" action="datareturn.aspx" >
    <input type="text" id="FoxyData" name="FoxyData" />
    <input id="Submit" type="submit" value="submit" name="submit"  />
    </form>
</body>
</html>

When I enter data into the form field and click submit then the datareturn.aspx page opens but the Request.Form collection is empty. I I change "post" to "get" and click submit the Request.Querystring collection correctly contains the data.

I have used request.form() many times and although I'm sure it's something silly, i just can't work out why the POST is not working.

Any Ideas anyone?

Thanks,

Terry

2
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by gillivt
0

I also add one other comment..

The receiving page says that the REQUEST_METHOD is set to get not post, but I don't know why

Terry

0

Yes, I have tried this code and Response.Write(Data) returns nothing

Terry

0

I found the answer.

i was running in debug mode in visual studio.net. When I uploaded to a real web server, it posted correctly.

Thanks

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.