Ben gibi bir form var:
<form method="post" action="user/?action=reply">
<!--blah -->
<input type="submit" name="action" value="Reply">
</form>
Kullanıcı / index.php dosyasında var:
switch ($_GET['action'])
{
case 'reply':
if (isset($_POST['action']) && $_POST['action'] == 'Reply' )
{
require_once USER_ROOT . 'thread_reply.php';
}
else
{
echo "Nothing was clicked";
}
...
Çıktı şey tıklanan idi.
error_reporting (E_ALL); hiçbir şey geri gelmez.
Edit:
print_r ($ _GET) döndürür: Array ([eylem] => cevap)
print_r ($ _POST) boş bir dizi döndürür