Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Apache/PHP n'aime pas la méthode POST sur Ubuntu

11 réponses
Avatar
noone
Bonsoir,

j'ai un petit soucis
j'utilise dans une page en HTML/PHP la méthode POST.
Chez Free la page marche sans problème...
Par contre chez moi (Ubuntu) tout se passe comme si la variable n'était
jamais initialisée...

Une idée ?

Merci d'avance



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Restriction de l'accès Internet</title>
</head>

<body>

<center>

<h1>Restriction de l'accès Internet</h1>



<hr>



<h2>Salle 32</h2>
<form method="post" action="index.php">
<input type="hidden" name="room" value="31">

<table border=0 cellpadding=10>
<tr align="center">
<td align="center">
<input type="submit" name="start" value="Lancer la connexion">
</td>
<td align="center">
<input type="text" name="duree" size="4" value="60">
</td>
<td width=20%></td>
<td align="center">
<input type="submit" name="stop" value="Stopper la connexion">
</td>
</tr>
</table>
</form>





</center>


<hr>



<?php
if ( $start <> "" ) {
$action = "start";
}

if ( $stop <> "" ) {
$action = "stop";
$duree = "";
}


if ( $action <> "" ) {
$script = "./internet_rules.sh $action $room $duree";
echo "<pre>$script</pre>";
exec($script);
}
?>



</body>
</html>


Remarque : ça ne marche pas mieux avec GET

1 réponse

1 2
Avatar
noone
mais bon je n'ai pas trouvé le paramètre à modifier...
magic_quotes_gpc = On



Merci


1 2