catched a possibly not assigned variable, tried fixing some errors with some other variables

master
Jan Danielzick 2020-02-14 21:38:47 +01:00
parent b976c84caf
commit 39324dbec3
1 changed files with 6 additions and 2 deletions

View File

@ -61,8 +61,12 @@
<input type="password" maxlength="256" name="password" placeholder="Password" /> <input type="password" maxlength="256" name="password" placeholder="Password" />
<input type="password" maxlength="256" name="password_confirmation" placeholder="Repeat password" /> <input type="password" maxlength="256" name="password_confirmation" placeholder="Repeat password" />
<input type="submit" value="Add" /> <input type="submit" value="Add" />
<?php echo "<p> $error_message </p>"; ?> <?php
<?php echo "<p>Some server variables...<br />Origin: $_SERVER['HTTP_ORIGIN'] <br />Host: $_SERVER['HTTP_HOST'] <br />Referer: $_SERVER['HTTP_REFERER'] <br />Client IP: $_SERVER['REMOTE_ADDR'] <br />"; ?> if (isset($error_message)) {
echo $error_message;
}
echo "<p>Some server variables...<br />Origin: " . $_SERVER['HTTP_ORIGIN'] . " <br />Host: " . $_SERVER['HTTP_HOST'] . " <br />Referer: " . $_SERVER['HTTP_REFERER'] . " <br />Client IP: " . $_SERVER['REMOTE_ADDR'] . " <br />";
?>
</form> </form>
</body> </body>
</html> </html>