<link href='http://fonts.googleapis.com/css?family=Josefin+Sans' rel='stylesheet' type='text/css'> <link rel="stylesheet" type="text/css" href="dine.css?v=0.1"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> <script src='https://www.google.com/recaptcha/api.js'></script> </head> <body id="plate"> <div id="text"> <form method="get" action="mail_out.php"> <?php $who = name(); $where = place(); $when = when(); $duration = duration(); $hours = plural(duration(), "hour"); $email = email(); $why = swap_subjects(reason()); $busy = busy(); $commitments = plural($busy, "commitment"); $schedule = "<a href='../calendar'>schedule</a>"; if ($busy == -1) { $am_free_or_busy = "may be free at that time but am unable to confirm."; } elseif ($busy) { $am_free_or_busy = " am busy with {$busy} {$commitments} during that time.<br>\n Maybe its because I have to return some videotapes.<br>\n Feel free to check my {$schedule}."; } else { $am_free_or_busy = "am free at that time."; } if (is_valid_email()) { $a_valid_email = "valid"; $may_or_may_not = "may"; } else { $a_valid_email = "invalid";
<?php require "functions.php"; echo "<table>"; $handle = fopen("free_text", "r"); if ($handle) { while (($line = fgets($handle)) !== false) { $_GET["why"] = $line; $reason = reason(); $subject_swap = swap_subjects($reason); echo "<tr><td>{$line}</td><td>{$subject_swap}</td></tr>"; } fclose($handle); } else { echo "<tr><td>error opening the file</td></tr>"; } echo "</table>";