form not posting data
Posted: Mon Oct 27, 2008 6:34 pm
For future reference, please enclose your php code within [ php] and [ /php] tags, to make it easier for us to read your code. (Omit the space after the bracket, I did that so they won't be parsed here.) Thanks.
I cant seem to get this form to post data. var_dump ($_POST) shows nothing. Ive tried every variation of this I can think of, and still nothing. Can anyone see what Im doing wrong? Thanks.
I cant seem to get this form to post data. var_dump ($_POST) shows nothing. Ive tried every variation of this I can think of, and still nothing. Can anyone see what Im doing wrong? Thanks.
Code: Select all
echo '<form id="myselectionz" method="POST" action="selectionchange.php'" name="myselection">'."\n";
echo '<select name="myselection" class="tabletxt" onChange="this.form.submit()">'."\n";
$ccurrentselection = substr($myselection, 4);
$cccurrentselection = trim($myselection);
echo '<OPTION SELECTED>'.$ccurrentselection.'';
for ($i=0;$i<$j;$i++)
{
$dropfilehandle[$i] = rtrim($dropfilehandle[$i]);
if ($dropfilehandle[$i] != $cccurrentselection && $i != 0)
{
$ccurrentselection = substr($dropfilehandle[$i], 4);
echo '<OPTION value="'.$dropfilehandle[$i].'">'.$ccurrentselection.''."\n";
}
}
echo '<OPTION value=" e">Erase this selection'."\n";
echo '<OPTION value=" ">Add a new selection'."\n";
echo '</SELECT>'."\n";
echo '<value="send" method="post">'."\n";
echo '</FORM>'."\n";