Forgotten your password?

Forum Index > ASP Development > Add paremeters to url and retreive in new page.
Author Message
little example of forwarding params.

You can add parameters to a URL:
1
2
<a href="welcome.asp?fname=Meka&lname=Meka">
Go to Welcome Page</a>


And retrieve the values in the "welcome.asp" file like this:

1
2
3
4
5
6
<%
fname=Request.querystring("fname")
lname=Request.querystring("lname")
response.write("<p>Hello " & fname & " " & lname & "!</p>")
response.write("<p>Welcome to my Web site!</p>")
%>



more examples will come later ;)

-/Meka
querystring could be use to many things like build up a meny very easy.
Thanks meka, i'm looking to start learning ASP some time soon, look forward for more examples :)
hi, i would recommend to you, learn PHP not ASP... :)
I already know php lol
then why learn asp? its no where near as good as php
Wanting to get involved into the business creation of websites, to-date asp is mainly the language they're coded in.
hmm not really... i would disagree,

i have only a couple of my customers need their website in asp, due to the fact they have all their customers sites also in asp, however, i always recommend new customers to have their website in php for performance reasons, and 100% go along with what i say... the only reason alot use asp is because they don't know about php, but if you show them what it is and what it does, you will be quite suprised.....

also alot of webcarts/shoppingcart software are written in PHP, and many businesses use pre-written shopping carts.
[Login or Signup to view links and downloads.]


however i suppose it is good to know both the languages in case you need them.

btw
[Login or Signup to view links and downloads.]
Yeah nicely put, I'd like to know ASP as i've had to forward a couple bits of work to a friend who knows ASP, whereas if i knew both languages, i could get on without needing to forward any bits of work. :P
anyways... have any questions, just fire away in new thread < regarding the subject, and i'll try help you out as much as poss
Forum Index > ASP Development > Add paremeters to url and retreive in new page.