Hello,
I experience strange things with PHP5.
We use a simple script for years now to register users online.
Recently we switched to PHP5 at our ASP. Eversince our PHP script seems not getting the values from POST operation.
If we switch back to PHP4, all is OK.
This is in the HTML code:
-----------------------------
<form name="Formular" enctype='multipart/form-data' action='process.php' method='post'>
<input name="nev" type="text" id="nev" size="60" maxlength="60">
<input name="email" type="text" id="email" size="60" maxlength="60">
<input name="B1" type="submit" id="Submit" value="Tové–±æâ€Â‚">
<input name="B2" type="reset" id="Cancel" value="Mé—ÂÂæÂÂ’em">
</form>
This is the process.php code:
------------------------------
<?php
echo "you wrote:";
echo "<li>".$HTTP_POST_VARS['nev'];
echo "<li>".$HTTP_POST_VARS['email'];
?>
Result:
-------------------------------
You wrote:
*
*
I tried to learn from <!-- m --><a class="postlink" href="http://php.net/manual/en/language.variables.external.php">http://php.net/manual/en/language.varia ... ternal.php</a><!-- m --> page, but I just cannot find the solution.
What can be the problem with PHP5 and this simple script?
I really appreciate all ideas and help.
Thank you.
Gy.Use of $HTTP_POST_VARS (and $HTTP_GET_VARS etc.) are deprecated.
Either change those to $_POST or ask your host to change the setting "register_long_arrays" to "on".Thanks a lot, cahva, you were right.
I experience strange things with PHP5.
We use a simple script for years now to register users online.
Recently we switched to PHP5 at our ASP. Eversince our PHP script seems not getting the values from POST operation.
If we switch back to PHP4, all is OK.
This is in the HTML code:
-----------------------------
<form name="Formular" enctype='multipart/form-data' action='process.php' method='post'>
<input name="nev" type="text" id="nev" size="60" maxlength="60">
<input name="email" type="text" id="email" size="60" maxlength="60">
<input name="B1" type="submit" id="Submit" value="Tové–±æâ€Â‚">
<input name="B2" type="reset" id="Cancel" value="Mé—ÂÂæÂÂ’em">
</form>
This is the process.php code:
------------------------------
<?php
echo "you wrote:";
echo "<li>".$HTTP_POST_VARS['nev'];
echo "<li>".$HTTP_POST_VARS['email'];
?>
Result:
-------------------------------
You wrote:
*
*
I tried to learn from <!-- m --><a class="postlink" href="http://php.net/manual/en/language.variables.external.php">http://php.net/manual/en/language.varia ... ternal.php</a><!-- m --> page, but I just cannot find the solution.
What can be the problem with PHP5 and this simple script?
I really appreciate all ideas and help.
Thank you.
Gy.Use of $HTTP_POST_VARS (and $HTTP_GET_VARS etc.) are deprecated.
Either change those to $_POST or ask your host to change the setting "register_long_arrays" to "on".Thanks a lot, cahva, you were right.