include "db.php";
$query = "SELECT * FROM Reasons";
$result = mysql_query($query);
if(mysql_num_rows($result)) {
while($row = mysql_fetch_assoc($result)){
echo " name='{$row['desc']}' onclick='disable()'>".$row['desc']."
";
}
echo "Other";
}
?>
$reason = $_GET['reason'];
echo $reason;
?>
Related Articles
How to Create Ical File to Work on Outlook, Google Calendar and Mac Icalendar
To Create Ical files we need to follow some standards set by ietf.org. Below are the working copies of the sample ical files created and these are tested on Outlook calendar, Google Calendar, Mac Icalendar, and Thunder Bird Calendar with Lightning plugin. How to Create Ical File Contents show 1. How to Create Ical File […]
How to Get Source Code of a Web Page
If you are looking for How to Get Source Code of a Web Page or link then just follow below steps. How To Find A Web Page’s Source Code it easy? Source Code of a Web Page Contents show 1. Source Code of a Web Page 2. Source Code of a Web Page in PHP […]
Simple PHP Dropdown Menu Example
<html> <title>PHP Dropdown Menu Example</title> <head></head> <body> <form method=”POST” action=”phpdropdown.php”> <select name=”user”> <option value=”vivek” selected=’selected’>Vivek</option> <option value=”Raj”>Raj</option> <option value=”Vicky” >Vicky</option> </select> <input type=”submit” name=”go” value=”Go”> </form> </body> </html> <?php if(isset($_POST[“user”])) { $user = $_POST[“user”]; echo $user; } ?> To get selected value use this < option value=”vivek” selected=’selected’>Vivek </ option> Use this at top for […]