[thelist] ASP - Form submision strangeness ...

aardvark roselli at earthlink.net
Wed Jul 4 11:52:35 CDT 2001


> From: Elfur Logadóttir <elfur at elfur.is>
[...] 
> the url: http://www.el.is/temp/default.asp?st=add
> 
> When i submit the form there (hit skrá button) without adding anything
> to it the value of the title input field is returned as a ', ' and not
> ''
> 
> Now i've gone through all the code and searched for all commas in the
> code and there is no comma where it's not supposed to be.
> 
> my question is: where do i have to look ... how and when can i
> accidentally sneak a comma into the request.form("title") part

it's not an issue of a comma, you're submitting the field twice on 
the same form...

you have this on line 20 (Titill):
<input type="text" name="title" size="20"  style="width: 200">

you have this on line 277 (Verð):
<input type="text" name="title" size="20"  style="width: 200">

change the name of the second one (or the first one) to something 
else and you'll be fine (you'll have to request it from the collection 
by its new name, of course)...





More information about the thelist mailing list