Home All Groups Group Topic Archive Search About


Author
10 Mar 2005 3:01 AM
Jishnu
HI All,
  I am writing a multi page form. I am using hidden input statements to
pass my variables between different pages. Now I want to provide a page
whereusers can update the previous entered data. The form at this point
is populated through the hidden variables.
But as I submit after making any changes.
the hidden values instad of updating get an extra value.
Is there any way to get around it.
Thanks

Author
11 Mar 2005 12:17 PM
Tim
Jishnu wrote:
>   I am writing a multi page form. I am using hidden input statements to
> pass my variables between different pages. Now I want to provide a page
> whereusers can update the previous entered data. The form at this point
> is populated through the hidden variables.
> But as I submit after making any changes.
> the hidden values instad of updating get an extra value.
> Is there any way to get around it.

For questions like this you should always post some well crafted
explaining code because it is hard to tell what you are doing wrong but
my guess is that you write both hidden fields AND ordinary forms on the
update page.

I guess it looks something like this (on the update page).

<input type="hidden" name="name" value="Jishnu" />
<input type="text" name="name" value="" />

In this case Request.Form("name")  will return a stringlist containing
both the hidden value and the  value entered in the form.

What you should do instead is to only have the form, and let it contain
the name initially

<input type="text" name="name" value="Jishnu" />

If you problem is what I think it is this should be the solution, else
you should post some code exemplifying .

Tim
Author
15 Mar 2005 1:15 AM
Bullschmidt
<<
But as I submit after making any changes.
the hidden values instad of updating get an extra value.
>>

Maybe you have more than one field with the same name.

Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

AddThis Social Bookmark Button