Forum Moderators: open
I managed to get earlier problems fixed so thanks for everyones help.
Now i have a new problem.
What i am building is a page whereby the user types in there fullname and email and hits submit.
On submit 2 things happen,
1) The details are stored in a database
2) The user is taken to a bigger form where there name and email are auto filled.
The problem is that i cannot pull out the information from the Db into to the form.
I am trying to pull the data = to the session id that was sent from the first form....if that makes sense.
MY SQL string reads
"SELECT f_name, s_name, email from tbl_mytable WHERE session_id = <%request.form("session_id")%>"
But it does not work.
I can get it to work if i type:
"SELECT f_name, s_name, email from tbl_mytable WHERE session_id = 12345678"
12345678 being an example of an existing value in the session_id column.
Can anyone help?
webboy
If your page is redirecting after inserting a record, the following page cannot read from the form on the previous page.
If the page is redirecting after inserting, you may want to tag the session id as a querystring to pick up on the second page.
page2.asp?id=123465
and on page2.asp:
"SELECT f_name, s_name, email FROM tbl_mytable WHERE session_id = " & Request.QueryString("id")
If the above post doesn't work, take a look at your METHOD for the form. You might have to use Request.Form("session_id") instead.
Submitting will work, but the inserting will happen on the 2nd page, not the same page.