哆哆 发表于 2013-5-19 22:56 4 i& r, o- S3 Z U7 t. V; i& p* X9 ^
我目前还没遇到这种情况0 c5 A+ T/ B! N7 r
这种情况应该是其安全考虑,编程的时候过滤了特殊符号9 g6 b; }) p m' P' y u
不过我想,如果是这种情况, ... * m9 ^( z! x" s: p7 {
roboform教程写到大小写敏感,如果字段名包含这些 (, . - ! ?)特殊字符,robo会先移除这些特殊字符再进行匹配。上面的abc_d,移除后就是abc d这样子了,按理应该可以匹配到的。) P9 l$ P5 Y+ R. G1 A
现在问题是表单上有多个select控件时,如年月日三个select控件,
' ]) a% l$ l7 a: I. t
. e/ g9 u% v% B! d% t只能自动填写第一个,后面的月、日不能自动填写。
5 z$ ], _) Q3 L; K下面是对应的HTML代码,我想字段名应该没填错吧,年月日三个字段名分别是bday_y,bday_m,bday_d- <select name='bday_y' class='select'>
4 s( t- s' l [" i4 a% ` - <option value=''>Year</option>
# e3 g/ u2 }2 K7 Y: l - <option value='2013'>2013</option>
6 \- R9 V1 l+ m - <option value='2012'>2012</option>
' L0 f9 ?4 g5 g* V1 ]1 A, V - <option value='2011'>2011</option>
O! F3 v$ [! f. b4 I4 C# F. K3 A - <option value='2010'>2010</option>% G8 f" E3 r8 ?5 m! @' }$ `
- <option value='2009'>2009</option>) W5 [1 \! }. W
- <option value='2008'>2008</option>
* M$ y6 M* ], K; F8 l, @ - <option value='2007'>2007</option>
& ?& [" X1 w2 n5 `) S- w- j, i, w- e - <option value='2006'>2006</option>
6 S) d7 }6 G/ W - <option value='2005'>2005</option>+ Z I. C; ~4 `5 A' I
- <option value='2004'>2004</option>
9 U/ o9 D* J, g1 U" Q; _, a2 m - <option value='2003'>2003</option>; f9 t! @. Z e6 i$ o6 f
- <option value='2002'>2002</option> [3 E% r$ K+ h# O! N
- <option value='2001'>2001</option>
+ P& m" o1 M( c% H* Q2 E r - <option value='2000'>2000</option>
. S W6 N; k7 ^ \; j2 B) y - <option value='1999'>1999</option>
8 ?7 t2 z+ v: g/ p9 I - <option value='1998'>1998</option>7 g8 B( a& X" y$ v7 M) y( F
- <option value='1997'>1997</option>! u9 Y$ x$ v7 M- Q
- <option value='1996'>1996</option>
4 S8 s. }: s5 }$ S7 \1 U - <option value='1995'>1995</option>
S9 ^: b0 [$ ~6 q1 B - <option value='1994'>1994</option>
0 X( t6 p9 h) A1 @' l a9 v - <option value='1993'>1993</option>
`$ T% s" i8 E5 D, R9 m! W! r - <option value='1992'>1992</option>
9 C& V0 O2 D8 }! ?( x - <option value='1991'>1991</option>
" `0 w: p, a: l9 N - <option value='1990'>1990</option>
/ B4 x) y6 \4 y% s - <option value='1989'>1989</option>
4 V5 {* @& P1 F: \ F - <option value='1988'>1988</option>
! e# J9 T' e' W6 ~ P- D4 f - <option value='1987'>1987</option>
: n6 [* I# u& ?+ Z" G, m - <option value='1986'>1986</option>
# L* O! X, d, Y8 ]1 _ - <option value='1985'>1985</option>
0 F4 z# i( D4 I - <option value='1984'>1984</option>
- S# P" |( J% g8 ?7 A( C - <option value='1983'>1983</option>
3 b7 A) X) H: I2 _ - <option value='1982'>1982</option>
( w/ G& L6 \, E - <option value='1981'>1981</option>
& B% o: g9 M$ q7 w9 h9 n - <option value='1980'>1980</option>+ {6 R5 T7 Y9 K9 w: P$ V& B$ e
- <option value='1979'>1979</option>1 I4 t3 O: a) F: D6 z7 B+ R
- <option value='1978'>1978</option>! ^- K; z5 H. D0 ?
- <option value='1977'>1977</option>8 F" {' a- {* ]/ j9 y
- <option value='1976'>1976</option>
5 f( F2 A. I" z1 Z - <option value='1975'>1975</option>! t* f1 M+ n8 m2 W: m& e: H5 @+ f
- <option value='1974' selected='selected'>1974</option>9 g. h: z' r7 O+ [& b. Q9 J9 N1 r
- <option value='1973'>1973</option>
3 y2 y# t% F# \( {, |) C - <option value='1972'>1972</option>5 J1 R0 v5 o v1 [
- <option value='1971'>1971</option>
/ x- a+ P" N7 K/ j - <option value='1970'>1970</option>
: V7 \$ L2 p% l, q$ k - <option value='1969'>1969</option>
; o4 k3 F' |+ R - <option value='1968'>1968</option>
* q+ y3 @) m( _% |0 `7 G - <option value='1967'>1967</option>4 j K1 I) q! Q) t) C/ D
- <option value='1966'>1966</option>' a2 b& }+ w* B. s! ], h; R+ W
- <option value='1965'>1965</option>7 D, _/ O4 a' X8 P7 L; [9 j* K
- <option value='1964'>1964</option>$ o% |. P, T/ ]4 _. \
- <option value='1963'>1963</option>0 l/ j U% o( Z$ ?2 ~
- <option value='1962'>1962</option>/ j6 m4 Q4 }" \( R$ g4 R
- <option value='1961'>1961</option>
- k: C w- u! F! }. w' y; R8 k5 _ - <option value='1960'>1960</option>9 O, T2 I" R" I* I6 a
- <option value='1959'>1959</option>( F6 G2 R3 S' {* g6 a) A
- <option value='1958'>1958</option>
Z0 Z4 q1 v+ V, r/ F - <option value='1957'>1957</option>
7 k/ n$ t$ w% c p* F+ _ - <option value='1956'>1956</option>
; U- g) t6 V2 V3 z: L6 X& {3 i - <option value='1955'>1955</option>! |( ?0 Y2 G' h" d/ @
- <option value='1954'>1954</option>
: a* z$ G6 D" g; N4 N, |# y1 C8 D - <option value='1953'>1953</option>5 f' G. Q7 V6 ]; l9 v3 u0 m- a. Y
- <option value='1952'>1952</option>
K: Z; `+ N6 j+ B4 _' r/ [ - <option value='1951'>1951</option>3 [3 r) p8 K5 P2 E% K9 N# e8 `# G
- <option value='1950'>1950</option>
, R( ~' l* L6 ~; Q- Y - <option value='1949'>1949</option>
9 F3 \% b2 {1 {# Z' C+ I) E7 D! \& m - <option value='1948'>1948</option>$ Y& b+ X$ r( e. s: _6 c
- <option value='1947'>1947</option>, M, I# R( U+ n& n% p/ a7 ]7 d3 n+ c
- <option value='1946'>1946</option> `6 {' |+ A# o8 M. x
- <option value='1945'>1945</option>4 ]/ O1 I3 p6 I9 q2 n" ^5 Q/ G, w
- <option value='1944'>1944</option>
9 ?( o, T; [7 o- l* _: r - <option value='1943'>1943</option>. D" d; t1 H* p7 M) _0 l% |
- <option value='1942'>1942</option>
& L G( ]0 U6 j - <option value='1941'>1941</option>: J& C- ]* w, A$ s. S) K
- <option value='1940'>1940</option>
5 b1 D# V$ b K5 O& x - <option value='1939'>1939</option>. ^! W( ^. e: j8 k/ m6 L
- <option value='1938'>1938</option>0 t6 P# q4 t% M, v7 U& m
- <option value='1937'>1937</option>; H! v) w, d' \! ^ q
- <option value='1936'>1936</option>
' f! I% C; F) F: {2 T - <option value='1935'>1935</option>' B# s/ [+ W* D
- <option value='1934'>1934</option>
' Z) X* M/ c# |- S- L9 _1 F5 C2 ?! @ - <option value='1933'>1933</option>
6 ~6 h9 O8 v. L( n$ i! O- d - <option value='1932'>1932</option>! E: k9 i9 u ]' Q' F6 B2 p
- <option value='1931'>1931</option>
B8 q) g' U* }6 v - <option value='1930'>1930</option>
; B+ o; _/ H/ W6 @% K: P - <option value='1929'>1929</option>4 i [; f- x r/ S
- <option value='1928'>1928</option>
( P* ^" k' C- w" B+ z; ]7 K( A - <option value='1927'>1927</option>8 F* a9 W7 b( R6 {$ c: u8 I7 _- O
- <option value='1926'>1926</option>
3 C9 }) K0 ^% s* {3 Q - <option value='1925'>1925</option>9 E( v" K+ G% n3 T# Y* \! z
- <option value='1924'>1924</option>$ K6 E& Q, q' s& \, W
- <option value='1923'>1923</option>4 X" ^- ^8 q- c4 k
- <option value='1922'>1922</option>! F2 c/ {) }- U/ d8 {
- <option value='1921'>1921</option>2 h' Q) L3 I# ]
- <option value='1920'>1920</option>
j$ Q8 r% u0 g2 ]2 U - <option value='1919'>1919</option> Z+ m6 c. l6 A% K w
- <option value='1918'>1918</option>
: i/ e# k6 b& w; F3 X7 L: W - <option value='1917'>1917</option>1 k1 [: y# E! N) Y" ]) S
- <option value='1916'>1916</option>
* V5 m& [; j& ^' v i; W* L: W5 D - <option value='1915'>1915</option>, e H) o7 b% J; t4 h# s0 U
- <option value='1914'>1914</option>1 j* N( r5 O! w3 n* h+ P! N9 ~
- <option value='1913'>1913</option>
8 T0 }/ b/ Y+ h+ i) K1 |) Z7 T3 I - <option value='1912'>1912</option>
' {! P1 k/ H3 f4 p+ L- N - <option value='1911'>1911</option>
3 S% _4 w& U3 r5 m8 w2 n5 M& U. _ - <option value='1910'>1910</option>
7 C/ E' B. y7 N) {) \ - <option value='1909'>1909</option>
8 O$ l9 H, e2 c - <option value='1908'>1908</option>0 J& B; B! l x3 E5 U
- <option value='1907'>1907</option>
9 V; F/ e$ P7 h8 ]3 v - <option value='1906'>1906</option>
0 e5 [& b! Q0 `8 t - <option value='1905'>1905</option>- q7 l3 Y1 @+ ?# z5 X
- </select>2 ^* F/ R9 ~! V9 q0 ]+ l- W
- <select name='bday_m' class='select'>: g2 v; g/ k3 X1 {
- <option value=''>Month</option>4 g/ }" D# J I2 P% i5 S5 i
- <option value='01'>January</option>
, r' s8 r' J4 v6 T* g - <option value='02'>February</option>5 j" j' E9 v, W7 K5 u
- <option value='03'>March</option>
/ X( _5 ^* \% S' Y% q - <option value='04'>April</option>, S# Q. i- G) H9 \
- <option value='05'>May</option>1 `/ X6 u3 J$ @; s. ~5 Q
- <option value='06'>June</option>
0 s1 c4 c1 }. C! [; o' ^ - <option value='07'>July</option>
; b: M; u- h' q3 B - <option value='08' selected='selected'>August</option># p2 ^/ h5 k, q! o
- <option value='09'>September</option>
8 A5 b9 z8 |9 d' i7 e/ I8 T0 T) f - <option value='10'>October</option>
2 L9 [2 R9 E) m7 ~ - <option value='11'>November</option>
0 u4 t6 J# N. Q" V) }1 D3 k8 ? - <option value='12'>December</option>
( I. g! g7 P' a7 k+ A; N - </select>
( p5 S& i. ?: w1 [; ~ - <select name='bday_d' class='select'>
2 Y& g+ @$ W0 ^/ L5 D - <option value=''>Day</option>
7 I! M" ]% j$ J, @# y; _ - <option value='31'>31</option>+ y+ _6 K4 u5 I) _
- <option value='30'>30</option>9 \. k4 F0 B5 s2 b3 }
- <option value='29'>29</option>' @9 W, M3 I! V% b" {: E. b4 O# V
- <option value='28'>28</option>7 Q* {5 s3 s u
- <option value='27'>27</option>- T6 l* H# M0 [: K
- <option value='26'>26</option>
7 h9 O7 K! R6 P; } - <option value='25'>25</option>7 U9 p+ o3 O2 V
- <option value='24'>24</option>
{" c, Z0 s3 n C - <option value='23'>23</option>
' x& t2 B V/ W/ }: H - <option value='22'>22</option>- N) H) ?! W8 W" Q7 b5 H5 z
- <option value='21'>21</option>
. a F9 ~4 e9 o, y# b! G - <option value='20'>20</option>- B* i# I& o% C! Y
- <option value='19'>19</option>
$ e/ W7 u U- o; D/ E0 W) Y4 z, H1 s - <option value='18' selected='selected'>18</option>
) _2 v$ I, n5 ~. ^, x4 i* H3 r - <option value='17'>17</option>( _/ F" z: ^2 H! q1 n) {) {
- <option value='16'>16</option>
$ u# @* e. w, B8 U, \ - <option value='15'>15</option>9 v5 i$ Y0 L' g* x
- <option value='14'>14</option>& p2 b. t1 T& W9 ^, ^4 l2 ]
- <option value='13'>13</option>9 ?. m6 {1 b; ~% N5 D$ t6 @( F
- <option value='12'>12</option>7 ^$ P, B& l9 N, p. T
- <option value='11'>11</option>0 ]- M0 W, c- t
- <option value='10'>10</option>2 L$ j. b8 z' w$ b/ _# _
- <option value='9'>9</option>4 T+ S- \# C3 h% ~: X$ T
- <option value='8'>8</option>- X4 r- V- V7 F! }
- <option value='7'>7</option>
6 A H& l2 Q* u - <option value='6'>6</option> @$ D' e6 O/ V
- <option value='5'>5</option>
$ p. W' v3 c D- [& E W - <option value='4'>4</option>
" `3 K3 k. q; r/ I x - <option value='3'>3</option>6 Q* T$ T i) M
- <option value='2'>2</option>+ l# {. W- J1 K4 B* O
- <option value='1'>1</option>( D0 I. ^7 U7 S
- </select>
复制代码 |