import the 'insert new row to edit page' feature put by Korakot in the stable CVS tree

This commit is contained in:
Loïc Chapeaux
2001-05-08 00:01:23 +00:00
parent 5197539496
commit e80fae42d5
2 changed files with 3 additions and 2 deletions

View File

@@ -135,7 +135,8 @@ echo "</table>";
?> ?>
<p> <p>
<input type="submit" value="<?php echo $strSave; ?>"> <input type="submit" name="submit_type" value="<?php echo $strSave; ?>">
<input type="submit" name="submit_type" value="<?php echo $strInsertNewRow; ?>">
</form> </form>
<?php <?php

View File

@@ -16,7 +16,7 @@ if($goto == "sql.php3")
reset($fields); reset($fields);
reset($funcs); reset($funcs);
if(isset($primary_key)) { if(isset($primary_key) && ($submit_type != $strInsertNewRow)) {
if(get_magic_quotes_gpc()) { if(get_magic_quotes_gpc()) {
$primary_key = stripslashes($primary_key); $primary_key = stripslashes($primary_key);
} else { } else {