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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP to ASP

Status
Not open for further replies.

tinapa

Technical User
Nov 12, 2008
81
GB
hi guys, im totally newbie to php. i need to convert a php script to asp and this seems to be not working. can you please have a look to see what's wrong in my asp script?

thanx

the php script:
.
.
if(isset($_GET['getCountriesByLetters']) && isset($_GET['letters'])){
$letters = $_GET['letters'];
.
.


my asp script:

.
.
If (Request.QueryString("getCountriesByLetters") <> "" AND Request.Qerystring("letters") <> "") Then
letters=Request.Querystring("letters")
.
.




 
Hi

Other then the obvious typo ? No idea. Maybe in a forum with ASP-related topic...
Code:
If (Request.QueryString("getCountriesByLetters") <> "" AND Request.Q[highlight]u[/highlight]erystring("letters") <> "") Then
letters=Request.Querystring("letters")

Feherke.
 
thnx faherke, corrected the typo still didnt do it.
 
Perhaps someone who knows ASP may be able to help:

forum333
forum855




----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Hi there,

You original code works as long as you have an "End If" statement.

eg
Code:
<%@ Language = VBSCRIPT %>

<%

If (Request.QueryString("getCountriesByLetters") <> "" AND Request.Querystring("letters") <> "") Then
letters=Request.Querystring("letters")

response.write letters
end if

%>

Remember- It's nice to be important,
but it's important to be nice :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top