Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using request.form after a page with a "record insertion form"

Status
Not open for further replies.

ProjectX

Programmer
Oct 7, 2002
11
GB
Hi

Trying to use request.form on the success page after dreamweavers "record insertion form" but it returns nothing

anyone know how to do this?
 
I guess this is the same problem I had. After using a forms data in an insert record behaviour you are unable to reuse the forms fields again?

I cant remember how I got round it but it wasnt a simple solution. I will have a browse round my files and get back unless anyone else can come up with an answer. The secret of life is honesty and fair dealing. If you can fake that, you've got it made.
Groucho Marx (1895-1977)
 
yeah it happens when you use the insert record behaviour. When it goes to the success page, you cannot use request.form or request on there (or so it seems)
 
There are some ways to reuse information from a form.

First of all, you may include necessary information into url of success page and get it later (on success page) by Request.QueryString.

Second, you may put necessary information into Session object and use it later.

Third, put info into Cookies and then retrieve it.


Say if you need examples or real code help! Good Luck! :)
 
well, cant use the first way cause this is what im trying to do atm. Dreamweaver re-directs to the "record inserion page" (ie - the same page the form is on) after you hit submit .. then goes to the "success page" .
Therefore i cant use the first method cause information from the form is lost.

2nd method sounds interesting tho, do you have a simple example i can look at?
 
example:

'put your information into Session
'Session("AnyNameYouWant") = someValue
'Session("AnyNameYouWant") - give a name to Session object
'that you will use later
'someValue - any value you need to assign to Session
Session("FirstName") = "John"


'get value from the Session object on the page you need
Response.Write(Session("FirstName"))
or
Dim strFirstName
strFirstName = Session("FirstName")
Response.Write(strFirstName)

Is it clear?

But I'm sure you can use first way - post your code and we'll see how to. Good Luck! :)
 
looks great ill test it in a bit, i take it there is a seperate "session" for each user connected?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top