Update updateArticle.php
This commit is contained in:
@@ -68,10 +68,11 @@ include_once 'php/controller/showArticle-controller.php';
|
|||||||
?>
|
?>
|
||||||
<input type="text" id="title" name="title"
|
<input type="text" id="title" name="title"
|
||||||
value="<?php
|
value="<?php
|
||||||
if (isset($title) && !empty($title)){echo htmlspecialchars($title);
|
if (isset($_SESSION['old_title']) && !empty($_SESSION['old_title'])){
|
||||||
}elseif (isset($_SESSION['old_title']) && !empty($_SESSION['old_title'])){
|
|
||||||
echo htmlspecialchars($_SESSION['old_title']);
|
echo htmlspecialchars($_SESSION['old_title']);
|
||||||
unset($_SESSION['old_title']);
|
unset($_SESSION['old_title']);
|
||||||
|
}elseif (isset($title) && !empty($title)){
|
||||||
|
echo htmlspecialchars($title);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>"
|
?>"
|
||||||
|
|||||||
Reference in New Issue
Block a user