Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to read link variables

Status
Not open for further replies.

mThomas

Instructor
May 3, 2001
404
US
I am sure this is easy, but I'm a little lost as to how. I want to create a link in an email with variables and have those variables inserted into a SQL DB when someone clicks on the link.

The link would be something like:

Code:
[URL unfurl="true"]http://www.mysite.com/myscript.aspx?id=12345&email=mike@mike.com[/URL]

Once I can read the variables, I can handle the DB part. If someone can get me started on how to read the variables into a script, I would appreciated it ever so much.

tia... mike
 
I'm beginning to wonder if this is even possible using asp.net. I can do it easily in PHP, though PHP is not installed on the server I'm working on.

In PHP I would do something like this on an HTML page:

Code:
<a href="testing.php?test=mike">click here</a>

Then in the PHP script I would do something like:
Code:
<?php 

$t = $_GET["test"];

print "$t";

?>

Is there an equivalent in asp.net where I can place a link in an HTML page (not generated by asp.net) and pass a variable within the link, like above, to an asp.net script, say using VB, to read the variable?

Am I spinning my wheels?

tia...mike
 
I figured it out. I used Request.Querystring().

mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top