Add setting name/email/comment from GET

main
Pk11 3 years ago
parent e470e11598
commit 3f6607ccb0

@ -355,6 +355,10 @@
foreach($_POST['delete'] as $id) {
cleanup($id);
}
} else {
$name = $_GET['name'];
$email = $_GET['email'];
$comment = $_GET['comment'];
}
$mobile = preg_match('/Mobile|Nintendo DSi/', $_SERVER['HTTP_USER_AGENT']);
@ -528,13 +532,13 @@
<label for="email">Email:</label> (Optional)
<br />
<input id="email" name="email" value="<?php if(!empty($err)) echo htmlspecialchars($email); ?>" />
<input id="email" name="email" value="<?php echo htmlspecialchars($email); ?>" />
<br />
<br />
<label for="comment">Comment:</label>
<br />
<textarea id="comment" name="comment" rows="10" cols="27"><?php if(!empty($err)) echo htmlspecialchars($comment); ?></textarea>
<textarea id="comment" name="comment" rows="10" cols="27"><?php echo htmlspecialchars($comment); ?></textarea>
<br />
<br />
@ -560,11 +564,11 @@
</tr>
<tr>
<td><label for="email">Email:</label></td>
<td><input id="email" name="email" value="<?php if(!empty($err)) echo htmlspecialchars($email); ?>" /> (Optional)</td>
<td><input id="email" name="email" value="<?php echo htmlspecialchars($email); ?>" /> (Optional)</td>
</tr>
<tr>
<td><label for="comment">Comment:</label></td>
<td><textarea id="comment" name="comment" rows="10" cols="40"><?php if(!empty($err)) echo htmlspecialchars($comment); ?></textarea></td>
<td><textarea id="comment" name="comment" rows="10" cols="40"><?php echo htmlspecialchars($comment); ?></textarea></td>
</tr>
<tr>
<td><label for="img">Image:</label></td>

Loading…
Cancel
Save