哆哆 发表于 2013-5-19 22:56
& B) @5 Z* w% y- S9 [我目前还没遇到这种情况
6 h5 j( c! P5 g" P ~这种情况应该是其安全考虑,编程的时候过滤了特殊符号
* W' N, b* z2 s0 z不过我想,如果是这种情况, ... O, R+ K, O; P7 t7 ~! Q
roboform教程写到大小写敏感,如果字段名包含这些 (, . - ! ?)特殊字符,robo会先移除这些特殊字符再进行匹配。上面的abc_d,移除后就是abc d这样子了,按理应该可以匹配到的。
2 g/ C& c$ B4 S0 a# W- c7 f现在问题是表单上有多个select控件时,如年月日三个select控件,
0 N# f& E" C, N1 S; G
' J$ m7 P+ a# \" x. _只能自动填写第一个,后面的月、日不能自动填写。+ Q2 O/ ~0 H" |% C
下面是对应的HTML代码,我想字段名应该没填错吧,年月日三个字段名分别是bday_y,bday_m,bday_d- <select name='bday_y' class='select'>
) v, v! j, I5 ]: e- ^ - <option value=''>Year</option>7 K+ D! ?( Z g6 V {' B+ P k
- <option value='2013'>2013</option>
( j( F7 B. E$ b9 s& h - <option value='2012'>2012</option>
( K/ _9 _8 y" g; w8 j9 @0 Z - <option value='2011'>2011</option>
6 x8 D0 O# L$ [# u: n - <option value='2010'>2010</option># l9 e- {1 e( ?
- <option value='2009'>2009</option>
J$ q; u3 c9 D8 l9 r - <option value='2008'>2008</option>
% m- B0 n6 L6 \! J- L+ ]2 ^ - <option value='2007'>2007</option>
0 x) Z/ c/ W, W3 |( s! o - <option value='2006'>2006</option>
3 Z) Z% d- A% p$ ~ - <option value='2005'>2005</option>
1 ~; i1 U2 @0 L' l6 {9 \: q - <option value='2004'>2004</option>. }& k0 g. ?0 M( F
- <option value='2003'>2003</option>" g u: V* \/ i: Y5 A( ]
- <option value='2002'>2002</option>
' N2 _. I+ w4 `: p& G. d8 x8 o - <option value='2001'>2001</option>& W8 y. T' d! F- T
- <option value='2000'>2000</option> U4 y2 C4 x1 d1 m. ~: A( E4 m y
- <option value='1999'>1999</option>
/ ~, x' F _8 v- |( O/ ?7 N - <option value='1998'>1998</option>3 q" O; j# D& O; a+ E" {
- <option value='1997'>1997</option>
: a& @! E( P7 h/ x% v5 o - <option value='1996'>1996</option>
; d7 f/ ]4 L" l' `" J - <option value='1995'>1995</option>: F' N- V8 I0 _% E5 S" V# d8 J) g
- <option value='1994'>1994</option>5 [% r; `8 p& s8 \( Z1 \: D$ h
- <option value='1993'>1993</option>* W4 d$ l% U/ a; G: L
- <option value='1992'>1992</option>
3 C! Z3 H5 N n( l" ?( F7 { - <option value='1991'>1991</option>
; q0 Z, z+ k* _! t/ A - <option value='1990'>1990</option>
: Y" V4 C' {* f+ p - <option value='1989'>1989</option>
" M" C' p/ Q: q& e7 c - <option value='1988'>1988</option>
& r# d5 d8 Z( l0 U - <option value='1987'>1987</option>" O( N7 e5 a& g/ A; J4 T& H
- <option value='1986'>1986</option>
/ y/ }: _* ], T$ L - <option value='1985'>1985</option>" F: H4 z6 q: J& B0 t( O0 h: R
- <option value='1984'>1984</option>
+ J1 p3 ^6 `% c$ X% q- Y, G - <option value='1983'>1983</option>
3 c% z5 F: h4 |. {5 T5 K - <option value='1982'>1982</option>1 H- L9 V# s( K
- <option value='1981'>1981</option>
0 c5 ^7 q' X _ - <option value='1980'>1980</option>3 n6 o# U$ @/ w$ A% p* d
- <option value='1979'>1979</option>
* a- {! ~1 h I, A6 h( E; { - <option value='1978'>1978</option>
- A* S! S |" t. a+ \ - <option value='1977'>1977</option>
0 C& i" f( ]% h+ ]1 d( b: F% c - <option value='1976'>1976</option>; l4 z1 ^5 ?+ f- D" z( ?
- <option value='1975'>1975</option>' x+ y! r" H. ] a1 ^
- <option value='1974' selected='selected'>1974</option>+ f; R! }9 T) z+ u8 C
- <option value='1973'>1973</option>0 r$ T( U0 w- N* q3 m2 j
- <option value='1972'>1972</option>
. q% h- k6 m/ K1 q3 v, X% H _ - <option value='1971'>1971</option>
o* m- b$ _( j, e- W - <option value='1970'>1970</option>! `' q/ y% w' a( W% P
- <option value='1969'>1969</option>
1 ^. j2 b4 a0 { - <option value='1968'>1968</option>% y5 x' ^% T) C9 N) q
- <option value='1967'>1967</option>
" T+ b9 |3 R b' E+ B. y: _ - <option value='1966'>1966</option>7 r2 c3 _6 _4 `7 q1 p! z' Y2 \
- <option value='1965'>1965</option>" m9 b7 F4 ]+ m$ d- O
- <option value='1964'>1964</option>/ ~+ ^3 B! |9 U' |
- <option value='1963'>1963</option>) L8 m1 \8 b, i. u
- <option value='1962'>1962</option>
' q5 i5 p3 |2 u - <option value='1961'>1961</option>. C7 s) C0 _8 @5 O d6 M8 W
- <option value='1960'>1960</option>
9 e) a2 b/ @, c5 s - <option value='1959'>1959</option>$ f/ G/ m. o% K+ o
- <option value='1958'>1958</option>
9 |# L8 f* ]2 D) c+ m3 d5 h - <option value='1957'>1957</option>4 r; B" S3 S9 d
- <option value='1956'>1956</option>
1 E7 h3 X/ C0 ]* E4 ?* `, Y7 F - <option value='1955'>1955</option>
. T% s2 e6 j+ e- i2 W" Q - <option value='1954'>1954</option>
' r# z6 `$ J& |- e2 L7 c" ]. @ - <option value='1953'>1953</option>
$ X' @0 `+ B. R# V3 L9 _ - <option value='1952'>1952</option>
" v3 o) ]- S0 K/ G - <option value='1951'>1951</option>
$ w9 V# L, K- P- j: ~& a$ y6 v - <option value='1950'>1950</option># R- q! X! _0 {8 W9 k, `" M
- <option value='1949'>1949</option> U6 B0 x, R2 P
- <option value='1948'>1948</option>
* ]3 _$ P$ x ~0 x) |7 s: X' p. _; s - <option value='1947'>1947</option>. V$ G5 K/ ^8 F
- <option value='1946'>1946</option>
, |3 ~4 h! h* [9 e$ ]$ h! s. a - <option value='1945'>1945</option>
4 ?0 H# g7 ]7 |3 S" I - <option value='1944'>1944</option>% y$ J. ?3 q6 U
- <option value='1943'>1943</option>
! Q, I0 A) F& x p - <option value='1942'>1942</option>0 Q3 n0 P7 L5 c) y
- <option value='1941'>1941</option>* |& y+ R ?* y6 z4 H* s
- <option value='1940'>1940</option>
4 Q( V& {. A0 d0 m# { - <option value='1939'>1939</option>
2 e' o z4 I/ H; r* u - <option value='1938'>1938</option>
1 X# X4 A* m+ t7 q* g - <option value='1937'>1937</option>
7 o4 g: C+ F) R2 v7 C - <option value='1936'>1936</option>
* F- B1 G0 C& N" F% e5 `5 N* h - <option value='1935'>1935</option>
* {! k) ^0 N0 i1 C5 O- m& L* E - <option value='1934'>1934</option>
/ `3 Z4 W+ K, c- w+ a [ - <option value='1933'>1933</option>0 z. S, ?0 ]+ \' n" I2 Q" [% z
- <option value='1932'>1932</option>
8 c7 L$ A( e& i. q; C - <option value='1931'>1931</option> n' U. a1 e& s" D$ }
- <option value='1930'>1930</option>
7 ?1 Q O/ ~: s% l - <option value='1929'>1929</option>/ j- c2 Z1 j4 F) c4 B. Y O0 s
- <option value='1928'>1928</option>* H3 C9 N/ X6 Y) u3 ], f0 P/ @. U
- <option value='1927'>1927</option>5 {3 |# l$ X4 y" z) H
- <option value='1926'>1926</option>0 B k- H, E& m( G
- <option value='1925'>1925</option>% X' ?/ u5 G1 f) Y
- <option value='1924'>1924</option>' p2 e0 x% z: p: v
- <option value='1923'>1923</option>
2 b0 x6 n; S7 R$ s# { - <option value='1922'>1922</option>" V6 ]$ ~& d" y; Y
- <option value='1921'>1921</option>- k$ |, r9 t U" [- }2 f0 H
- <option value='1920'>1920</option>! D" h6 j7 v# Q7 l4 m
- <option value='1919'>1919</option># k, ~2 l9 b5 q: G. @! P
- <option value='1918'>1918</option>
& ?: n: B! h6 p4 u4 f - <option value='1917'>1917</option>
1 w* l: s$ i/ { e( _, s7 k - <option value='1916'>1916</option>
" Z$ E! n1 E! W+ ]% p) K - <option value='1915'>1915</option>* [1 \, V: I" D- A5 `: F
- <option value='1914'>1914</option>
3 g& k, ` I. D3 \4 `7 P - <option value='1913'>1913</option>$ ?- _, l5 O* ]! n, \
- <option value='1912'>1912</option>- s! {" G9 [5 M& ]
- <option value='1911'>1911</option>3 ~( ^9 _- d" `" K, r' [
- <option value='1910'>1910</option>
1 R' C; C b9 ~! r- L5 Z- b - <option value='1909'>1909</option>" m: G1 V( i2 F. h- U9 r
- <option value='1908'>1908</option>2 G2 @. i: Z& L, G+ M1 e
- <option value='1907'>1907</option>2 h5 h0 X( |, I( P; t5 g
- <option value='1906'>1906</option>; X/ W$ ~1 F/ M% F: Q7 _! @
- <option value='1905'>1905</option>5 a- p$ F+ {- T& R3 |3 n
- </select>
, c! m3 g! T6 U5 ^$ i - <select name='bday_m' class='select'>
7 Z# k! t7 t& l8 X | - <option value=''>Month</option>$ Q+ Z/ {5 v# u7 X7 f" X
- <option value='01'>January</option>% K5 K* W. L) a: J8 s
- <option value='02'>February</option>' l$ C* H( g! [1 q! x
- <option value='03'>March</option># w6 z: d+ W. E+ r7 w1 D
- <option value='04'>April</option>
* _8 F+ F; t# [$ J - <option value='05'>May</option>
0 J- \: ]: k! E! P' [# g$ v - <option value='06'>June</option>3 n5 ^! D, N9 @( a4 x
- <option value='07'>July</option>2 g+ v- V* c2 ?7 V5 t6 b3 f8 J
- <option value='08' selected='selected'>August</option>+ X1 B6 E$ H }2 m7 i7 j7 C
- <option value='09'>September</option>
- K0 g5 H+ p" o - <option value='10'>October</option>+ c2 Q6 J1 K, ^/ F
- <option value='11'>November</option>& \' ]5 a/ k& w% p( l
- <option value='12'>December</option>
- s( q& C# I/ t. E+ K2 E - </select>
, V# y0 r# f- A- D5 i - <select name='bday_d' class='select'>3 ]* d4 G' F6 ~/ f
- <option value=''>Day</option>) M; S/ h+ D z# J" a+ @- m6 x
- <option value='31'>31</option>! R A3 I( p. `; K C' `4 b
- <option value='30'>30</option>; r" @$ B% d2 q' h
- <option value='29'>29</option>; y9 T" i( p: |2 C. e: c2 H
- <option value='28'>28</option>% ^4 X: p/ e5 f2 c6 ~; O
- <option value='27'>27</option>
% R, N0 x6 B$ c" \( m - <option value='26'>26</option>8 h$ d7 K: r( i) _+ K6 g
- <option value='25'>25</option>
, z# t& d) G% Y+ j; C - <option value='24'>24</option>
; K- a; Z( G( L6 c" j/ J - <option value='23'>23</option>
) T. a6 Q3 W* u" J - <option value='22'>22</option>! a7 w# E5 |* ]3 @
- <option value='21'>21</option>9 Q3 X2 G+ K: s4 {
- <option value='20'>20</option>+ r7 L: |! [( h4 Z/ T9 k4 B8 P1 j8 H
- <option value='19'>19</option>; N- c" m3 o' i8 G
- <option value='18' selected='selected'>18</option>
* h. o' Y+ [+ z# e9 b+ ?! @3 ] - <option value='17'>17</option>
# x* G; M, T7 k/ s2 B* r - <option value='16'>16</option>& m% h+ t& y% _2 l( n
- <option value='15'>15</option>
! f" q9 V: S0 m$ Z( E4 p - <option value='14'>14</option>& n7 B, k) r0 `% R
- <option value='13'>13</option>! t T+ r8 ^ [1 k1 f: r8 `
- <option value='12'>12</option>
5 I. j3 d) \" T& S7 T, w2 V - <option value='11'>11</option>
6 e* t1 y$ i! m6 ~! P$ N - <option value='10'>10</option>
- H5 C/ ~/ @& D. \; j1 k - <option value='9'>9</option>* e8 w* i0 s% H4 U- q: ?
- <option value='8'>8</option>
+ ^/ ^( O5 d% R1 E+ g+ H a; Y - <option value='7'>7</option>$ w$ e! e$ x0 r' c+ y4 w% F( e8 n
- <option value='6'>6</option>/ N, j' {7 M- U }2 z# b
- <option value='5'>5</option>
3 y4 }& k+ A+ [0 y+ x8 M/ @) j7 b- q - <option value='4'>4</option>/ p; Z8 P6 x, T1 L: ~
- <option value='3'>3</option># T$ C' h9 h$ [9 ^+ Q
- <option value='2'>2</option>
. N* }2 M1 E% D7 O - <option value='1'>1</option>+ S1 T* |7 J. ^ W/ s8 w Z3 e
- </select>
复制代码 |