Chinaunix

标题: 如何过滤空格? [打印本页]

作者: liu362401    时间: 2004-12-23 17:01
标题: 如何过滤空格?
在表单提交时如何滤掉空格,让提交值不为空.
作者: 笨狗    时间: 2004-12-23 20:38
标题: 如何过滤空格?
$str =~ s/\s+//;
作者: superdoctor    时间: 2004-12-28 14:37
标题: 如何过滤空格?
[quote]原帖由 "liu362401"] 在表单提交时如何滤掉空格,让提交值不为空.[/quote 发表:


这种东西用js作比较好
作者: liu362401    时间: 2004-12-28 16:59
标题: 如何过滤空格?
谢谢各位的建议!




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2