Text Play in ASP

ASP is what’s used in Microsoft’s IIS (Internet Information Server) to give it some interactivity.

I’ve recently gotten a contract to do development in it. Now most of my experience is just doing ASP changes to normalize and verify data.

This is just something I quickly threw together:

Image

It just asks you name and age.

And then it does this to it:

Image

I had it originally doing ROT-13 but then did ROT-6.

It’s done like so:

<code>

Dim name, age, rot13name, i, j
name = Request.QueryString(“Name”)
age = Request.QueryString(“Age”)
Response.Write(“Name: ” & name & “<br />”)
Response.Write(“Age: ” & age & “<br />Rot13 Name is: “)
For i = 1 to len(name)
  Response.Write(chr(asc(mid(name,i,1))+5))
Next
Response.Write(“<br />”)

Response.Write(“But that’s not all!”&”<br />”)

For j = len(name) to 1 step -1
   Response.Write(mid(name,j,1))
Next

</code>

When you hit the submit button the action takes it to an ASP script that does the textual prestidigitation.

 

Advertisements

3 thoughts on “Text Play in ASP

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s