I hope this workd
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
parent
e4ef87a55e
commit
9dd7aa0227
|
@ -34,8 +34,6 @@
|
|||
else $err = "E-mail not in list";
|
||||
else if ($_GET['action'] == "unsub")
|
||||
$email = sanitize($_GET['email']);
|
||||
else if (empty($_GET['action']))
|
||||
$email = sanitize($_GET['email']);
|
||||
else $err = "E-mail already in list";
|
||||
else $err = "Invalid E-mail";
|
||||
else $err = "E-mail is required";
|
||||
|
@ -79,7 +77,7 @@
|
|||
mail($email, $subject, $message, $headers);
|
||||
}
|
||||
|
||||
if ((empty($_GET['action']) && empty($code_err) || ($_GET['action'] != "sub" && $_GET['action'] != "unsub")) && !empty($err)) {
|
||||
if ((($_GET['action'] != "sub" && $_GET['action'] != "unsub")) || (!empty($err) && !empty($code_err))) {
|
||||
|
||||
?>
|
||||
<div class=h><h1 id=list>Mailing List</h1> <a aria-hidden=true href=#list>#list</a></div>
|
||||
|
@ -106,6 +104,10 @@
|
|||
<p>Code <span class="red">* <?php echo $code_err; ?></span>
|
||||
<input type="text" name="code"></p>
|
||||
|
||||
<select id="action" name="action">
|
||||
<option value="<?php echo htmlspecialchars($_GET['action']); ?>"></option>
|
||||
</select>
|
||||
|
||||
<br>
|
||||
<span><input type="submit" value="Confirm" style="width:100px;height:40px;font-size:20px"></span>
|
||||
</form><br>
|
||||
|
|
Loading…
Reference in New Issue