1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 09:34:10 +02:00

Handle sending the form without AJAX after AJAX request

This commit is contained in:
Jakub Vrana
2010-10-19 16:44:12 +02:00
parent dfa1a98829
commit 0ba6eaa3e2
2 changed files with 2 additions and 2 deletions

View File

@@ -64,7 +64,7 @@ if ($_POST["save"]) {
} }
?> ?>
<form action="" method="post" enctype="multipart/form-data"> <form action="<?php echo h($_SERVER["REQUEST_URI"]); // required for sending the form after an AJAX request ?>" method="post" enctype="multipart/form-data">
<?php <?php
if ($fields) { if ($fields) {
echo "<table cellspacing='0'>\n"; echo "<table cellspacing='0'>\n";

View File

@@ -231,7 +231,7 @@ if (!$columns) {
$result->seek($limit * $page); $result->seek($limit * $page);
} }
$email_fields = array(); $email_fields = array();
echo "<form action='' method='post' enctype='multipart/form-data'>\n"; echo "<form action='" . h($_SERVER["REQUEST_URI"]) . "' method='post' enctype='multipart/form-data'>\n"; // $_SERVER["REQUEST_URI"] is required for sending the form after an AJAX request
$rows = array(); $rows = array();
while ($row = $result->fetch_assoc()) { while ($row = $result->fetch_assoc()) {
$rows[] = $row; $rows[] = $row;