ciao,
come posso recuperare il valore contenuto all'interno di
<input type= ..... >
es: <input type=hidden ............ >
vorrei passargli il tipo di campo (in questo caso hidden) e vorrei ottenere tutto quello che ha associato
grazie
ciao,
come posso recuperare il valore contenuto all'interno di
<input type= ..... >
es: <input type=hidden ............ >
vorrei passargli il tipo di campo (in questo caso hidden) e vorrei ottenere tutto quello che ha associato
grazie
da dove devi recuperare il valore?
da un javascript della stessa pagina?
dal lato server di un'altra?
Fero
Vuoi conoscere nuovi Amici?
io non ho capito cosa devi fare, e soprattutto cosa c'entrano le regular expressions :master:
Purtroppo bisogna imparare che il computer non sbaglia...fa solo quello che gli dici di fare
www.netpolaris.it
codice:Function ReadFile(Name) Dim fso,File Set Fso = Server.CreateObject("Scripting.FileSystemObject") Set File = Fso.OpenTextFile(Server.MapPath(Name) , 1) ReadFile = File.ReadAll() File.Close() Set File = Nothing Set Fso = Nothing End Function Function GetTag(StrIn,Tag) Dim Match,Matches,Re Set Re = new RegExp Re.Global=True Re.IgnoreCase = True Re.Pattern = "<input\s(.*?)type=\s*?([\""\']?hidden[\""\']?)(.*?)>" Set Matches = Re.Execute(StrIn) Response.Write "Tag trovati : " & Matches.Count & " " For Each Match In Matches Response.Write Server.HtmlEncode(Match.subMatches(0)) & Server.HtmlEncode(Match.subMatches(1)) & Server.HtmlEncode(Match.subMatches(2)) & " " Next Set Re = Nothing End Function Response.Write GetTag(ReadFile("Test.htm"),"Input")