passing a field to another page and... (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


nettop -> passing a field to another page and... (3/31/2008 10:02:43)

I have a page at http://www.foothillbiz4sale.com . When someone enters their email address to receive our Newsletter, it is captured via a database (.mdb file). The results page is http://www.foothillbiz4sale.com/email_newsletter.asp and we would like some additional information. Two things:

First, I would like to simply capture the email address that was submitted in the email field onto this 2nd form (populate it), in such a way that it cannot be edited. I don't think I can use Sessions, because they are not logged in and I don't yet know who they are.

Second, I would like to insert the data from this second form into the record that was just created from the first page, rather than inserting it into a different table...if that's possible. Please advise. Thanks, Tim




rdouglass -> RE: passing a field to another page and... (3/31/2008 11:52:15)

quote:

First, I would like to simply capture the email address that was submitted in the email field onto this 2nd form (populate it), in such a way that it cannot be edited. I don't think I can use Sessions, because they are not logged in and I don't yet know who they are.


You could either make the field disabled or you could place the data in a hidden field and just display it regularly without an <input> element. And actually you can use sessions any time you want and it will stay untill either the client closes that browser session or the session times out.

quote:

Second, I would like to insert the data from this second form into the record that was just created from the first page, rather than inserting it into a different table...if that's possible.


It's always possible. [;)] Why do you need it entered twice? Isn't it entered when they initially submit (or is this a confirmation form)? Can you explain more?




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875