Experts Round Table Network

Serverside Technology => ASP => Topic started by: Johnny26652 on September 12, 2008, 08:38:06 PM



Title: transfer form fields
Post by: Johnny26652 on September 12, 2008, 08:38:06 PM
hi all,

i have 2 forms basically with the same field names. i need to transfer one form values stored in database of a url to another form with the same fields in a different url using ASP.

thanks
john


Title: Re: transfer form fields
Post by: VGR on September 23, 2008, 12:49:19 AM
some directions :
1) if same server (domain name), you may use session variables
2) if not, you may build an autopost POST form to reah the secondFORM witht he first's values
3) you may call the second one in GET with all data in the URI but this is the worst solution
4) the second form has to accept input request values (GET, POST) to populate its fields, of course

HTH


Title: Re: transfer form fields
Post by: Johnny26652 on September 30, 2008, 08:00:36 PM
it is not on the same server.  I am looking something similar to citi virtual card number generator. Once the virtual number generates it automatically fills the card info.... any more suggestions..


Title: Re: transfer form fields
Post by: VGR on October 16, 2008, 11:41:32 PM
use what I said then. The basic solution is a GET parameter. You may urlencode and "crypt" (or rather, obsfuscate) the set of values in a not-too-big (2048bytes is a good common sense limit) and pass it to the next server using GET (in the URI) or POST (with a hidden FORM linked to a submit link/button for instance).

The next server then "decrypts" the string, thus retrieves the values, and fills in its form ("card")

not that difficult. Or explain your problem more closely.

regards