急求ASP程序设计高手!下面是ASP程序设计编程题!明天就要交了!~~

急求ASP程序设计高手!下面是ASP程序设计编程题!明天就要交了!~~,第1张

自己编写调试通过,不见得是最简单的方法。希望能帮到你。

<form

id="form1"

name="form1"

method="post"

action="?action=submit">

Please

Input

Your

Words

Here:

<input

name="strings"

type="text"

id="strings"

/>

<input

type="submit"

name="Submit"

value="GO"

/>

<input

name="action"

type="hidden"

id="action"

value="submit"

/>

</form>

<%

if

request.Form("action")="submit"

then

a=request.Form("strings")

n=len(a)

dim

temp_num,temp_words,temp_space,temp_other

temp_num=0

temp_words=0

temp_space=0

temp_other=0

for

i=

1

to

n

word=asc(mid(a,i,1))

if

word=32

then'空格

temp_space=temp_space+1

elseif

word>=65

and

word<=122

then

'字母

temp_words=temp_words+1

elseif

word>=48

and

word<=57

then

temp_num=temp_num+1

else

temp_other=temp_other+1

end

if

next

response.write

"你输入的字符串:<span

style='color:redbackground-color:

#CCC'>"&a&"</span><br>"

response.write

"空格数:"&temp_space&"<br>"

response.write

"数字:"&temp_num&"<br>"

response.write

"字母:"&temp_words&"<br>"

response.write

"其他:"&temp_other&"<br>"

end

if

%>

3。post方式

4。好像是server对象

5.post 方式

6。session中存放用户名和登陆次数啊,每次登陆时验证一下次数是否大于3

7。用post方式吧,里面用隐藏域

1.vbscript

2.cookie Response .cookie() Request.Cookie()

3.21行31列

4.LANGUAGE pageCode

5.Response.end()

6.application_onStart application_onEnd

7.方法 属性

8.fileisExists() 物理路径

9.关系型

10.局部变量 全局变量


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/yw/11135923.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-05-13
下一篇2023-05-13

发表评论

登录后才能评论

评论列表(0条)

    保存