mort
10-23-2002, 06:02 AM
I am bringing a script over from another hosting provider to my account here, and it has ceased to function correctly now it is here.
I have found what I think is the major problem, but I don't know the solution, so any input would be apreciated.
Part of the script is to collect data from forms, but the forms are generated by the scipts, so I have been using arrays in the forms, ie to collect several domain names I would have the inputs as:
<INPUT TYPE='text' NAME='domain[0]'>
<INPUT TYPE='text' NAME='domain[1]'>
<INPUT TYPE='text' NAME='domain[2]'>
etc.
This way I can just deal straight with the array $domain.
The problem is that I seem to be loosing data between the form and the script.
I have included a very basic form, which when I type '123456' into it echoes '56', and I don't understand why.
<FORM METHOD='post'>
<INPUT TYPE='text' NAME='a[0]'>
<INPUT TYPE='submit'>
</FORM>
<?PHP
echo $a[0];
echo phpinfo();
?>
Thanks in advance
Mick
I have found what I think is the major problem, but I don't know the solution, so any input would be apreciated.
Part of the script is to collect data from forms, but the forms are generated by the scipts, so I have been using arrays in the forms, ie to collect several domain names I would have the inputs as:
<INPUT TYPE='text' NAME='domain[0]'>
<INPUT TYPE='text' NAME='domain[1]'>
<INPUT TYPE='text' NAME='domain[2]'>
etc.
This way I can just deal straight with the array $domain.
The problem is that I seem to be loosing data between the form and the script.
I have included a very basic form, which when I type '123456' into it echoes '56', and I don't understand why.
<FORM METHOD='post'>
<INPUT TYPE='text' NAME='a[0]'>
<INPUT TYPE='submit'>
</FORM>
<?PHP
echo $a[0];
echo phpinfo();
?>
Thanks in advance
Mick