Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Session variable in DWMX
Old 08-18-2005, 12:07 PM Session variable in DWMX
VegaLA's Avatar
Skilled Talker

Posts: 64
Trades: 0
Hi all,
i'm still working on my 'search' page but have made some progress !
What I need to do now is pass a session variable to the next page. I have a text box on a form and a session variable called ptype. I have bind the session to the empty text box for the user to type in. The form has a submit button and the code to open the next page is as follows...

srchresults.asp?ID=<%= Session("ptype") %>

The next page should list the results filtered from the session variable but when the results page opens the URL at the top of the page looks like this...

http://localhost/mysite/Intranet/srchresults.asp?ID=

The text the user input in the textfield is not there.
when i open the recordset property for the results page and test it by manually typing in text it pulls up results !!
Can anyone advise me on where I am going wrong please ?

Mitch........
VegaLA is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-18-2005, 01:47 PM
ExpressoDan's Avatar
Ultra Talker

Posts: 317
Name: This Space for Rent
Location: Georgia
Trades: 0
Why are you using a session variable to pass the form information? Common practice for something like this would be to use the GET form action.

Then you can filter your recordset based on Request.QueryString("ptype")

Or in dreamweaver, create a recordset and the where clause would say:

Where your_column_name = srch

Then set the variables as
Name: srch default vaule: 0 Run-time value: Request.QueryString("ptype")
ExpressoDan is offline
Reply With Quote
View Public Profile Visit ExpressoDan's homepage!
 
Reply     « Reply to Session variable in DWMX
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15520 seconds with 12 queries