echo tex_code($_SESSION['title']);
?>
</p/>
	<p class="author">presented by <u/><?php 
echo tex_code($_SESSION['speaker']);
?>
</u/></p/></center/>
</td></tr></table>
<table border="0" cellpadding="5" cellspacing="10" width = 90%>
<tr><td style="background-color:rgb(244,255,255);color:black">
  <div class="formfill">
  <?php 
$flag = 1;
$counter = 0;
$maxc = count($_POST['coa']);
$_SESSION['coauthors'] = fix_tex($_POST['coa']);
while ($counter < $maxc) {
    $counter1 = $counter + 1;
    if (empty($_SESSION['coauthors'][$counter])) {
        echo "You must enter a name for co-author {$counter1}.<br\\>\n";
        $flag = 0;
    }
    $counter++;
}
if ($flag) {
    echo tex_code($_SESSION['speaker']) . " has {$maxc} coauthors:";
    $counter = 0;
    while ($counter < $maxc) {
        echo " " . tex_code($_SESSION['coauthors'][$counter]);
        $counter++;
        if ($counter < $maxc) {
$k = 0;
while ($k < count($_SESSION['all_superscripts'])) {
    $kplus = $k + 1;
    echo "<sup>{$kplus}</sup>{$_SESSION['affil_superscript'][$k]}<br/></n>";
    ++$k;
}
?>
  </p></center/><br/><br/>
</td></tr></table>
<table border="0" cellpadding="5" cellspacing="10" width = 90%>
<tr><td style="background-color:rgb(244,255,255);color:black">
<div class="formfill">
  <?php 
// First Make Sure Abstract is filled out
if (empty($_POST['abstract'])) {
    echo "Please go  <a href=javascript:history.back(1)>back</a> and enter your abstract.";
} else {
    $_SESSION['abstract'] = fix_tex($_POST['abstract']);
    echo "<b>Abstract</b>: " . nl2br(tex_code($_SESSION['abstract'])) . "</p>";
    echo "<form action=\"submit5.php\" method=\"post\"/>\n";
    echo "<input type=\"button\" value=\"back\" onClick=\"history.go(-1)\"> ";
    echo "<input type=\"submit\" value=\"abstract correct\"/>\n";
    echo "</form/>\n";
}
?>
  </body>
</html>



Beispiel #3
0
      This page assigns affilliations to each author. The Department of 
      Oceanography and the Bedford Institute of Oceanography (BIO)
      have been added for your convenience. If you need other
      affiliations, please add them one at a time by entering it into
      the (Need another affiliation?) box below.<br><br>

  <!This form adds extra affiliations to form lists below>
  <form action="<?php 
$PHP_SELF;
?>
" method="post">
    <?php 
if (!empty($_POST['next_affil'])) {
    if ($_POST['next_affil'] === $_SESSION['next_affil']) {
    } else {
        $_SESSION['extra_affils'] = $_SESSION['extra_affils'] . "::" . fix_tex($_POST['next_affil']);
        $_SESSION['next_affil'] = $_POST['next_affil'];
    }
}
$add_affils = split('::', $_SESSION['extra_affils']);
?>
    (Need another affiliation?)
     <input type="text" name="next_affil"> <input type="submit" value="Add">
  </form>
  <!***** END OF "ADD AFFILIATION" FORM *****>

<hr>
  <form action="submit3_test.php" method="post">
    <?php 
echo $_SESSION['speaker'];
?>
<center><p class="titlehead">C-DOGS Abstract Submission 1/5</p></center>
</td></tr></table>
<table border="0" cellpadding="5" cellspacing="10" width = 90%>
<tr><td style="background-color:rgb(244,255,255);color:black">
  <div class="formfill">
  <?php 
if (empty($_POST["title"])) {
    echo "You must enter a title for your talk, please go <a href=javascript:history.back(1)>back</a>";
} elseif (empty($_POST["speaker"])) {
    echo "You must enter a name for the speaker, please go <a href=javascript:history.back(1)>back</a>";
} elseif (empty($_POST["email"])) {
    echo "You must enter an email address, <a href=javascript:history.back(1)>back</a>";
} elseif (!check_email_address($_POST["email"])) {
    echo "You must enter a <strong><font color=red>valid</font></strong> email address. Please go <a href=javascript:history.back(1)>back</a> and make the necessary changes.";
} else {
    if ($_POST['co'] == 0) {
        echo "<form action=\"submit3.php\" method = post>";
    } else {
        echo "<form action=\"submit2.php\" method = post>";
    }
    $_SESSION['title'] = fix_tex($_POST['title']);
    $_SESSION['speaker'] = fix_tex($_POST['speaker']);
    $_SESSION['co'] = $_POST['co'];
    $_SESSION['email'] = $_POST['email'];
    echo "  You are submitting a talk titled \n\t  <strong/>" . tex_code($_SESSION['title']) . "</strong/> to\n\t  be presented by <u/>" . tex_code($_SESSION['speaker']) . "</u/>\n\t  with {$_SESSION['co']} co-authors. " . tex_code($_SESSION['speaker']) . " can be reached \n          at {$_POST['email']}. <br>\n\t  <input type=\"button\" value=\"Back\" onClick=\"history.go(-1)\">\n\t  <input type=\"submit\" value=\"Continue\"/>";
}
?>

  </body>
</html>