Re: Form validation opportunity/challenge
- From: MikeR <nf4l@xxxxxxxxx>
- Date: Sat, 04 Jun 2005 08:15:17 -0400
Stefan -
I solved my problem by giving the option boxes a default value, so all the arrrays have the same number of elements.
As to the validity of the data, I'm not trying to be argumentative, just trying to understand.
Below is a result of a response.write request.form statement in the receiving asp page. Note the repeating names, with different values. This is from a 3 line form. I can access the values on the recieving page by request.form("PID")(n), request.form("cost")(n) etc. And in *EVERY* case the data is correct. Can you point out where/why that's not true?
UID=mikey&PID=113&cost=12.00&conditii_de_plata=AVANS&termen_de_livrare=PeStock&baza_livrare=Livrat+la+cumparator&PID=115&cost=&conditii_de_plata=AVANS&termen_de_livrare=In+5+zile&baza_livrare=Livrat+la+cumparator&PID=118&cost=14.95&conditii_de_plata=PLATA%28NR+ZILE%29DUPA+LIVRARE&termen_de_livrare=In+10+zile&baza_livrare=Franco-+furnizor&B1=Bid MikeR
Stefan B Rusynko wrote:
You may think they are valid but I guarantee you are getting incorrect data
Request.Form("quantity") will only ever give you the value of the 1st form field named quantity in the form
(same value for every one of your other records)
- since it is not unique the way you have it now, and ASP (or any other form processor) has no way of knowing which of the other dupes to even look at (they are just ignored)
.
- Follow-Ups:
- Re: Form validation opportunity/challenge
- From: Stefan B Rusynko
- Re: Form validation opportunity/challenge
- References:
- Form validation opportunity/challenge
- From: MikeR
- Re: Form validation opportunity/challenge
- From: Stefan B Rusynko
- Re: Form validation opportunity/challenge
- From: MikeR
- Re: Form validation opportunity/challenge
- From: Stefan B Rusynko
- Form validation opportunity/challenge
- Prev by Date: Re: frontpage2002 not able to do office SP3
- Next by Date: Re: Form validation opportunity/challenge
- Previous by thread: Re: Form validation opportunity/challenge
- Next by thread: Re: Form validation opportunity/challenge
- Index(es):