[thelist] Forms and passing variables

Scott Webster pippen at bigpond.net.au
Mon Jan 27 21:25:00 CST 2003


----- Original Message -----
From: "Tom Dell'Aringa" <pixelmech at yahoo.com>
: Rachel, a good way to handle this is to have ONE page, not two, do
: all the work. You handle this by testing the value of your submit
: button. If your submit value is "Send Form" then you can do something
: like this:
...
: If you are coming from the form, you get all your variables from the
: form of course, and you process the form. If there is an error in the
: form you have all your post variables. You can head back down to the


I've been playing with this the last couple of days as well. I was using
2 separate display and update pages for maintenance clarity also.

I'm using ASP but found that you can wrap all your update code into
method/s and include the update page instead of redirecting to it.

Another benefit is that there is less handshaking/redirecting between pages
and fewer db connections will end up being made - since a single connection
can be made to perform updates then perform the retrievals for display.

cheers






More information about the thelist mailing list