...

View Full Version : Passing info through the Address bar



BH8orzAsp
03-22-2005, 05:32 PM
Ok, im not sure if this is the best place to post this as it is using ASP (jscript and vbscript)-- However i'll post it here anyhow

so what im trying to get from my url is the last value that is in the URL ( i passed it either as

/Selectby.asp?Title
/Selectby.asp?Author
/Selectby.asp?Category
/Selectby.asp?ISBN

(depending on which button they click)

.. and im not sure how to look in the Selectby page ( in any language really... ASP java ... vbscript ) to see what was passed to proceed as nessisary..

Any help would be greatly apprishiated :) :thumbsup:
( or if you wanna point me in the right place to post this question if its the wrong place that'd be great too! )

Mr J
03-22-2005, 07:36 PM
Please try the following in your Selectby page


<script type="text/javascript" language="javascript">
<!--
if (location.search.length > 0)
dataPassed = unescape(location.search.substring(1));
alert(dataPassed)
//-->
</script>

BH8orzAsp
03-22-2005, 09:26 PM
:thumbsup: :D
Thank-you so much Mr.J
you've cleared allot of problems up Mr. J

Thank-you a million red swordfish! lol



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum