}
?>
-<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";
$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;