By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,066 Members | 1,841 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,066 IT Pros & Developers. It's quick & easy.

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

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

<quote>

<form name="formlist" action="proposemove.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:21px"></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=$_POST["movewhite"];
$moveblack=$_POST["moveblack"];
print ("<p> movewhite: ");
print_r($movewhite);
print ("<p> moveblack: ");
print_r($moveblack);

</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?
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.