Velocity Reviews

Velocity Reviews (
-   ASP General (
-   -   Wierd form post (

John Hoge 04-05-2004 07:31 PM

Wierd form post
I've seen something on my logs that's not supposed to happen:

pagea.htm has a form with a Select list called country as below:

<select name='Country' size='1'>
<option value='USA'>USA</option>
<option value='Canada'>Canada</option>
'lots more countries...

Page B has code that references request.form("country"), and assumes
that this field is nonempty as it is coming from a select list. I saw
an error caused by an empty string in this country variable. The User
agent was IE6, and the pages appeared in the correct order in the IIS
logs. pagea.htm (the page with the form) was requested with a GET
method about a minute before the POST to pageb.asp, and no intervening
pages were requested by that IP. I would suspect AOL wierdness, but
it's not an AOL IP.

Any clues?

John Hoge 04-06-2004 02:54 PM

Re: Wierd form post

I must have forgotten to set the first <Option> to <Option Selected>
In my tests it worked fine, but I guess some browsers behave a bit

Thanks for your help.


All times are GMT. The time now is 08:28 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.