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:
@@ -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
|
||||
if ($fields) {
|
||||
echo "<table cellspacing='0'>\n";
|
||||
|
@@ -231,7 +231,7 @@ if (!$columns) {
|
||||
$result->seek($limit * $page);
|
||||
}
|
||||
$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();
|
||||
while ($row = $result->fetch_assoc()) {
|
||||
$rows[] = $row;
|
||||
|
Reference in New Issue
Block a user