problem with apache 2.0
| From: | Franck Collineau | Date: | Mon, 02 Jun 2003 15:03:27 +0000 |
| Subject: | problem with apache 2.0 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-149805@lists.php.net to get a copy of this message | ||
Greeting,
I have just change my server to apache 2.0.44 and php 4.3.1 (from mandrake
9.1) and i have a problem now
When i pass a numeric parameter to a php script from a form, the parameter is
equal zero !
Here is my form:
<p > Modification d'un matériel: </p>
<table>
<tr>
<td align="right">Numéro: </td>
<td><form action="edit.php" method="POST"
target="bas" name="forme">
<input type="text" name="id" size="3"></td>
<td><input value="Modifier" type="submit"></td>
</form>
</tr>
</table>
here is my script php:
<?
$taille=strlen($id);
print("ident: $id <br>");
$id=(int) $id;
?>
where does the problem come from ?
Thanks
Franck