Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP General (http://www.velocityreviews.com/forums/f65-asp-general.html)
-   -   Wierd form post (http://www.velocityreviews.com/forums/t793830-wierd-form-post.html)

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...
</select>

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
 
Brian,

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
differently.

Thanks for your help.

John


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.