usage of post.js

10 views
Skip to first unread message

Luciano Gabriel Andino

unread,
Apr 19, 2015, 9:26:09 PM4/19/15
to phan...@googlegroups.com
Hello, I need to test a form using post method:
<html>
<head>
<title>program</title>
</head>
<body onload="document.forms[0].submit()">

<form name="1" method="post" action="programa.asp">
                  <div align="left">
                    <p>
                      <input name="TxtNumero"  id="TxtNumero" type="hidden" value="1">
                      <input name="TxtNumMax"  id="Hidden1" type="hidden" value="1">
                      <input name="TxtNumMin"  id="Hidden3" type="hidden" value="-19">
                      <input name="TxtSql"  id="TxtSql3" type="hidden" value=" tipresol=''C'' and clase=9 and Titulo like ''B%''">
                        <input name="txtvivas" type="hidden" id="Hidden4" value="on">
                      <input name="checkVigentes" type="hidden" id="Hidden9" value="on" />
                    </p>
                  </div>
              </form>
</body>
</html>

using "post.js" included script, I do concat all parameters into a var:

data='TxtNumero=1&TxtNumMax=1&TxtNumMin=-19&TxtSql=" tipresol=''C'' and clase=9 and Titulo like ''B%''"&txtvivas=on&checkVigentes=on';

seems it doesn't because of syntax, not sure, I would like to see logs or something else or know the way to do it work.

thanks,

Luciano
Reply all
Reply to author
Forward
0 new messages