import the 'insert new row to edit page' feature put by Korakot in the stable CVS tree
This commit is contained in:
@@ -135,7 +135,8 @@ echo "</table>";
|
||||
|
||||
?>
|
||||
<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>
|
||||
|
||||
<?php
|
||||
|
@@ -16,7 +16,7 @@ if($goto == "sql.php3")
|
||||
reset($fields);
|
||||
reset($funcs);
|
||||
|
||||
if(isset($primary_key)) {
|
||||
if(isset($primary_key) && ($submit_type != $strInsertNewRow)) {
|
||||
if(get_magic_quotes_gpc()) {
|
||||
$primary_key = stripslashes($primary_key);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user