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

script error

Status
Not open for further replies.

idokissos

Technical User
Oct 19, 2002
9
IL
hey, i'm new here.
can someone tell me why can't i put 2 variables in this script? when i do only one it work fine, but when i copy the second and change some parameters, the script doesn't work at all, saying "Internal Error" - the page could not be displayed(...)".
the script is:
<%
x=request.querystring(&quot;name&quot;)
if x=&quot;fast&quot; then
response.write &quot;<PARAM NAME=URL VALUE=if x=&quot;slow&quot; then
response.write &quot;<PARAM NAME=URL VALUE=else
response.write &quot;<PARAM NAME=URL VALUE=end if
%>

thank you, :)
ido
 
where should i exactly put it?
the thing is: when i press ie.asp?name=fast, it writes a specific <PARAM ...> statement, when i press ie.asp?name=slow it writes another <PARAM ...> statement, and when it's just ie.asp, it writes another <PARAM ...> statement
 
<%
x=request.querystring(&quot;name&quot;)
if x=&quot;fast&quot; then
response.write &quot;<PARAM NAME=URL VALUE=end if
if x=&quot;slow&quot; then
response.write &quot;<PARAM NAME=URL VALUE=else
response.write &quot;<PARAM NAME=URL VALUE=end if
%>

you have a few combinations you can do with the if statemetns syntax. up to you on which one
for instances
if condition then

else

end if

or
if condition then

elseif condition then

end if
and you can set them in blacks as
if condition then

end if
if condition then

end if
if condition then

else

end if

as your code is doing. I dare to learn more
admin@onpntwebdesigns.com
 
I think he wants...

<%
x=request.querystring(&quot;name&quot;)
if x=&quot;fast&quot; then
response.write &quot;<PARAM NAME=URL VALUE=
elseif x=&quot;slow&quot; then
response.write &quot;<PARAM NAME=URL VALUE=else
response.write &quot;<PARAM NAME=URL VALUE=end if
%>

-----------------------------------------------------------------
[pc] Be nice. It's only doing what you tell it to do.
mikewolf@tst-us.com
 
If he can't tell you than I won't
ziplip.gif


;-)

-Tarwn --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
 
hey guys, :)
I just wanted to thank you very much for all your replys to my question. It works perfectly!! It's nice having ppl like you in case you need help,
so again thanks,
c ya
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top