Forum Moderators: open

Message Too Old, No Replies

ASP Form validation

losing input when returning to add

         

SuzyUK

4:09 pm on May 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi I did a quick search looking for this but I need it ready for tonight if possible...

I have set up quite a complex form, with server side validation

the rules are validating as they should, but when the form returns me to re-input something the rest of the fields are empty ...

Is there an easy solution or should I give up on it for tonight?

If there's not an easy solution I'd appreciate help and/or links...for tomorrow ;)

TIA
Suzy

DaveN

4:24 pm on May 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do your form validation and store all the variables to a global.asa so when you come back to the form you can just reload them all.

DaveN

aspdaddy

4:27 pm on May 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Throw them back in the response using hidden form values -

<input name=t1 value=<%=request("t1")%>>

SuzyUK

5:20 pm on May 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks very Much for speedy replies..don't know if I'll manage to do this next half hour, but will get it fixed sooner rather than later

Thanks
Suzy
:)

<added> Thanks aspdaddy that worked a treat! </added>

SuzyUK

7:25 am on May 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thought I'd say a big thanks to you both again...

I hate having to rush into a forum and shout help!..but Yesterday when I needed to.. you guys were there :)

The Site demo went well and site is live today!
and I've learnt something too.. so can't be bad

So a big thanks to you both
(and Webmasterworld!)

Suzy ;)