Re: problem with apache 2.0
| From: | sven | Date: | Mon, 02 Jun 2003 15:22:08 +0000 |
| Subject: | Re: problem with apache 2.0 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-149810@lists.php.net to get a copy of this message | ||
php.ini: register_globals = off?
look at $_POST['id'].
ciao
"Franck Collineau" <franck1.collineau@rd.francetelecom.com> schrieb im
Newsbeitrag
news:200306021703.27831.franck1.collineau@rd.francetelecom.com...
> 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