How can I verify what is posted from an html page to another php page

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michel

    How can I verify what is posted from an html page to another php page

    I have an html + javascript page which contains a form used to collect and
    send data like this:

    <quote>

    <form name="formlist" action="propose move.php" method="post">
    <table align=center width=280>
    <script>
    ......
    .....
    document.write( '<td width=60 align=center>') ;
    document.write( '<input type="text" name="movewhite[');
    document.write( i);
    document.write( ']" size=5 style="height:2 1px"></td>');
    document.write( '<td width=60 align=center>') ;
    document.write( '<input type="text" name="moveblack[');
    document.write( i);
    .....
    ....
    </script>

    </quote>

    In propose move.php I do :

    <quote>

    $movewhite=$_PO ST["movewhite"];
    $moveblack=$_PO ST["moveblack"];
    print ("<p> movewhite: ");
    print_r($movewh ite);
    print ("<p> moveblack: ");
    print_r($movebl ack);

    </quote>

    to see the content of the arrays movewhite and moveblack and I get
    displayed:

    <quote>
    movewhite: Array ( [0] => )
    moveblack: Array ( [0] => )
    </quote>


    How could I verify what is really sent from my HTML pqge to my php page?


Working...