#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Posts
    342
    Rep Power
    12

    display or echo...


    i don't know what it called. I want to echo by using ASP like for example

    when you go to link with the keyword in the address url browser http://domain.com/link.asp?keyword=blahblah

    PHP Code:
    <% = keyword %> 
    but this code above didn't show "blahblah" in the result page.


    i know the php code works fine,
    PHP Code:
    <?=$keyword?> or <?PHP echo $keyword ?>
  2. #2
  3. No Profile Picture
    Standards User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2003
    Posts
    146
    Rep Power
    12
    If you're getting "keyword" from a Query String, you need to use the Request.QueryString object. As in
    PHP Code:
    <%=Request.QueryString("Keyword")%> 
    I believe the Echo "equivalent" in ASP is Response.Write(),
    PHP Code:
    Response.Write("Text")
    Response.Write(Variable)

    ' Or the shortened version as you have found
    <%="Text"%>
    <%=Variable%> 

IMN logo majestic logo threadwatch logo seochat tools logo