Click to See Complete Forum and Search --> : php script into asp


harbor4393
04-26-2006, 05:04 AM
I am interested in tracking keywords that I use in ppc marketing. I was given the following php script. Here is an example:

referring url. www.mysite.com/widget.psp?keyword=balls

link on page to capture keyword

www.mysite.com/general.psp?tracking=<?php echo $_GET['keyword'];?>

The code works perfect but I would to know how to do this in asp. What is the equivalent code in asp for <?php echo $_GET['keyword'];?>

Thanks

candelbc
04-26-2006, 08:43 AM
You'll want to use REQUEST.QUERYSTRING to grab the Query string variables..

Example:

http://www.mysite.com/widget.psp?keyword=balls


<%

Response.Write "Your Keyword is: " & Request.Querystring("keyword")

%>


Hope this helps get you on track..

Here is a great PDF that you can use as a reference. It's Manas Tungare's if you've ever heard of it..

http://www.manastungare.com/publications/asp/tutorial/A_Practical_Guide_to_ASP.pdf