form-data and upload

This commit is contained in:
Marc Delisle
2003-02-22 22:10:05 +00:00
parent 77dc48b266
commit 6d12b3c84b
2 changed files with 3 additions and 1 deletions

View File

@@ -10,6 +10,8 @@ $Source$
* lang/slovak update, thanks to Lubos Klokner * lang/slovak update, thanks to Lubos Klokner
* lang/polish: update, thanks to Jakub Wilk * lang/polish: update, thanks to Jakub Wilk
* lang/thai: update, thanks to Arthit Suriyawongkul * lang/thai: update, thanks to Arthit Suriyawongkul
* tbl_change.php3: do not use enctype="multipart/form-data"
if !$is_upload (possible solution for bug 689215)
2003-02-19 Alexander M. Turek <rabus@users.sourceforge.net> 2003-02-19 Alexander M. Turek <rabus@users.sourceforge.net>
* libraries/display_tbl.lib.php3: Coding standards. * libraries/display_tbl.lib.php3: Coding standards.

View File

@@ -148,7 +148,7 @@ document.onkeydown = onKeyDownArrowsHandler;
</script> </script>
<!-- Change table properties form --> <!-- Change table properties form -->
<form method="post" action="tbl_replace.php3" name="insertForm" enctype="multipart/form-data"> <form method="post" action="tbl_replace.php3" name="insertForm" <?php if ($is_upload) echo ' enctype="multipart/form-data"'; ?>>
<?php echo PMA_generate_common_hidden_inputs($db, $table); ?> <?php echo PMA_generate_common_hidden_inputs($db, $table); ?>
<input type="hidden" name="goto" value="<?php echo $goto; ?>" /> <input type="hidden" name="goto" value="<?php echo $goto; ?>" />
<input type="hidden" name="pos" value="<?php echo isset($pos) ? $pos : 0; ?>" /> <input type="hidden" name="pos" value="<?php echo isset($pos) ? $pos : 0; ?>" />