|
-
Jan 9th, 2001, 11:49 AM
#6
Thread Starter
Hyperactive Member
Steve,
1.) My problem is that I want to know what COUNTRY was selected BEFORE going to another page.
2.) When I reach my details page I need to know which COUNTRY/STATE/CITY was selected in the previous 3 pages so that I can query the DB with the those details - thats why I need to POST the page and not simply response.redirect "whateverpage", because by using redirect my hidden inputs wont be "pulled thru" to the next page - I MUST POST the page - That, is how I understand it!!
3.) Let me explain what I need again.....
In the COUNTRY page
When a COUNTRY is selected from the dropdown and submit is clicked the redirectpage function (as explained in my first post) must be executed and within that function I need to find out what COUNTRY was selected, do a sql query on my STATES table to find out whether I have STATES for that COUNTRY and then something like this..
if NOT eof then (ie. I have states)
document.frmcountry.action = "state.asp";
document.frmcountry.submit();
else (ie.I do not have any STATES on my db for this COUNTRY)
document.frmcountry.action = "city.asp";
document.frmcountry.submit();
end if
So, BEFORE(!!) leaving the COUNTRY page I must find out
1.)What COUNTRY was selected
2.)whether I have STATES for that COUNTRY
3.)and then go to either CITY or STATES page.
I hope this makes a bit more sense.
Thanks for your help - I do appreciate it.
T
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|