I don't think that fieldorder needs to be an array. I don't see you
using it as a multiselect. Does this field occur multiple times on the
form?
Bastien
Sent from my iPod
On Mar 15, 2009, at 11:56, Richard Kurth <richardkurth@xxxxxxxxxxxxxx>
wrote:
Shawn McKenzie wrote:
tedd wrote:
At 6:31 PM -0700 3/14/09, Richard Kurth wrote:
I have a script that is passing a area in a $_POST and it does
not pass
the data. When I try to look at the data with
$_POST['fieldorder'] it
its empty but when I look at it with $_REQUEST['fieldorder'] the
data is
there. This seams very strange to me. It has been working for
about 6
months with no problem and then all of a sudden it does not pass
the
data anymore. The real funny thing is the rest of the data that
is sent
that is not an area gets past in a $_POST works just fine.Would
there be
something in the php.ini file that I have changed that would case
this.
What method is your form using?
Cheers,
tedd
And what is an area? A textarea?
This is the form that is being sent as a post and the fieldorder[]
is the part that is not sending properly. But it has worked for
about a year in the script. It just stopped working. and I did not
change anything in this script
<form action="import.php" method="post">
<!-- <form action="testimport.php" method="post"> -->
<INPUT TYPE=HIDDEN NAME=members_id VALUE=<?php echo
$_SESSION["members_id"];?>>
<INPUT TYPE=HIDDEN NAME=copy VALUE='<?php echo $_POST['copy'];?>'>
<INPUT TYPE=HIDDEN NAME=format VALUE=<?php echo $_POST['format'];?>>
<input type="hidden" name="doit" value="no">
<TABLE>
</TD></TR>
<TR><TH><font class=fieldlabel>Our Fields</font></TH><TH><font
class=fieldlabel>Your Data</font></TH></TR>
<?php
/*echo $_POST['format'];
echo"<br>";
echo $copy;
echo"<br>";*/
$fieldnumber = 0;
while (list(,$field) = each($fields)){
echo " <TR>\n";
echo " <TD><SELECT NAME=fieldorder[]>\n";
reset($possiblefields);
reset($descriptionfields);
$anyselected = '';
while (list(,$description) = each($descriptionfields)){
list(,$possible) = each($possiblefields);
$selected = @(($fieldorder[$fieldnumber] ==
$possible) ? 'SELECTED' : '');
if ($fieldnumber >= count($fieldorder) && !
$anyselected){
$selected = 'SELECTED';
}
echo "<OPTION value=\"$possible\" $selected>
$description</OPTION>\n";
}
echo " </SELECT></TD>\n";
echo " <TD>$field</TD>\n";
echo " </TR>\n";
$fieldnumber++;
}
?>
</TABLE>
<TABLE> <TR ALIGN=CENTER>
<TD><input type=submit name='recorddelta' value='<|'></TD>
<TD><input type=submit name='recorddelta' value='<10'></TD>
<TD><input type=submit name='recorddelta' value='<'></TD>
<TD><input type=submit name='recorddelta' value='>'></TD>
<TD><input type=submit name='recorddelta' value='>10'></TD>
<TD><input type=submit name='recorddelta' value='|>'></TD>
</TR>
<TR>
<TD COLSPAN=6>
Jump To: <INPUT NAME=recordnumber SIZE=5 VALUE=<?php
echo $recordnumber;?>>
<INPUT TYPE=SUBMIT NAME=recorddelta VALUE="Jump">
</TD>
</TR>
</TABLE>
<font class=fieldlabel>If the first Row is the Header Row You must
check this box</FONT> <input type="checkbox" name="firstheader"
value="">
<br>
<font class=fieldlabel>Pick a Category to import these contacts to</
FONT>
<br>
<?php
$sqlu="SELECT value,discription FROM category WHERE members_id =
'$_SESSION[members_id]'";
radio($sqlu,'catagory','value','discription',$row["catagory"]);
?> <HR>
<font class="instructions">
<P>Once you're happy with the fields lining up click Import</P>
<P><I>Double-check everything before you IMPORT</I></P></FONT>
<INPUT TYPE=SUBMIT NAME=import VALUE="IMPORT">
</FORM>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php