Files
openkj-request-server/submitreq.php
T. Isaac Lightburn 844949096b Initial import
2018-02-07 20:48:28 -06:00

26 lines
997 B
PHP

<?php
include('global.inc');
siteheader('Submit Request');
$referer = $_SERVER['HTTP_REFERER'];
if (strpos($referer,'submitreq-run.php?screensize=$screensize') !== false)
{
navbar("index.php");
} else {
navbar($referer);
}
$songid = $_GET['id'];
$artist = '';
$title = '';
$sql = "SELECT artist,title FROM songdb WHERE song_id = $songid";
foreach ($db->query($sql) as $row) {
$artist = $row['artist'];
$title = $row['title'];
}
$db = null;
echo "<br><p>Submitting Song:<br>";
echo "<p>$artist - $title</p>";
echo "<form method=get action=submitreq-run.php><input type=hidden name=screensize value=$screensize><input type=hidden name=songid value=$songid>Please enter your name or nickname:<br><input type=text name=singer autocomplete=off autofocus><input type=submit></form>";
echo "<p class=info>If you have a common first name, please also enter your last initial or last name.<br>Doing so will help eliminate confusion and reduce the risk of your turn getting skipped.";
?>