473,396 Members | 1,827 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to create a dynamic drop down box

I have created a php form with dynamic drop down boxes in it which pull the options from a database. The boxes work fine and the data gets submitted fine but im having a problem getting the box to default to a record of my choice from the database. (record 1 = None).
Here is the code to what i have done.
Expand|Select|Wrap|Line Numbers
  1. <input maxLength="40" size="30" name="name"></td>
  2.     </tr>
  3.     <tr>
  4.       <td width="286" height="22"><b>Person Involved:</b></td>
  5.       <td align="left" width="365" height="24"><select name="person_involved">
  6.  
  7.         <?php
  8.  
Expand|Select|Wrap|Line Numbers
  1. hesk_dbConnect();
  2. $sql = "SELECT * FROM `hesk_involved` ORDER BY `name` ASC";
  3. $result = hesk_dbQuery($sql);
  4. while ($row=hesk_dbFetchAssoc($result))
  5. {
  6.     echo "
  7.     <option value=\"$row[name]\">$row[name]</option>
  8.     ";
  9. }
  10.  
Expand|Select|Wrap|Line Numbers
  1. ?>
  2.       </select></td>
  3.     </tr>
  4.  
Hope you guys can help me out as im pulling my hair out now.
Oct 1 '07 #1
31 8250
nathj
938 Expert 512MB
I have created a php form with dynamic drop down boxes in it which pull the options from a database. The boxes work fine and the data gets submitted fine but im having a problem getting the box to default to a record of my choice from the database. (record 1 = None).
Here is the code to what i have done.
[php]
<input maxLength="40" size="30" name="name"></td>
</tr>
<tr>
<td width="286" height="22"><b>Person Involved:</b></td>
<td align="left" width="365" height="24"><select name="person_involved">

<?php

hesk_dbConnect();
$sql = "SELECT * FROM `hesk_involved` ORDER BY `name` ASC";
$result = hesk_dbQuery($sql);
while ($row=hesk_dbFetchAssoc($result))
{
echo "
<option value=\"$row[name]\">$row[name]</option>
";
}

?>
</select></td>
</tr>
[/php]

Hope you guys can help me out as im pulling my hair out now.

Hi DirtySnipe,

Welcome to TSDN!

I had to do something similar recently and the way I decided to do it was to add a colum to the data source - isDefault as a tinyInt. then select this out in the SQL and during the processing of the data you can check for the value of this field and if it's set to 1 you can set selected="selected" in the processing code.

Here's an example from my database, this selects out countries from an ISO list and Sets United Kingdom as the default.

[php]
// get the data
$lcSelectStr =
"SELECT
a.ID, a.countryName as description, a.isDefault
FROM countrycode a
ORDER BY a.countryName ASC";

$laResults = $loDB->queryGetData($lcSelectStr); // my data object

// build the drop down
echo "<select name=" . "'" . "list" . $lnGetType . "'" . "id=" . "'" . "list" . $lnGetType . "'" . ">";
foreach($laResults as $lcDataLine)
{
echo "<option value=" . $lcDataLine['ID'] . " ";
if($lcDataLine['isDefault'])
{
echo "selected='selected'";
}
echo ">" . $lcDataLine['description'] ."</option>";
}
echo "</select>";

[/php]
I hope that helps.

Cheers
nathj
Oct 1 '07 #2
Thanks for the welcome.

Im sorry but this is going straight over my head. <--(day 1 n00b to php mysql)

what i made was cobbled from bits of code i found on the net and a good old cut and paste session.

Can you please help me on how to get it working with what i got atm??

I know im a cheaky git... alot to learn and im tryin.
Oct 1 '07 #3
nathj
938 Expert 512MB
Hi,

I'll do my best to help you out, and if anything needs any further explanation then just shout.

I notice from your code that you have a table 'hesk_involved' so the first step, under my solution is to add a new field to this:
Name: isDefault
Type: TINYINT
Default:0

Once you have added the field simply decide which value is to be the default and set the isDefault to 1 for this record.

Alter your code to the following:
[php]
$sql = "SELECT * FROM `hesk_involved` ORDER BY `name` ASC";
$result = hesk_dbQuery($sql);
echo "<select name='testSelect'>"; //name is up to you
while ($row=hesk_dbFetchAssoc($result))
{
echo "<option value=\"$row[name]\">$row[name]";
if($row['isDefault']);
{
echo "selected='selected'";
}
echo ">" . $row['description']. "</option>"; // NOTE: $description is a column in the table that holds what will appear in the drop down list for the user.
echo "</option>";

}
[/php]

What is happening in this code, and apologies if this a bit obvious, is that the data is being selected first. Once the data has been selected a drop down is built. the wrapper tags for this are listed first and then the options within the select item are defined based on the data. One of the data items determines the default value for the drop down. For this value the HTML code of stating selected as selected is applied to ensure that it appears first in the list when the page loads.

I hope that explains the code and gives you nice solution. If you need any further help just shout here or PM me I don't mind.

Cheers
nathj
Oct 1 '07 #4
Thank you very much, this has helped loads...

Ive been stuck on this problem for a few weeks now and it was by luck that I stumbled along this cool site. I hope one day i can return the favour and give you a hand.

Once again tnxs alot.
Oct 1 '07 #5
I've added that code and also added into the mysql database the details you said but i get this appear in the drop down box.

Contractorselected='selected'>
Oct 1 '07 #6
Expand|Select|Wrap|Line Numbers
  1.  <tr>
  2.       <td width="286" height="22"><b>Person Involved:</b></td>
  3.       <td align="left" width="365" height="24">
  4.  
  5.         <?php
  6.  
  7.  
  8. $sql = "SELECT * FROM `hesk_involved` ORDER BY `name` ASC";
  9. $result = hesk_dbQuery($sql);
  10. echo "<select name='person_involved'>"; //name is up to you
  11. while ($row=hesk_dbFetchAssoc($result))
  12. {
  13.     echo "<option value=\"$row[name]\">$row[name]";
  14.     if($row['isDefault']);
  15.     {
  16.      echo "selected='selected'";
  17.     }
  18.     echo ">" . $row['name']. "</option>"; // NOTE: $description is a column in the table that holds what will appear in the drop down list for the user.
  19.     echo "</option>";
  20.  
  21. }
  22.  
  23.  
  24. ?>
  25.       </select></td>
  26.     </tr>
Oct 1 '07 #7
nathj
938 Expert 512MB
Hi DirtySnipe,


The solution is simple, I had this myself, I should have mentioned it. simply ensure there is a space before and after the word selected:

[php]
// snippet
echo " selected='selected' " ;
[/php]
These spaces force the browser to recognise that is handling new information about the control you wish to display.

Sorry for the cofusion.

Cheers
nathj
Oct 1 '07 #8
Its still doing it.

Contractor selected='selected' >Contractor

The funny thing is also i havn't selected Contractor as default.

Doesn't this need to = 1 or something??

[PHP]if($row['isDefault']);[/PHP]

Also why are you telling it to display the word selected='selected'???

[PHP] echo " selected='selected' " ;[/PHP]
Oct 1 '07 #9
nathj
938 Expert 512MB
Doesn't this need to = 1 or something??

[PHP]if($row['isDefault']);[/PHP]
Hi,
If the data type is tinyint this is behaves in a way that is the same as logical type. However, it won't hurt set to '=1' if you prefer.
Also why are you telling it to display the word selected='selected'???

[PHP] echo " selected='selected' " ;[/PHP]
What this does, and here is where the problem lies, is is says that the selected property of the option within the select input type is set to be selected - that's the syntax. In the code snippet I supplied before there is a bit of a copy and past error:
[php]
$sql = "SELECT * FROM `hesk_involved` ORDER BY `name` ASC";
$result = hesk_dbQuery($sql);
echo "<select name='testSelect'>"; //name is up to you
while ($row=hesk_dbFetchAssoc($result))
{
echo "<option value=\"$row[name]\">$row[name]";
if($row['isDefault']);
{
echo "selected='selected'";
}
echo ">" . $row['description']. "</option>"; // NOTE: $description is a column in the table that holds what will appear in the drop down list for the user.
echo "</option>";

}
[/php]
If you remove >$row[name] then I think all should be well as the code will then set the property within the element tag. That's my fault for some sloppy copy and paste work.

This should now work for you.
Cheers
nathj
Oct 1 '07 #10
Nope

Now im getting in the drop down box

Contractor selected='selected'

And this still isnt what ive selected as the default.

current code

[PHP] <?php


$sql = "SELECT * FROM `hesk_involved` ORDER BY `name` ASC";
$result = hesk_dbQuery($sql);
echo "<select name='person_involved'>"; //name is up to you
while ($row=hesk_dbFetchAssoc($result))
{
echo "<option value=\"$row[name]\">$row[name]";
if($row['isDefault']);
{
echo " selected='selected' " ;
}
echo "</option>";

}

echo "</select>";
?>[/PHP]
Oct 1 '07 #11
nathj
938 Expert 512MB
Nope

Now im getting in the drop down box

Contractor selected='selected'

And this still isnt what ive selected as the default.

current code

[PHP] <?php


$sql = "SELECT * FROM `hesk_involved` ORDER BY `name` ASC";
$result = hesk_dbQuery($sql);
echo "<select name='person_involved'>"; //name is up to you
while ($row=hesk_dbFetchAssoc($result))
{
echo "<option value=\"$row[name]\">$row[name]";
if($row['isDefault']);
{
echo " selected='selected' " ;
}
echo "</option>";

}

echo "</select>";
?>[/PHP]
Hi,

I think the problem is where the opening option tag is closed. In your code(above) it is being cloased before the selected property is set. This means that the browser simply outputs the text to the screen.

You should change your code to the following:
[PHP]
<?php

$sql = "SELECT * FROM `hesk_involved` ORDER BY `name` ASC";
$result = hesk_dbQuery($sql);

echo "<select name='person_involved'>"; //name is up to you
while ($row=hesk_dbFetchAssoc($result))
{
echo "<option value=" .$row[name] . " "; // final space is vital
if($row['isDefault'] == 1);
{
echo " selected='selected' " ;
}
echo ">" . $row[name] . "</option>";

}

echo "</select>";
?>[/PHP]

This should set the default value to the record in the database that has isDefault = 1. It also has this selected attribute set within the the option tag.

Try ouit the code above and let me know how you get on. I'm sorry it has taken so long to get this sorted for you, I think the copy and paste confusion of earlier should now be overcome.

Cheers
nathj
Oct 2 '07 #12
Great it displays correctly but the default still is not working.
Oct 2 '07 #13
nathj
938 Expert 512MB
Great it displays correctly but the default still is not working.
The next thing to do then, to find out why the default is not working, is to view the source code from a browser. This will show yo what is happening. If you post this source code here I'll take a look at it, I'm sure we can get this nailed today.

Cheers
nathj
Oct 2 '07 #14
For some reason i have to enter 20 characters..

[PHP]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Sunfield Intranet </title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META HTTP-EQUIV="EXPIRES" CONTENT="0">
<META NAME="RESOURCE-TYPE" CONTENT="DOCUMENT">
<META NAME="DISTRIBUTION" CONTENT="GLOBAL">
<META NAME="AUTHOR" CONTENT="Sunfield Intranet">
<META NAME="COPYRIGHT" CONTENT="Copyright (c) by Sunfield Intranet">
<META NAME="KEYWORDS" CONTENT="News, news, New, new, Technology, technology, Headlines, headlines, Nuke, nuke, PHP-Nuke, phpnuke, php-nuke, PHP-Nuke Platinum, php-nuke platinum, PHPNuke Platinum, phpnuke platinum, Platinum, platinum, nuke platinum, Nuke Platinum, Platinum Suite, platinum suite, Platinum suite, Geek, geek, Geeks, geeks, Hacker, hacker, Hackers, hackers, Linux, linux, Windows, windows, Software, software, Download, download, Downloads, downloads, Free, FREE, free, Community, community, MP3, mp3, Forum, forum, Forums, forums, Bulletin, bulletin, Board, board, Boards, boards, PHP, php, Survey, survey, Kernel, kernel, Comment, comment, Comments, comments, Portal, portal, ODP, odp, Open, open, Open Source, OpenSource, Opensource, opensource, open source, Free Software, FreeSoftware, Freesoftware, free software, GNU, gnu, GPL, gpl, License, license, Unix, UNIX, *nix, unix, MySQL, mysql, SQL, sql, Database, DataBase, Blogs, blogs, Blog, blog, database, Mandrake, mandrake, Red Hat, RedHat, red hat, Slackware, slackware, SUSE, SuSE, suse, Debian, debian, Gnome, GNOME, gnome, Kde, KDE, kde, Enlightenment, enlightenment, Interactive, interactive, Programming, programming, Extreme, extreme, Game, game, Games, games, Web Site, web site, Weblog, WebLog, weblog, Guru, GURU, guru, Oracle, oracle, db2, DB2, odbc, ODBC, plugin, plugins, Plugin, Plugins">
<META NAME="DESCRIPTION" CONTENT="">
<META NAME="ROBOTS" CONTENT="INDEX, FOLLOW">
<META NAME="REVISIT-AFTER" CONTENT="1 DAYS">
<META NAME="RATING" CONTENT="GENERAL">
<META NAME="GENERATOR" CONTENT="PHP-Nuke Copyright (c) 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL (http://phpnuke.org/files/gpl.txt). PHP-Nuke comes with absolutely no warranty, for details, see the license (http://phpnuke.org/files/gpl.txt). Powered by PHP-Nuke Platinum (http://www.techgfx.com)">
<script language="Javascript" type="text/javascript">
<!--
function img_popup(image_url, image_width, image_height, popup_rand)
{
screenwidth = false;
screenwidth = screen.Width;
if ( !screenwidth )
{
screenwidth = window.outerWidth;
}
screenheight = false;
screenheight = screen.Height;
if ( !screenheight )
{
screenheight = window.outerHeight;
}
if ( screenwidth < image_width || screenheight < image_height || image_width == null || image_height == null )
{
window.open(image_url, 'limit_image_mod_popup_img_' + popup_rand, 'resizable=yes,top=0,left=0,screenX=0,screenY=0,sc rollbars=yes', false);
}
else
{
window.open(image_url, 'limit_image_mod_popup_img_' + popup_rand, 'resizable=yes,top=0,left=0,screenX=0,screenY=0,he ight=' + image_height + ',width=' + image_width, false);
}
}
//-->
</script>
<link rel="alternate" type="application/rss+xml" title="RSS" href="backend.php">

<style type="text/css">
.menuskin{
position:absolute;
background-color:#F2F1ED;
border:1px solid black;
font:normal 12px Verdana;
line-height:18px;
visibility:hidden;
color:#004A9D;
}

.menuskin a{
text-decoration:none;
color:#004A9D;
padding-left:10px;
padding-right:10px;
}

#mouseoverstyle{
background-color:#F2F1ED;
}

#mouseoverstyle a{
color:#FABF0D;
}
</style>
<LINK REL="StyleSheet" HREF="themes/PH2BLUE/style/style.css" TYPE="text/css">





</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('themes/PH2BLUE/images/header_05_on.jpg','themes/PH2BLUE/images/header_06_on.jpg','themes/PH2BLUE/images/header_07_on.jpg','themes/PH2BLUE/images/header_08_on.jpg','themes/PH2BLUE/images/header_09_on.jpg')">
<script src="themes/PH2BLUE/style/grade.js" language="Javascript"></script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script><table class="bodyline" align="center" width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td valign="top"><table width="100%" height="21" border="0" cellpadding="0" cellspacing="0"> <tr> <td background="themes/PH2BLUE/images/header_top.gif" width="100%"></td> <td><a href="index.php"><img src="themes/PH2BLUE/images/header_home.gif" border="0" alt="Home"></a></td> </tr></table><table width="100%" height="134" border="0" cellpadding="0" cellspacing="0"> <tr> <td><img src="themes/PH2BLUE/images/header_01.jpg" width="277" height="134" alt=""></td> <td><img src="themes/PH2BLUE/images/header_02.jpg" width="251" height="134" alt=""></td> <td><img src="themes/PH2BLUE/images/header_03.jpg" width="250" height="134" alt=""></td> <td width="100%" background="themes/PH2BLUE/images/spacer_top.jpg"></td> </tr></table><table width="100%" height="48" border="0" cellpadding="0" cellspacing="0"> <tr><td><img src="themes/PH2BLUE/images/header_04.jpg" width="277" height="48" alt=""></td><td><a href="index.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Item1','','themes/PH2BLUE/images/header_05_on.jpg',1)"><img src="themes/PH2BLUE/images/header_05.jpg" name="Item1" width="98" height="48"></a></td><td><a href="modules.php?name=Topics" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Item2','','themes/PH2BLUE/images/header_06_on.jpg',1)"><img src="themes/PH2BLUE/images/header_06.jpg" name="Item2" width="99" height="48"></a></td><td><a href="modules.php?name=Forums" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Item3','','themes/PH2BLUE/images/header_07_on.jpg',1)"><img src="themes/PH2BLUE/images/header_07.jpg" name="Item3" width="100" height="48"></a></td><td><a href="modules.php?name=Resources" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Item4','','themes/PH2BLUE/images/header_08_on.jpg',1)"><img src="themes/PH2BLUE/images/header_08.jpg" name="Item4" width="100" height="48"></a></td><td><a href="modules.php?name=Your_Account" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Item5','','themes/PH2BLUE/images/header_09_on.jpg',1)"><img src="themes/PH2BLUE/images/header_09.jpg" name="Item5" width="104" height="48"></a></td><td width="100%" background="themes/PH2BLUE/images/spacer_bottom.jpg"></td> </tr></table><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="194" height="12"><img src="themes/PH2BLUE/images/left_block_top.jpg"></td><td width="100%" height="12" background="themes/PH2BLUE/images/middle_block_top.jpg"></td><td width="194" height="12" background="themes/PH2BLUE/images/middle_block_top.jpg"></td></tr></table><table width="100%" cellpadding="0" cellspacing="0" border="0" align="center"><tr valign="top"><td valign="top" background="themes/PH2BLUE/images/block_left.jpg"><script type="text/javascript" language="JavaScript">
function sommaire_envoielistbox(page) {
var reg= new RegExp('(_sommaire_targetblank)$','g');
if (reg.test(page)) {
page=page.replace(reg,"");
window.open(page,'','menubar=yes,status=yes, location=yes, scrollbars=yes, resizable=yes');
}else if (page!="select") {
top.location.href=page;
}
}
function sommaire_ouvre_popup(page,nom,option) {
window.open(page,nom,option);
}
</script>
<style type="text/css">
.sommairenowrap {white-space: nowrap;}
</style>
<table width="194" border="0" cellspacing="0" cellpadding="0"><tr><td height="20" background="themes/PH2BLUE/images/block_left_header.jpg">&nbsp;&nbsp;&nbsp;&nbsp;<fo nt class="block-title"><strong>Navigation</strong></font></td></tr><tr><td height="2"><img src="themes/PH2BLUE/images/block_left_shaddow.jpg"></td></tr><tr><td background="themes/PH2BLUE/images/block_left.jpg"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td><table align="center" width="165" border="0" cellpadding="0" cellspacing="0"><tr><td height="5"></td></tr><tr><td><font class="content">
<!-- Sommaire realise grace au module Sommaire Parametrable v.3.0 b1 - ©marcoledingue - marcoledingue .-:@at@:-. free.fr --><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="100%"></td><td id="sommaire_block"></td></tr>
<tr bgcolor=""><td height="4" width="100%"></td><td id="sommaire_divsublevel0"></td></tr>
<tr><td bgcolor="" class="sommairenowrap" width="100%" ><a href="index.php"><img src="images/sommaire/icon_home.gif" border="0" alt="icon_home.gif"></a>&nbsp;<a href="index.php" class="storytitle"><span class="storytitle">Home</span></a></td></tr>
<tr bgcolor=""><td height="4"></td></tr>
<tr bgcolor=""><td height="4" width="100%"></td><td id="sommaire_divsublevel1"></td></tr>
<tr><td bgcolor="" class="sommairenowrap" width="100%" ><img src="images/sommaire/icon_members.gif" border="0" alt="icon_members.gif">&nbsp;<span class="storytitle">News</span></td></tr>
<tr id="sommaire-1"><td bgcolor="" width="100"><table border="0" cellspacing="0" cellpadding="0" class="sommairenowrap"><tr><td width="20" align="right"><img src="images/sommaire/categories/tree-T.gif" border="0" alt="tree-T.gif"></td><td>&nbsp;<a href="modules.php?name=Stories_Archive" class="boxcontent" ><span class="boxcontent">News Archive</span></a></td></tr>
<tr><td width="20" align="right"><img src="images/sommaire/admin/interdit.gif" title="Access restricted to our members" alt="Access restricted to our members"></td><td>&nbsp;<a href="modules.php?name=Submit_News" class="boxcontent" ><span class="boxcontent">Submit News</span></a></td></tr>
<tr><td width="20" align="right"><img src="images/sommaire/categories/tree-L.gif" border="0" alt="tree-L.gif"></td><td>&nbsp;<a href="modules.php?name=Topics" class="boxcontent" ><span class="boxcontent">News Topics</span></a></td></tr>
</table></td></tr><tr bgcolor=""><td height="4"></td></tr>
<tr bgcolor=""><td height="4" width="100%"></td><td id="sommaire_divsublevel2"></td></tr>
<tr><td bgcolor="" class="sommairenowrap" width="100%" ><img src="images/sommaire/icon_community.gif" border="0" alt="icon_community.gif">&nbsp;<span class="storytitle">General</span></td></tr>
<tr id="sommaire-2"><td bgcolor="" width="100"><table border="0" cellspacing="0" cellpadding="0" class="sommairenowrap"><tr><td width="20" align="right"><img src="images/sommaire/categories/tree-T.gif" border="0" alt="tree-T.gif"></td><td>&nbsp;<a href="modules.php?name=Calendar" class="boxcontent" ><span class="boxcontent">Calendar</span></a></td></tr>
<tr><td width="20" align="right"><img src="images/sommaire/admin/interdit.gif" title="Access restricted to our members" alt="Access restricted to our members"></td><td>&nbsp;<a href="modules.php?name=Forums" class="boxcontent" ><span class="boxcontent">Forums</span></a></td></tr>
<tr><td width="20" align="right"><img src="images/sommaire/categories/tree-L.gif" border="0" alt="tree-L.gif"></td><td>&nbsp;<a href="modules.php?name=Your_Account" class="boxcontent" ><span class="boxcontent">Account</span></a></td></tr>
</table></td></tr><tr bgcolor=""><td height="4"></td></tr>
<tr bgcolor=""><td height="4" width="100%"></td><td id="sommaire_divsublevel3"></td></tr>
<tr><td bgcolor="" class="sommairenowrap" width="100%" ><img src="images/sommaire/icon_poll.gif" border="0" alt="icon_poll.gif">&nbsp;<span class="storytitle">Feedback</span></td></tr>
<tr id="sommaire-3"><td bgcolor="" width="100"><table border="0" cellspacing="0" cellpadding="0" class="sommairenowrap"><tr><td width="20" align="right"><img src="images/sommaire/categories/tree-L.gif" border="0" alt="tree-L.gif"></td><td>&nbsp;<a href="modules.php?name=Surveys" class="boxcontent" ><span class="boxcontent">Surveys</span></a></td></tr>
</table></td></tr><tr bgcolor=""><td height="4"></td></tr>
<tr bgcolor=""><td height="4" width="100%"></td><td id="sommaire_divsublevel4"></td></tr>
<tr><td bgcolor="" class="sommairenowrap" width="100%" ><img src="images/sommaire/som_downloads.gif" border="0" alt="som_downloads.gif">&nbsp;<span class="storytitle">Resources</span></td></tr>
<tr id="sommaire-4"><td bgcolor="" width="100"><table border="0" cellspacing="0" cellpadding="0" class="sommairenowrap"><tr><td width="20" align="right"><img src="images/sommaire/categories/tree-T.gif" border="0" alt="tree-T.gif"></td><td>&nbsp;<a href="modules.php?name=FAQ" class="boxcontent" ><span class="boxcontent">FAQ</span></a></td></tr>
<tr><td width="20" align="right"><img src="images/sommaire/categories/tree-T.gif" border="0" alt="tree-T.gif"></td><td>&nbsp;<a href="modules.php?name=OptiMusic" class="boxcontent" ><span class="boxcontent">OptiMusic</span></a></td></tr>
<tr><td width="20" align="right"><img src="images/sommaire/categories/tree-T.gif" border="0" alt="tree-T.gif"></td><td>&nbsp;<a href="modules.php?name=Research" class="boxcontent" ><span class="boxcontent">Research Audit</span></a></td></tr>
<tr><td width="20" align="right"><img src="images/sommaire/categories/tree-T.gif" border="0" alt="tree-T.gif"></td><td>&nbsp;<a href="modules.php?name=Resources" class="boxcontent" ><span class="boxcontent">Resources</span></a></td></tr>
<tr><td width="20" align="right"><img src="images/sommaire/categories/tree-T.gif" border="0" alt="tree-T.gif"></td><td>&nbsp;<a href="modules.php?name=RoutePlanner" class="boxcontent" ><span class="boxcontent">RoutePlanner</span></a></td></tr>
<tr><td width="20" align="right"><img src="images/sommaire/categories/tree-L.gif" border="0" alt="tree-L.gif"></td><td>&nbsp;<a href="modules.php?name=Web_Links" class="boxcontent" ><span class="boxcontent">Web Links</span></a></td></tr>
</table></td></tr><tr bgcolor=""><td height="4"></td></tr>
<tr bgcolor=""><td height="4" width="100%"></td><td id="sommaire_divsublevel5"></td></tr>
<tr><td bgcolor="" class="sommairenowrap" width="100%" ><img src="images/sommaire/favoritos.gif" border="0" alt="favoritos.gif">&nbsp;<span class="storytitle">Events / Courses</span></td></tr>
<tr id="sommaire-5"><td bgcolor="" width="100"><table border="0" cellspacing="0" cellpadding="0" class="sommairenowrap"><tr><td width="20" align="right"><img src="images/sommaire/categories/tree-T.gif" border="0" alt="tree-T.gif"></td><td>&nbsp;<a href="modules.php?name=IT_Request" class="boxcontent" ><span class="boxcontent">IT_Equipment_Request</span></a></td></tr>
<tr><td width="20" align="right"><img src="images/sommaire/categories/tree-L.gif" border="0" alt="tree-L.gif"></td><td>&nbsp;<a href="modules.php?name=RoomBooking" class="boxcontent" ><span class="boxcontent">Room Booking</span></a></td></tr>
</table></td></tr><tr bgcolor=""><td height="4"></td></tr>
<tr bgcolor=""><td height="4" width="100%"></td><td id="sommaire_divsublevel6"></td></tr>
<tr><td bgcolor="" class="sommairenowrap" width="100%" ><img src="images/sommaire/multimedia.gif" border="0" alt="multimedia.gif">&nbsp;<span class="storytitle">Multimedia</span></td></tr>
<tr id="sommaire-6"><td bgcolor="" width="100"><table border="0" cellspacing="0" cellpadding="0" class="sommairenowrap"><tr><td width="20" align="right"><img src="images/sommaire/categories/tree-T.gif" border="0" alt="tree-T.gif"></td><td>&nbsp;<a href="modules.php?name=gallery2" class="boxcontent" ><span class="boxcontent">Gallery</span></a></td></tr>
<tr><td width="20" align="right"><img src="images/sommaire/categories/tree-L.gif" border="0" alt="tree-L.gif"></td><td>&nbsp;<a href="modules.php?name=Video_Stream" class="boxcontent" ><span class="boxcontent">Video</span></a></td></tr>
</table></td></tr><tr bgcolor=""><td height="4"></td></tr>
<tr bgcolor=""><td height="4" width="100%"></td><td id="sommaire_divsublevel7"></td></tr>
<tr><td bgcolor="" class="sommairenowrap" width="100%" ><img src="images/sommaire/nuke.gif" border="0" alt="nuke.gif">&nbsp;<span class="storytitle">Pilot Scheme</span></td></tr>
<tr id="sommaire-7"><td bgcolor="" width="100"><table border="0" cellspacing="0" cellpadding="0" class="sommairenowrap"><tr><td width="20" align="right"><strong><big>&middot;</big></strong></td><td>&nbsp;<a href="modules.php?name=Accident" class="boxcontent" ><span class="boxcontent"><strong>Accident_Form</strong></span></a><img src="images/sommaire/admin/new.gif" border=0 title="New content !" alt="New content !"></td></tr>
</table></td></tr><tr bgcolor=""><td height="4"></td></tr><tr><td></td></tr></table><br><center><b>Invisible Modules</b><br><font class="tiny">(Active but invisible link)</font></center><form action="modules.php" method="get" name="sommaireformlistboxinvisibles"><select name="somlistboxinvisibles" onchange="sommaire_envoielistbox(this.options[this.selectedIndex].value)"><option value="select">Select...<option value="modules.php?name=Arcade_Tweaks">Arcade_Twea ks<option value="modules.php?name=Groups">Groups<option value="modules.php?name=NukeSentinel">NukeSentinel <option value="modules.php?name=Who-is-Where">Who is Where</select></form>
<br><center><b>Inactive Modules</b><br><font class="tiny">(for Admin tests)</font></center><form action="modules.php" method="get" name="sommaireformlistboxinactifs"><select name="somlistboxinactifs" onchange="sommaire_envoielistbox(this.options[this.selectedIndex].value)"><option value="select">Select...<option value="modules.php?name=accident1">accident1<optio n value="modules.php?name=Amazon">Amazon<option value="modules.php?name=AvantGo">AvantGo<option value="modules.php?name=Banner_Ads">Banner Ads<option value="modules.php?name=Ban_Request">Request Ban<option value="modules.php?name=Cancel">Cancel<option value="modules.php?name=Contact">Contact<option value="modules.php?name=Content">Content<option value="modules.php?name=CZNews">CZNews<option value="modules.php?name=Docs">Documents<option value="modules.php?name=Donations">Donations<optio n value="modules.php?name=Downloads">Downloads<optio n value="modules.php?name=Email">Email<option value="modules.php?name=Encyclopedia">Encyclopedia <option value="modules.php?name=Intranet_News">Intranet_Ne ws<option value="modules.php?name=IT_Support">IT_Support<opt ion value="modules.php?name=Journal">Journal<option value="modules.php?name=Mailing_List">Mailing List<option value="modules.php?name=Members_List">Members List<option value="modules.php?name=NukeC30">NukeC30<option value="modules.php?name=PHP-Nuke_Tools">Tools<option value="modules.php?name=Private_Messages">My Messages<option value="modules.php?name=Psychology">Psychology<opt ion value="modules.php?name=Recommend_Us">Refer Us<option value="modules.php?name=ResourcesNew">ResourcesNew <option value="modules.php?name=Reviews">Reviews<option value="modules.php?name=Search">Search<option value="modules.php?name=Shopping_Cart">Store<optio n value="modules.php?name=Shout_Box">Shout Box<option value="modules.php?name=Staff">Staff<option value="modules.php?name=Staff_Accident">Staff_Acci dent<option value="modules.php?name=Statistics">Statistics<opt ion value="modules.php?name=Supporters">Supporters<opt ion value="modules.php?name=test">test<option value="modules.php?name=Thanks">Thanks<option value="modules.php?name=Theme_System">Themes<optio n value="modules.php?name=Top">Top 10<option value="modules.php?name=Top_Sites">Top Sites<option value="modules.php?name=Universal">Universal<optio n value="modules.php?name=User_Guide">Sentinel Info<option value="modules.php?name=Videos">Videos<option value="modules.php?name=Work_Board">Work Board<option value="modules.php?name=Work_Probe">Work Probe<option value="modules.php?name=Work_Request">Requests</select></form>
</font></td></tr></table>
<img src="themes/images/PH2BLUE/pixel.gif" width="4" height="3"></td></tr></table></td></tr></table><table width="194" border="0" cellspacing="0" cellpadding="0"><tr><td height="20" background="themes/PH2BLUE/images/block_left_header.jpg">&nbsp;&nbsp;&nbsp;&nbsp;<fo nt class="block-title"><strong>Administration</strong></font></td></tr><tr><td height="2"><img src="themes/PH2BLUE/images/block_left_shaddow.jpg"></td></tr><tr><td background="themes/PH2BLUE/images/block_left.jpg"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td><table align="center" width="165" border="0" cellpadding="0" cellspacing="0"><tr><td height="5"></td></tr><tr><td><font class="content"><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="95%"><tr><td><b>Quick Navigation</b></td></tr><TR><TD class="row1">&nbsp;<a href="admin.php">Admin [PHP-Nuke]</a></TD></TR>
<TR><TD class="row1">&nbsp;<a href="modules/Forums/admin/index.php">Admin [Forums]</a></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=adminStory">Add News</a></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=BlocksAdmin">Blocks Admin</a></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=messages">Messages Admin</a></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=modules">Modules Admin</a></TD></TR>
<TR><TD class="row1">&nbsp;<a href="modules.php?name=Your_Account&amp;file=admin ">Your Account Admin</a></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=logout">Logout</a></TD></TR>
</TABLE></font></td></tr></table>
<img src="themes/images/PH2BLUE/pixel.gif" width="4" height="3"></td></tr></table></td></tr></table><table width="194" border="0" cellspacing="0" cellpadding="0"><tr><td height="20" background="themes/PH2BLUE/images/block_left_header.jpg">&nbsp;&nbsp;&nbsp;&nbsp;<fo nt class="block-title"><strong>Submissions</strong></font></td></tr><tr><td height="2"><img src="themes/PH2BLUE/images/block_left_shaddow.jpg"></td></tr><tr><td background="themes/PH2BLUE/images/block_left.jpg"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td><table align="center" width="165" border="0" cellpadding="0" cellspacing="0"><tr><td height="5"></td></tr><tr><td><font class="content"><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="95%"><tr><td><b>News / Reviews</b></td></tr><TR><TD class="row1">&nbsp;<a href="admin.php?op=submissions">Submissions</a>: <b>0</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=reviews">Waiting Reviews</a>: <b>0</b></TD></TR>
<TR><TD><b>Calendar</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=Calendar">Waiting Events</a>: <b>0</b></TD></TR>
<TR><TD><b>Downloads</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=DownloadsListBrokenDownloads">B roken Downloads</a>: <b>0</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=downloads">Downloads</a>: <b>0</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=DownloadsListModRequests">Mod. Downloads</a>: <b>0</b></TD></TR>
<TR><TD><b>Supporters</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=Supportersactive">Active</a>: <b>0</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=Supportersinactive">Inactive</a>: <b>0</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=Supporterspending">Waiting</a>: <b>0</b></TD></TR>
<TR><TD><b>_ASNSNSUP2</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=Supporters_2active_2">Active</a>: <b></b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=Supporters_2inactive_2">Inactiv e</a>: <b></b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=Supporters_2pending_2">Waiting</a>: <b></b></TD></TR>
<TR><TD><b>Universal</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="modules.php?name=Universal&amp;file=admin&am p;op=ItemQueue">Waiting Items</a>: <b>0</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="modules.php?name=Universal&amp;file=admin&am p;op=WaitingMods">Waiting Mod</a>: <b>0</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="modules.php?name=Universal&amp;file=admin&am p;op=requestadmin">Waiting Requests</a>: <b>0</b></TD></TR>
<TR><TD><b>Web Links</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=LinksListBrokenLinks">Broken Links</a>: <b>0</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=LinksListModRequests">Mod. Links</a>: <b>0</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=Links">Waiting Links</a>: <b>0</b></TD></TR>
<TR><TD><b>_CLASS1</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=NukeC30">_CLASSIFIEDS</a>:<b> 0</b></TD></TR>
</TABLE></font></td></tr></table>
<img src="themes/images/PH2BLUE/pixel.gif" width="4" height="3"></td></tr></table></td></tr></table><table width="194" border="0" cellspacing="0" cellpadding="0"><tr><td height="20" background="themes/PH2BLUE/images/block_left_header.jpg">&nbsp;&nbsp;&nbsp;&nbsp;<fo nt class="block-title"><strong>Intranet Admin Login</strong></font></td></tr><tr><td height="2"><img src="themes/PH2BLUE/images/block_left_shaddow.jpg"></td></tr><tr><td background="themes/PH2BLUE/images/block_left.jpg"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td><table align="center" width="165" border="0" cellpadding="0" cellspacing="0"><tr><td height="5"></td></tr><tr><td><font class="content"><center>For use by website admins only, all unauthorized login attempts are logged.<form action="admin.php" method="post"><table border="0"><td><input type="text" NAME="aid" VALUE="Admin ID" SIZE="20" MAXLENGTH="25"></td></tr><td><input type="password" NAME="pwd" VALUE="Admin PW" SIZE="20" MAXLENGTH="18"></td></tr><tr><td><input type="hidden" NAME="random_num" value="490116"><input type="hidden" NAME="op" value="login"><center><input type="submit" VALUE="Login"></center></td></tr></table></form><a href="admin.php">Admin Main</a><br><a href="admin.php?op=logout">Logout</a></center></font></td></tr></table>
<img src="themes/images/PH2BLUE/pixel.gif" width="4" height="3"></td></tr></table></td></tr></table></td><td align="center" bgcolor="#FCFCFC" valign="top" width="100%">
<table width="100%" border="0" cellspacing="5" cellpadding="0"> <tr> <td bgcolor="#0A34AA"><table width="100%" border="0" cellspacing="0" cellpadding="1"> <tr> <td> <table width="100%" border="0" cellpadding="4" cellspacing="0"> <tr><td bgcolor="#F2F1ED">


<!!!!!"YOUR HTML GOES HERE"!!!!!>

<html>

<head>
<script type="text/javascript" src="calendarDateInput.js">

/***********************************************
* Jason's Date Input Calendar- By Jason Moon http://calendar.moonscript.com/dateinput.cfm
* Script featured on and available at http://www.dynamicdrive.com
* Keep this notice intact for use.
***********************************************/
</script>
<script language="javascript">
function printpage()
{
window.print();
}
</script>

</head>

<body>
<h1 align="center">Staff Accident Form Pilot Scheme</h1>
<center><h2>This form is to be used by Maple and Rowan only.</center></h2>
<form name="Form" form action="http://10.0.0.2/FormTools/staffaccidentreview.php" enctype="multipart/form-data" method="post">
<input type="hidden" name="form_tools_form_id" value="4" />

<table style="BORDER-COLLAPSE: collapse" borderColor="#111111" height="113" cellSpacing="0" cellPadding="0" width="797" border="0">
<tr>
<td width="286" height="22"><b>Name:</b></td>
<td width="218" colSpan="2" height="22">
<input maxLength="40" size="30" name="name"></td>
</tr>
<tr>
<td width="286" height="22"><b>Person Involved:</b></td>
<td align="left" width="365" height="24">

<select name='person_involved'><option value=Contractor selected='selected' >Contractor</option><option value=None selected='selected' >None</option><option value=Parent selected='selected' >Parent</option><option value=Sibling selected='selected' >Sibling</option><option value=Staff selected='selected' >Staff</option><option value=Staff (agency) selected='selected' >Staff (agency)</option><option value=Staff (Bank) selected='selected' >Staff (Bank)</option><option value=Student selected='selected' >Student</option><option value=Visitor selected='selected' >Visitor</option></select>
</td>
</tr>
<tr>
<td width="286" height="22"><b>House / Place of Work:</b></td>
<td width="218" colSpan="2" height="22">
<input maxLength="40" size="30" name="place_of_work"></td>
</tr>
<tr>
<td width="306" height="20"><span lang="en-gb"><b>ABC form completed:</b></span></td>
<td width="337" colSpan="4" height="20">
<input type="checkbox" value="YES" name="abcform"></td>
</tr>
<tr>
<td width="286" height="22"><b>ABC form number:</b></td>
<td width="218" colSpan="2" height="22">
<input maxLength="40" size="30" name="abcform_number"></td>
</tr>

<tr>
<td width="286" height="22"><span lang="en-gb"><b>Date of Accident:</b></span></td>
<td width="66" height="22"><script>DateInput('date_of_accident', true, 'DD-MM-YYYY')</script></td>
<td width="225" colSpan="2" height="22">
<span lang="en-gb"><b>Click on calendar to select date</b></span></td>
</tr>
<tr>
<td width="286" height="22"><b>Time of Accident:</b></td>
<td width="47" height="25">
<input maxLength="8" size="5" name="Time_of_accident" value="00:00"></td>
<td width="122" height="25"><b>(hh:mm 24 hour)</b></td>
</tr>
</table>
<p><u><span lang="en-gb"><font color="#ff0000" size="4">Details Of Accident</font></span></u></p>
<table style="BORDER-COLLAPSE: collapse" borderColor="#111111" height="108" cellSpacing="0" cellPadding="0" width="651" border="0">
<tr>
<td align="right" width="278" height="24">
<p align="left"><b>Where the Accident Occurred:</b> </td>
<td align="left" width="365" height="24"><select name="accident_location">


<option value="Beech">Beech</option>

<option value="Birch Boys">Birch Boys</option>

<option value="Birch Girls">Birch Girls</option>

<option value="Bracken">Bracken</option>

<option value="Dining Room">Dining Room</option>

<option value="Education">Education</option>

<option value="Elm">Elm</option>

<option value="Firs">Firs</option>

<option value="Grounds">Grounds</option>

<option value="Home Farm">Home Farm</option>

<option value="Main Hall">Main Hall</option>

<option value="Maple">Maple</option>

<option value="Minibus">Minibus</option>

<option value="None">None</option>

<option value="Oak">Oak</option>

<option value="Off Site">Off Site</option>

<option value="Orchard">Orchard</option>

<option value="Pool Car">Pool Car</option>

<option value="Rowan">Rowan</option>

<option value="SAOS">SAOS</option>

<option value="Soft Play">Soft Play</option>

<option value="Unknown">Unknown</option>

<option value="Woodlands">Woodlands</option>
</select></td>
</tr>
<tr>
<td align="right" width="278" height="84">
<p align="left"><b>How the Accident occurred:</b> </td>
<td align="left" width="365" height="84">
<textarea name="how" rows="5" cols="44"></textarea></td>
</tr>
<tr>
<td align="right" width="278" height="24">
<p align="left"><b>Student Involved:</b> </td>
<td align="left" width="365" height="24"><select name="child_involved">

<option value="Aaron Peters">Aaron Peters</option> <option value="Adam Edwards">Adam Edwards</option> <option value="Alex Lyndon-Smith">Alex Lyndon-Smith</option> <option value="Andrew Law">Andrew Law</option> <option value="Anthony Griffiths">Anthony Griffiths</option> <option value="Benjamin Morris">Benjamin Morris</option> <option value="Callum Mckinlay">Callum Mckinlay</option> <option value="Charles Green">Charles Green</option> <option value="Chris O'Donnell">Chris O'Donnell</option> <option value="Christopher Lewis">Christopher Lewis</option> <option value="Conor Lynch">Conor Lynch</option> <option value="Corlel Marshall">Corlel Marshall</option> <option value="Curtis Lloyd">Curtis Lloyd</option> <option value="Daniel Richards">Daniel Richards</option> <option value="David Creasey">David Creasey</option> <option value="David White">David White</option> <option value="Emma Lawrence">Emma Lawrence</option> <option value="Eugene Suzuki">Eugene Suzuki</option> <option value="Frances Campbell">Frances Campbell</option> <option value="Gail jJones">Gail jJones</option> <option value="George O'Rourke">George O'Rourke</option> <option value="Hardeep Dhami">Hardeep Dhami</option> <option value="Hazheen Siwaily">Hazheen Siwaily</option> <option value="Heather Ball">Heather Ball</option> <option value="Henry Paterson">Henry Paterson</option> <option value="Hiba Zein-Elabdin">Hiba Zein-Elabdin</option> <option value="Isaac Sullivan">Isaac Sullivan</option> <option value="Jacob Stanley">Jacob Stanley</option> <option value="Jason Cordelle">Jason Cordelle</option> <option value="Joanna Booth">Joanna Booth</option> <option value="Joe Furmage">Joe Furmage</option> <option value="John McAra">John McAra</option> <option value="Jordan Snelgrove">Jordan Snelgrove</option> <option value="Jordan Snelgrove">Jordan Snelgrove</option> <option value="Joshua Harris">Joshua Harris</option> <option value="Kai Powell">Kai Powell</option> <option value="Katie Le Blond">Katie Le Blond</option> <option value="Laura Mooney">Laura Mooney</option> <option value="Liam Dutton">Liam Dutton</option> <option value="Louise Banks">Louise Banks</option> <option value="Louise Hodson">Louise Hodson</option> <option value="Mark Coggin">Mark Coggin</option> <option value="Mark Pearson">Mark Pearson</option> <option value="Marvin Wilson">Marvin Wilson</option> <option value="Matthew Hawkins">Matthew Hawkins</option> <option value="Matthew Lawford">Matthew Lawford</option> <option value="Matthew Weber">Matthew Weber</option> <option value="Matthew Whalley">Matthew Whalley</option> <option value="Michael Canham">Michael Canham</option> <option value="Michael Gingell">Michael Gingell</option> <option value="Michael Jones">Michael Jones</option> <option value="Nicolas Van Stokkam">Nicolas Van Stokkam</option> <option value="None">None</option> <option value="None">None</option> <option value="Olivia Vann">Olivia Vann</option> <option value="Owen Wells">Owen Wells</option> <option value="Paul Beadell">Paul Beadell</option> <option value="Peter O'Leary">Peter O'Leary</option> <option value="Reg Price">Reg Price</option> <option value="Sean Grice">Sean Grice</option> <option value="Simon Shabha">Simon Shabha</option> <option value="Simon White">Simon White</option> <option value="Thomas Cox">Thomas Cox</option> <option value="Thomas Litchfield">Thomas Litchfield</option> <option value="Unknown">Unknown</option> <option value="Vincent Cook">Vincent Cook</option> <option value="Zachary Lauder">Zachary Lauder</option> </select></td>
</tr>
<tr>


</table>
<table style="BORDER-COLLAPSE: collapse" borderColor="#111111" height="123" cellSpacing="0" cellPadding="0" width="651" border="0">
<tr>
<td width="306" height="20"><span lang="en-gb"><b>Taken to Hospital:</b></span></td>
<td width="337" colSpan="4" height="20">
<input type="checkbox" value="YES" name="hospital"></td>
</tr>
<tr>
<td width="306" height="20"><span lang="en-gb"><b>Taken to Doctor:</b></span></td>
<td width="337" colSpan="4" height="20">
<input type="checkbox" value="YES" name="doctor"></td>
</tr>
<tr>
<td width="306" height="20"><span lang="en-gb"><b>Next of kin informed :</b></span></td>
<td width="337" colSpan="4" height="20">
<input type="checkbox" value="YES" name="next_of_kin"></td>
</tr>
<tr>
<td width="306" height="20"><span lang="en-gb"><b>On call manager informed :</b></span></td>
<td width="337" colSpan="4" height="20">
<input type="checkbox" value="YES" name="on_call"></td>
</tr>
<tr>
<td width="306" height="20"><span lang="en-gb"><b>Ambulance called:</b></span></td>
<td width="40" height="20">
<input type="checkbox" value="YES" name="ambulance_called"></td>
<td width="112" height="20">
<p align="right"><b>Time called:</b></td>
<td width="60" height="20">
<input maxLength="8" size="5" name="time_called" value="00:00"></td>
<td width="199" height="20"><b>(hh:mm 24 hour)</b></td>
</tr>
<tr>
<td width="306" height="20">&nbsp;</td>
<td width="40" height="20">&nbsp;</td>
<td width="112" height="20">
<p align="right"><b>Time arrived:</b></td>
<td width="60" height="20">
<input maxLength="8" size="5" name="time_arrived" value="00:00"></td>
<td width="199" height="20"><b>(hh:mm 24 hour)</b></td>
</tr>
</table>







<table style="BORDER-COLLAPSE: collapse" borderColor="#111111" cellSpacing="0" cellPadding="0" width="450" border="0">
<tr>
<td width="277"><b>Cause of injury (1)</b></td>
<td width="170"><select name="cause_of_injury1">

<option value="Bite">Bite</option>

<option value="ChallengingBehaviour">ChallengingBehaviour</option>

<option value="Fall">Fall</option>

<option value="Falling Object">Falling Object</option>

<option value="Grab">Grab</option>

<option value="Hair Pull">Hair Pull</option>

<option value="Hit">Hit</option>

<option value="Hot object/surface">Hot object/surface</option>

<option value="Kick">Kick</option>

<option value="Manual handling">Manual handling</option>

<option value="Missile">Missile</option>

<option value="None">None</option>

<option value="Pinch">Pinch</option>

<option value="Pull">Pull</option>

<option value="Punch">Punch</option>

<option value="Push">Push</option>

<option value="Restraint">Restraint</option>

<option value="Scratch">Scratch</option>

<option value="Seizure">Seizure</option>

<option value="Self Harm">Self Harm</option>

<option value="Sharp Object">Sharp Object</option>

<option value="Slip">Slip</option>

<option value="Trip">Trip</option>

<option value="Trodden on">Trodden on</option>

<option value="Unknown">Unknown</option>
</select></td>
</tr>
<tr>
<td width="277"><b>Injury received (1)</b></td>
<td width="170"><select name="injury_received1">

<option value="Bite marks">Bite marks</option>

<option value="Bruise">Bruise</option>

<option value="Burn">Burn</option>

<option value="Cut">Cut</option>

<option value="Fatality">Fatality</option>

<option value="Fracture">Fracture</option>

<option value="Hair loss">Hair loss</option>

<option value="Jarred">Jarred</option>

<option value="Muscle Strain">Muscle Strain</option>

<option value="None">None</option>

<option value="Redness">Redness</option>

<option value="Scald">Scald</option>

<option value="Scratch">Scratch</option>

<option value="Soreness">Soreness</option>

<option value="Swelling">Swelling</option>

<option value="Unconscious">Unconscious</option>

<option value="Unknown at time">Unknown at time</option>

<option value="Whiplash">Whiplash</option>
</select></td>
</tr>
<tr>
<td width="277"><b>Injury to part of body (1)</b></td>
<td width="170"><select name="injury_to_body_part1">


<option value="Ankle">Ankle</option>

<option value="Arm">Arm</option>

<option value="Back">Back</option>

<option value="Breast">Breast</option>

<option value="Chest">Chest</option>

<option value="Ear">Ear</option>

<option value="Elbow">Elbow</option>

<option value="Eye">Eye</option>

<option value="Face">Face</option>

<option value="Finger">Finger</option>

<option value="Finger">Finger</option>

<option value="Foot">Foot</option>

<option value="Groin">Groin</option>

<option value="Hand">Hand</option>

<option value="Head">Head</option>

<option value="Knee">Knee</option>

<option value="Leg">Leg</option>

<option value="Mouth">Mouth</option>

<option value="Neck">Neck</option>

<option value="None">None</option>

<option value="Nose">Nose</option>

<option value="Shin">Shin</option>

<option value="Shoulder">Shoulder</option>

<option value="Stomach">Stomach</option>

<option value="Thumb">Thumb</option>

<option value="Toe">Toe</option>

<option value="Wrist">Wrist</option>
</select></td>
</tr>
<tr>
<td width="277"><b>Cause of injury (2)</b></td>
<td width="170"><select name="cause_of_injury2">

<option value="Bite">Bite</option>

<option value="ChallengingBehaviour">ChallengingBehaviour</option>

<option value="Fall">Fall</option>

<option value="Falling Object">Falling Object</option>

<option value="Grab">Grab</option>

<option value="Hair Pull">Hair Pull</option>

<option value="Hit">Hit</option>

<option value="Hot object/surface">Hot object/surface</option>

<option value="Kick">Kick</option>

<option value="Manual handling">Manual handling</option>

<option value="Missile">Missile</option>

<option value="None">None</option>

<option value="Pinch">Pinch</option>

<option value="Pull">Pull</option>

<option value="Punch">Punch</option>

<option value="Push">Push</option>

<option value="Restraint">Restraint</option>

<option value="Scratch">Scratch</option>

<option value="Seizure">Seizure</option>

<option value="Self Harm">Self Harm</option>

<option value="Sharp Object">Sharp Object</option>

<option value="Slip">Slip</option>

<option value="Trip">Trip</option>

<option value="Trodden on">Trodden on</option>

<option value="Unknown">Unknown</option>
</select></td>
</tr>
<tr>
<td width="277"><b>Injury received (2)</b></td>
<td width="170"><select name="injury_received2">

<option value="Bite marks">Bite marks</option>

<option value="Bruise">Bruise</option>

<option value="Burn">Burn</option>

<option value="Cut">Cut</option>

<option value="Fatality">Fatality</option>

<option value="Fracture">Fracture</option>

<option value="Hair loss">Hair loss</option>

<option value="Jarred">Jarred</option>

<option value="Muscle Strain">Muscle Strain</option>

<option value="None">None</option>

<option value="Redness">Redness</option>

<option value="Scald">Scald</option>

<option value="Scratch">Scratch</option>

<option value="Soreness">Soreness</option>

<option value="Swelling">Swelling</option>

<option value="Unconscious">Unconscious</option>

<option value="Unknown at time">Unknown at time</option>

<option value="Whiplash">Whiplash</option>
</select></td>
</tr>
<tr>
<td width="277"><b>Injury to part of body (2)</b></td>
<td width="170"><select name="injury_to_body_part2">


<option value="Ankle">Ankle</option>

<option value="Arm">Arm</option>

<option value="Back">Back</option>

<option value="Breast">Breast</option>

<option value="Chest">Chest</option>

<option value="Ear">Ear</option>

<option value="Elbow">Elbow</option>

<option value="Eye">Eye</option>

<option value="Face">Face</option>

<option value="Finger">Finger</option>

<option value="Finger">Finger</option>

<option value="Foot">Foot</option>

<option value="Groin">Groin</option>

<option value="Hand">Hand</option>

<option value="Head">Head</option>

<option value="Knee">Knee</option>

<option value="Leg">Leg</option>

<option value="Mouth">Mouth</option>

<option value="Neck">Neck</option>

<option value="None">None</option>

<option value="Nose">Nose</option>

<option value="Shin">Shin</option>

<option value="Shoulder">Shoulder</option>

<option value="Stomach">Stomach</option>

<option value="Thumb">Thumb</option>

<option value="Toe">Toe</option>

<option value="Wrist">Wrist</option>
</select></td>
</tr>





</table>
<table style="BORDER-COLLAPSE: collapse" borderColor="#111111" cellSpacing="0" cellPadding="0" width="654" border="0">
<tr>
<td align="right" width="278" height="25">
<p align="left"><b>Describe in detail any treatment given:</b></td>
<td align="left" width="376" height="25">
<textarea name="describe_treatment" rows="5" cols="44"></textarea></td>
</tr>
</table>
<table style="BORDER-COLLAPSE: collapse" borderColor="#111111" height="27" cellSpacing="0" cellPadding="0" width="654" border="0">
<tr>
<td width="278" height="1"><b>Name of any witnesses to incident:</b></td>
<td width="376" height="1">
<input maxLength="40" size="30" name="name_of_witness"></td>
</tr>
<tr>
<td width="278" height="1"><b>Staff on duty:</b></td>
<td width="376" height="1">
<input maxLength="40" size="30" name="staff_on_duty"></td>
</tr>
<tr>
<td width="278" height="1"><b>Any other details:</b></td>
<td width="376" height="1">
<textarea name="other_details" rows="5" cols="44"></textarea></td>
</tr>
<tr>
<td width="278" height="1"><b>Name of person completing form:</b></td>
<td width="376" height="1">
<input maxLength="40" size="30" name="name_of_form_filler"></td>
</tr>
</table>
<table style="BORDER-COLLAPSE: collapse" borderColor="#111111" height="24" cellSpacing="0" cellPadding="0" width="653" border="0">
<tr>
<td width="278" height="1"><span lang="en-gb"><b>Date:</b></span></td>
<td width="80" height="1">
<script>DateInput('date', true, 'DD-MM-YYYY')</script></td>
<td width="225" colSpan="2" height="22">
<span lang="en-gb"><b>Click on calendar to select date</b></span></td>
</tr>
</table>

<p align="center">&nbsp;</p>
<p align="center">
<input type="submit" value="Submit" name="Confirmation:Your request has been received and is being processed.">
<input type="reset" value="Reset Form" name="B2">
</p>
</form>

<hr width="80%" color="#000000"><span lang="en-gb">



<p align="center">Page created &amp; maintained by PaulC</p>
<p align="center">Page last updated 26/09/2007</p>
</span>

</body>

</html>
<!!!!!"YOUR HTML STOPS HERE"!!!!!></td> </tr> </table></td></tr></table></td> </tr></table></td></table><table border="0" cellpadding="0" cellspacing="0" width="100%" id="AutoNumber1" height="36" background="themes/PH2BLUE/images/bottomline.jpg"><td align="center" width="100%"><font class="dcode"><b> &copy; 2006 Sunfield Childrens Homes Ltd</b></font><br>Created and maintained by PaulC</font></td></table></body>
</html>[/PHP]
Oct 2 '07 #15
Here is the source code from IE.
Sorry but this form is quite a big one.


[HTML]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Sunfield Intranet </title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META HTTP-EQUIV="EXPIRES" CONTENT="0">
<META NAME="RESOURCE-TYPE" CONTENT="DOCUMENT">
<META NAME="DISTRIBUTION" CONTENT="GLOBAL">
<META NAME="AUTHOR" CONTENT="Sunfield Intranet">
<META NAME="COPYRIGHT" CONTENT="Copyright (c) by Sunfield Intranet">
<META NAME="KEYWORDS" CONTENT="News, news, New, new, Technology, technology, Headlines, headlines, Nuke, nuke, PHP-Nuke, phpnuke, php-nuke, PHP-Nuke Platinum, php-nuke platinum, PHPNuke Platinum, phpnuke platinum, Platinum, platinum, nuke platinum, Nuke Platinum, Platinum Suite, platinum suite, Platinum suite, Geek, geek, Geeks, geeks, Hacker, hacker, Hackers, hackers, Linux, linux, Windows, windows, Software, software, Download, download, Downloads, downloads, Free, FREE, free, Community, community, MP3, mp3, Forum, forum, Forums, forums, Bulletin, bulletin, Board, board, Boards, boards, PHP, php, Survey, survey, Kernel, kernel, Comment, comment, Comments, comments, Portal, portal, ODP, odp, Open, open, Open Source, OpenSource, Opensource, opensource, open source, Free Software, FreeSoftware, Freesoftware, free software, GNU, gnu, GPL, gpl, License, license, Unix, UNIX, *nix, unix, MySQL, mysql, SQL, sql, Database, DataBase, Blogs, blogs, Blog, blog, database, Mandrake, mandrake, Red Hat, RedHat, red hat, Slackware, slackware, SUSE, SuSE, suse, Debian, debian, Gnome, GNOME, gnome, Kde, KDE, kde, Enlightenment, enlightenment, Interactive, interactive, Programming, programming, Extreme, extreme, Game, game, Games, games, Web Site, web site, Weblog, WebLog, weblog, Guru, GURU, guru, Oracle, oracle, db2, DB2, odbc, ODBC, plugin, plugins, Plugin, Plugins">
<META NAME="DESCRIPTION" CONTENT="">
<META NAME="ROBOTS" CONTENT="INDEX, FOLLOW">
<META NAME="REVISIT-AFTER" CONTENT="1 DAYS">
<META NAME="RATING" CONTENT="GENERAL">
<META NAME="GENERATOR" CONTENT="PHP-Nuke Copyright (c) 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL (http://phpnuke.org/files/gpl.txt). PHP-Nuke comes with absolutely no warranty, for details, see the license (http://phpnuke.org/files/gpl.txt). Powered by PHP-Nuke Platinum (http://www.techgfx.com)">
<script language="Javascript" type="text/javascript">
<!--
function img_popup(image_url, image_width, image_height, popup_rand)
{
screenwidth = false;
screenwidth = screen.Width;
if ( !screenwidth )
{
screenwidth = window.outerWidth;
}
screenheight = false;
screenheight = screen.Height;
if ( !screenheight )
{
screenheight = window.outerHeight;
}
if ( screenwidth < image_width || screenheight < image_height || image_width == null || image_height == null )
{
window.open(image_url, 'limit_image_mod_popup_img_' + popup_rand, 'resizable=yes,top=0,left=0,screenX=0,screenY=0,sc rollbars=yes', false);
}
else
{
window.open(image_url, 'limit_image_mod_popup_img_' + popup_rand, 'resizable=yes,top=0,left=0,screenX=0,screenY=0,he ight=' + image_height + ',width=' + image_width, false);
}
}
//-->
</script>
<link rel="alternate" type="application/rss+xml" title="RSS" href="backend.php">

<style type="text/css">
.menuskin{
position:absolute;
background-color:#F2F1ED;
border:1px solid black;
font:normal 12px Verdana;
line-height:18px;
visibility:hidden;
color:#004A9D;
}

.menuskin a{
text-decoration:none;
color:#004A9D;
padding-left:10px;
padding-right:10px;
}

#mouseoverstyle{
background-color:#F2F1ED;
}

#mouseoverstyle a{
color:#FABF0D;
}
</style>
<LINK REL="StyleSheet" HREF="themes/PH2BLUE/style/style.css" TYPE="text/css">





</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('themes/PH2BLUE/images/header_05_on.jpg','themes/PH2BLUE/images/header_06_on.jpg','themes/PH2BLUE/images/header_07_on.jpg','themes/PH2BLUE/images/header_08_on.jpg','themes/PH2BLUE/images/header_09_on.jpg')">
<script src="themes/PH2BLUE/style/grade.js" language="Javascript"></script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script><table class="bodyline" align="center" width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td valign="top"><table width="100%" height="21" border="0" cellpadding="0" cellspacing="0"> <tr> <td background="themes/PH2BLUE/images/header_top.gif" width="100%"></td> <td><a href="index.php"><img src="themes/PH2BLUE/images/header_home.gif" border="0" alt="Home"></a></td> </tr></table><table width="100%" height="134" border="0" cellpadding="0" cellspacing="0"> <tr> <td><img src="themes/PH2BLUE/images/header_01.jpg" width="277" height="134" alt=""></td> <td><img src="themes/PH2BLUE/images/header_02.jpg" width="251" height="134" alt=""></td> <td><img src="themes/PH2BLUE/images/header_03.jpg" width="250" height="134" alt=""></td> <td width="100%" background="themes/PH2BLUE/images/spacer_top.jpg"></td> </tr></table><table width="100%" height="48" border="0" cellpadding="0" cellspacing="0"> <tr><td><img src="themes/PH2BLUE/images/header_04.jpg" width="277" height="48" alt=""></td><td><a href="index.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Item1','','themes/PH2BLUE/images/header_05_on.jpg',1)"><img src="themes/PH2BLUE/images/header_05.jpg" name="Item1" width="98" height="48"></a></td><td><a href="modules.php?name=Topics" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Item2','','themes/PH2BLUE/images/header_06_on.jpg',1)"><img src="themes/PH2BLUE/images/header_06.jpg" name="Item2" width="99" height="48"></a></td><td><a href="modules.php?name=Forums" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Item3','','themes/PH2BLUE/images/header_07_on.jpg',1)"><img src="themes/PH2BLUE/images/header_07.jpg" name="Item3" width="100" height="48"></a></td><td><a href="modules.php?name=Resources" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Item4','','themes/PH2BLUE/images/header_08_on.jpg',1)"><img src="themes/PH2BLUE/images/header_08.jpg" name="Item4" width="100" height="48"></a></td><td><a href="modules.php?name=Your_Account" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Item5','','themes/PH2BLUE/images/header_09_on.jpg',1)"><img src="themes/PH2BLUE/images/header_09.jpg" name="Item5" width="104" height="48"></a></td><td width="100%" background="themes/PH2BLUE/images/spacer_bottom.jpg"></td> </tr></table><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="194" height="12"><img src="themes/PH2BLUE/images/left_block_top.jpg"></td><td width="100%" height="12" background="themes/PH2BLUE/images/middle_block_top.jpg"></td><td width="194" height="12" background="themes/PH2BLUE/images/middle_block_top.jpg"></td></tr></table><table width="100%" cellpadding="0" cellspacing="0" border="0" align="center"><tr valign="top"><td valign="top" background="themes/PH2BLUE/images/block_left.jpg"><script type="text/javascript" language="JavaScript">
function sommaire_envoielistbox(page) {
var reg= new RegExp('(_sommaire_targetblank)$','g');
if (reg.test(page)) {
page=page.replace(reg,"");
window.open(page,'','menubar=yes,status=yes, location=yes, scrollbars=yes, resizable=yes');
}else if (page!="select") {
top.location.href=page;
}
}
function sommaire_ouvre_popup(page,nom,option) {
window.open(page,nom,option);
}
</script>
<style type="text/css">
.sommairenowrap {white-space: nowrap;}
</style>
<table width="194" border="0" cellspacing="0" cellpadding="0"><tr><td height="20" background="themes/PH2BLUE/images/block_left_header.jpg">&nbsp;&nbsp;&nbsp;&nbsp;<fo nt class="block-title"><strong>Navigation</strong></font></td></tr><tr><td height="2"><img src="themes/PH2BLUE/images/block_left_shaddow.jpg"></td></tr><tr><td background="themes/PH2BLUE/images/block_left.jpg"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td><table align="center" width="165" border="0" cellpadding="0" cellspacing="0"><tr><td height="5"></td></tr><tr><td><font class="content">
<!-- Sommaire realise grace au module Sommaire Parametrable v.3.0 b1 - ©marcoledingue - marcoledingue .-:@at@:-. free.fr --><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="100%"></td><td id="sommaire_block"></td></tr>
<tr bgcolor=""><td height="4" width="100%"></td><td id="sommaire_divsublevel0"></td></tr>
<tr><td bgcolor="" class="sommairenowrap" width="100%" ><a href="index.php"><img src="images/sommaire/icon_home.gif" border="0" alt="icon_home.gif"></a>&nbsp;<a href="index.php" class="storytitle"><span class="storytitle">Home</span></a></td></tr>
<tr bgcolor=""><td height="4"></td></tr>
<tr bgcolor=""><td height="4" width="100%"></td><td id="sommaire_divsublevel1"></td></tr>
<tr><td bgcolor="" class="sommairenowrap" width="100%" ><img src="images/sommaire/icon_members.gif" border="0" alt="icon_members.gif">&nbsp;<span class="storytitle">News</span></td></tr>
<tr id="sommaire-1"><td bgcolor="" width="100"><table border="0" cellspacing="0" cellpadding="0" class="sommairenowrap"><tr><td width="20" align="right"><img src="images/sommaire/categories/tree-T.gif" border="0" alt="tree-T.gif"></td><td>&nbsp;<a href="modules.php?name=Stories_Archive" class="boxcontent" ><span class="boxcontent">News Archive</span></a></td></tr>
<tr><td width="20" align="right"><img src="images/sommaire/admin/interdit.gif" title="Access restricted to our members" alt="Access restricted to our members"></td><td>&nbsp;<a href="modules.php?name=Submit_News" class="boxcontent" ><span class="boxcontent">Submit News</span></a></td></tr>
<tr><td width="20" align="right"><img src="images/sommaire/categories/tree-L.gif" border="0" alt="tree-L.gif"></td><td>&nbsp;<a href="modules.php?name=Topics" class="boxcontent" ><span class="boxcontent">News Topics</span></a></td></tr>
</table></td></tr><tr bgcolor=""><td height="4"></td></tr>
<tr bgcolor=""><td height="4" width="100%"></td><td id="sommaire_divsublevel2"></td></tr>
<tr><td bgcolor="" class="sommairenowrap" width="100%" ><img src="images/sommaire/icon_community.gif" border="0" alt="icon_community.gif">&nbsp;<span class="storytitle">General</span></td></tr>
<tr id="sommaire-2"><td bgcolor="" width="100"><table border="0" cellspacing="0" cellpadding="0" class="sommairenowrap"><tr><td width="20" align="right"><img src="images/sommaire/categories/tree-T.gif" border="0" alt="tree-T.gif"></td><td>&nbsp;<a href="modules.php?name=Calendar" class="boxcontent" ><span class="boxcontent">Calendar</span></a></td></tr>
<tr><td width="20" align="right"><img src="images/sommaire/admin/interdit.gif" title="Access restricted to our members" alt="Access restricted to our members"></td><td>&nbsp;<a href="modules.php?name=Forums" class="boxcontent" ><span class="boxcontent">Forums</span></a></td></tr>
<tr><td width="20" align="right"><img src="images/sommaire/categories/tree-L.gif" border="0" alt="tree-L.gif"></td><td>&nbsp;<a href="modules.php?name=Your_Account" class="boxcontent" ><span class="boxcontent">Account</span></a></td></tr>
</table></td></tr><tr bgcolor=""><td height="4"></td></tr>
<tr bgcolor=""><td height="4" width="100%"></td><td id="sommaire_divsublevel3"></td></tr>
<tr><td bgcolor="" class="sommairenowrap" width="100%" ><img src="images/sommaire/icon_poll.gif" border="0" alt="icon_poll.gif">&nbsp;<span class="storytitle">Feedback</span></td></tr>
<tr id="sommaire-3"><td bgcolor="" width="100"><table border="0" cellspacing="0" cellpadding="0" class="sommairenowrap"><tr><td width="20" align="right"><img src="images/sommaire/categories/tree-L.gif" border="0" alt="tree-L.gif"></td><td>&nbsp;<a href="modules.php?name=Surveys" class="boxcontent" ><span class="boxcontent">Surveys</span></a></td></tr>
</table></td></tr><tr bgcolor=""><td height="4"></td></tr>
<tr bgcolor=""><td height="4" width="100%"></td><td id="sommaire_divsublevel4"></td></tr>
<tr><td bgcolor="" class="sommairenowrap" width="100%" ><img src="images/sommaire/som_downloads.gif" border="0" alt="som_downloads.gif">&nbsp;<span class="storytitle">Resources</span></td></tr>
<tr id="sommaire-4"><td bgcolor="" width="100"><table border="0" cellspacing="0" cellpadding="0" class="sommairenowrap"><tr><td width="20" align="right"><img src="images/sommaire/categories/tree-T.gif" border="0" alt="tree-T.gif"></td><td>&nbsp;<a href="modules.php?name=FAQ" class="boxcontent" ><span class="boxcontent">FAQ</span></a></td></tr>
<tr><td width="20" align="right"><img src="images/sommaire/categories/tree-T.gif" border="0" alt="tree-T.gif"></td><td>&nbsp;<a href="modules.php?name=OptiMusic" class="boxcontent" ><span class="boxcontent">OptiMusic</span></a></td></tr>
<tr><td width="20" align="right"><img src="images/sommaire/categories/tree-T.gif" border="0" alt="tree-T.gif"></td><td>&nbsp;<a href="modules.php?name=Research" class="boxcontent" ><span class="boxcontent">Research Audit</span></a></td></tr>
<tr><td width="20" align="right"><img src="images/sommaire/categories/tree-T.gif" border="0" alt="tree-T.gif"></td><td>&nbsp;<a href="modules.php?name=Resources" class="boxcontent" ><span class="boxcontent">Resources</span></a></td></tr>
<tr><td width="20" align="right"><img src="images/sommaire/categories/tree-T.gif" border="0" alt="tree-T.gif"></td><td>&nbsp;<a href="modules.php?name=RoutePlanner" class="boxcontent" ><span class="boxcontent">RoutePlanner</span></a></td></tr>
<tr><td width="20" align="right"><img src="images/sommaire/categories/tree-L.gif" border="0" alt="tree-L.gif"></td><td>&nbsp;<a href="modules.php?name=Web_Links" class="boxcontent" ><span class="boxcontent">Web Links</span></a></td></tr>
</table></td></tr><tr bgcolor=""><td height="4"></td></tr>
<tr bgcolor=""><td height="4" width="100%"></td><td id="sommaire_divsublevel5"></td></tr>
<tr><td bgcolor="" class="sommairenowrap" width="100%" ><img src="images/sommaire/favoritos.gif" border="0" alt="favoritos.gif">&nbsp;<span class="storytitle">Events / Courses</span></td></tr>
<tr id="sommaire-5"><td bgcolor="" width="100"><table border="0" cellspacing="0" cellpadding="0" class="sommairenowrap"><tr><td width="20" align="right"><img src="images/sommaire/categories/tree-T.gif" border="0" alt="tree-T.gif"></td><td>&nbsp;<a href="modules.php?name=IT_Request" class="boxcontent" ><span class="boxcontent">IT_Equipment_Request</span></a></td></tr>
<tr><td width="20" align="right"><img src="images/sommaire/categories/tree-L.gif" border="0" alt="tree-L.gif"></td><td>&nbsp;<a href="modules.php?name=RoomBooking" class="boxcontent" ><span class="boxcontent">Room Booking</span></a></td></tr>
</table></td></tr><tr bgcolor=""><td height="4"></td></tr>
<tr bgcolor=""><td height="4" width="100%"></td><td id="sommaire_divsublevel6"></td></tr>
<tr><td bgcolor="" class="sommairenowrap" width="100%" ><img src="images/sommaire/multimedia.gif" border="0" alt="multimedia.gif">&nbsp;<span class="storytitle">Multimedia</span></td></tr>
<tr id="sommaire-6"><td bgcolor="" width="100"><table border="0" cellspacing="0" cellpadding="0" class="sommairenowrap"><tr><td width="20" align="right"><img src="images/sommaire/categories/tree-T.gif" border="0" alt="tree-T.gif"></td><td>&nbsp;<a href="modules.php?name=gallery2" class="boxcontent" ><span class="boxcontent">Gallery</span></a></td></tr>
<tr><td width="20" align="right"><img src="images/sommaire/categories/tree-L.gif" border="0" alt="tree-L.gif"></td><td>&nbsp;<a href="modules.php?name=Video_Stream" class="boxcontent" ><span class="boxcontent">Video</span></a></td></tr>
</table></td></tr><tr bgcolor=""><td height="4"></td></tr>
<tr bgcolor=""><td height="4" width="100%"></td><td id="sommaire_divsublevel7"></td></tr>
<tr><td bgcolor="" class="sommairenowrap" width="100%" ><img src="images/sommaire/nuke.gif" border="0" alt="nuke.gif">&nbsp;<span class="storytitle">Pilot Scheme</span></td></tr>
<tr id="sommaire-7"><td bgcolor="" width="100"><table border="0" cellspacing="0" cellpadding="0" class="sommairenowrap"><tr><td width="20" align="right"><strong><big>&middot;</big></strong></td><td>&nbsp;<a href="modules.php?name=Accident" class="boxcontent" ><span class="boxcontent"><strong>Accident_Form</strong></span></a><img src="images/sommaire/admin/new.gif" border=0 title="New content !" alt="New content !"></td></tr>
</table></td></tr><tr bgcolor=""><td height="4"></td></tr><tr><td></td></tr></table><br><center><b>Invisible Modules</b><br><font class="tiny">(Active but invisible link)</font></center><form action="modules.php" method="get" name="sommaireformlistboxinvisibles"><select name="somlistboxinvisibles" onchange="sommaire_envoielistbox(this.options[this.selectedIndex].value)"><option value="select">Select...<option value="modules.php?name=Arcade_Tweaks">Arcade_Twea ks<option value="modules.php?name=Groups">Groups<option value="modules.php?name=NukeSentinel">NukeSentinel <option value="modules.php?name=Who-is-Where">Who is Where</select></form>
<br><center><b>Inactive Modules</b><br><font class="tiny">(for Admin tests)</font></center><form action="modules.php" method="get" name="sommaireformlistboxinactifs"><select name="somlistboxinactifs" onchange="sommaire_envoielistbox(this.options[this.selectedIndex].value)"><option value="select">Select...<option value="modules.php?name=accident1">accident1<optio n value="modules.php?name=Amazon">Amazon<option value="modules.php?name=AvantGo">AvantGo<option value="modules.php?name=Banner_Ads">Banner Ads<option value="modules.php?name=Ban_Request">Request Ban<option value="modules.php?name=Cancel">Cancel<option value="modules.php?name=Contact">Contact<option value="modules.php?name=Content">Content<option value="modules.php?name=CZNews">CZNews<option value="modules.php?name=Docs">Documents<option value="modules.php?name=Donations">Donations<optio n value="modules.php?name=Downloads">Downloads<optio n value="modules.php?name=Email">Email<option value="modules.php?name=Encyclopedia">Encyclopedia <option value="modules.php?name=Intranet_News">Intranet_Ne ws<option value="modules.php?name=IT_Support">IT_Support<opt ion value="modules.php?name=Journal">Journal<option value="modules.php?name=Mailing_List">Mailing List<option value="modules.php?name=Members_List">Members List<option value="modules.php?name=NukeC30">NukeC30<option value="modules.php?name=PHP-Nuke_Tools">Tools<option value="modules.php?name=Private_Messages">My Messages<option value="modules.php?name=Psychology">Psychology<opt ion value="modules.php?name=Recommend_Us">Refer Us<option value="modules.php?name=ResourcesNew">ResourcesNew <option value="modules.php?name=Reviews">Reviews<option value="modules.php?name=Search">Search<option value="modules.php?name=Shopping_Cart">Store<optio n value="modules.php?name=Shout_Box">Shout Box<option value="modules.php?name=Staff">Staff<option value="modules.php?name=Staff_Accident">Staff_Acci dent<option value="modules.php?name=Statistics">Statistics<opt ion value="modules.php?name=Supporters">Supporters<opt ion value="modules.php?name=test">test<option value="modules.php?name=Thanks">Thanks<option value="modules.php?name=Theme_System">Themes<optio n value="modules.php?name=Top">Top 10<option value="modules.php?name=Top_Sites">Top Sites<option value="modules.php?name=Universal">Universal<optio n value="modules.php?name=User_Guide">Sentinel Info<option value="modules.php?name=Videos">Videos<option value="modules.php?name=Work_Board">Work Board<option value="modules.php?name=Work_Probe">Work Probe<option value="modules.php?name=Work_Request">Requests</select></form>
</font></td></tr></table>
<img src="themes/images/PH2BLUE/pixel.gif" width="4" height="3"></td></tr></table></td></tr></table><table width="194" border="0" cellspacing="0" cellpadding="0"><tr><td height="20" background="themes/PH2BLUE/images/block_left_header.jpg">&nbsp;&nbsp;&nbsp;&nbsp;<fo nt class="block-title"><strong>Administration</strong></font></td></tr><tr><td height="2"><img src="themes/PH2BLUE/images/block_left_shaddow.jpg"></td></tr><tr><td background="themes/PH2BLUE/images/block_left.jpg"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td><table align="center" width="165" border="0" cellpadding="0" cellspacing="0"><tr><td height="5"></td></tr><tr><td><font class="content"><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="95%"><tr><td><b>Quick Navigation</b></td></tr><TR><TD class="row1">&nbsp;<a href="admin.php">Admin [PHP-Nuke]</a></TD></TR>
<TR><TD class="row1">&nbsp;<a href="modules/Forums/admin/index.php">Admin [Forums]</a></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=adminStory">Add News</a></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=BlocksAdmin">Blocks Admin</a></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=messages">Messages Admin</a></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=modules">Modules Admin</a></TD></TR>
<TR><TD class="row1">&nbsp;<a href="modules.php?name=Your_Account&amp;file=admin ">Your Account Admin</a></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=logout">Logout</a></TD></TR>
</TABLE></font></td></tr></table>
<img src="themes/images/PH2BLUE/pixel.gif" width="4" height="3"></td></tr></table></td></tr></table><table width="194" border="0" cellspacing="0" cellpadding="0"><tr><td height="20" background="themes/PH2BLUE/images/block_left_header.jpg">&nbsp;&nbsp;&nbsp;&nbsp;<fo nt class="block-title"><strong>Submissions</strong></font></td></tr><tr><td height="2"><img src="themes/PH2BLUE/images/block_left_shaddow.jpg"></td></tr><tr><td background="themes/PH2BLUE/images/block_left.jpg"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td><table align="center" width="165" border="0" cellpadding="0" cellspacing="0"><tr><td height="5"></td></tr><tr><td><font class="content"><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="95%"><tr><td><b>News / Reviews</b></td></tr><TR><TD class="row1">&nbsp;<a href="admin.php?op=submissions">Submissions</a>: <b>0</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=reviews">Waiting Reviews</a>: <b>0</b></TD></TR>
<TR><TD><b>Calendar</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=Calendar">Waiting Events</a>: <b>0</b></TD></TR>
<TR><TD><b>Downloads</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=DownloadsListBrokenDownloads">B roken Downloads</a>: <b>0</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=downloads">Downloads</a>: <b>0</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=DownloadsListModRequests">Mod. Downloads</a>: <b>0</b></TD></TR>
<TR><TD><b>Supporters</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=Supportersactive">Active</a>: <b>0</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=Supportersinactive">Inactive</a>: <b>0</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=Supporterspending">Waiting</a>: <b>0</b></TD></TR>
<TR><TD><b>_ASNSNSUP2</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=Supporters_2active_2">Active</a>: <b></b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=Supporters_2inactive_2">Inactiv e</a>: <b></b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=Supporters_2pending_2">Waiting</a>: <b></b></TD></TR>
<TR><TD><b>Universal</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="modules.php?name=Universal&amp;file=admin&am p;op=ItemQueue">Waiting Items</a>: <b>0</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="modules.php?name=Universal&amp;file=admin&am p;op=WaitingMods">Waiting Mod</a>: <b>0</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="modules.php?name=Universal&amp;file=admin&am p;op=requestadmin">Waiting Requests</a>: <b>0</b></TD></TR>
<TR><TD><b>Web Links</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=LinksListBrokenLinks">Broken Links</a>: <b>0</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=LinksListModRequests">Mod. Links</a>: <b>0</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=Links">Waiting Links</a>: <b>0</b></TD></TR>
<TR><TD><b>_CLASS1</b></TD></TR>
<TR><TD class="row1">&nbsp;<a href="admin.php?op=NukeC30">_CLASSIFIEDS</a>:<b> 0</b></TD></TR>
</TABLE></font></td></tr></table>
<img src="themes/images/PH2BLUE/pixel.gif" width="4" height="3"></td></tr></table></td></tr></table><table width="194" border="0" cellspacing="0" cellpadding="0"><tr><td height="20" background="themes/PH2BLUE/images/block_left_header.jpg">&nbsp;&nbsp;&nbsp;&nbsp;<fo nt class="block-title"><strong>Intranet Admin Login</strong></font></td></tr><tr><td height="2"><img src="themes/PH2BLUE/images/block_left_shaddow.jpg"></td></tr><tr><td background="themes/PH2BLUE/images/block_left.jpg"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td><table align="center" width="165" border="0" cellpadding="0" cellspacing="0"><tr><td height="5"></td></tr><tr><td><font class="content"><center>For use by website admins only, all unauthorized login attempts are logged.<form action="admin.php" method="post"><table border="0"><td><input type="text" NAME="aid" VALUE="Admin ID" SIZE="20" MAXLENGTH="25"></td></tr><td><input type="password" NAME="pwd" VALUE="Admin PW" SIZE="20" MAXLENGTH="18"></td></tr><tr><td><input type="hidden" NAME="random_num" value="490116"><input type="hidden" NAME="op" value="login"><center><input type="submit" VALUE="Login"></center></td></tr></table></form><a href="admin.php">Admin Main</a><br><a href="admin.php?op=logout">Logout</a></center></font></td></tr></table>
<img src="themes/images/PH2BLUE/pixel.gif" width="4" height="3"></td></tr></table></td></tr></table></td><td align="center" bgcolor="#FCFCFC" valign="top" width="100%">
<table width="100%" border="0" cellspacing="5" cellpadding="0"> <tr> <td bgcolor="#0A34AA"><table width="100%" border="0" cellspacing="0" cellpadding="1"> <tr> <td> <table width="100%" border="0" cellpadding="4" cellspacing="0"> <tr><td bgcolor="#F2F1ED">


<!!!!!"YOUR HTML GOES HERE"!!!!!>

<html>

<head>
<script type="text/javascript" src="calendarDateInput.js">

/***********************************************
* Jason's Date Input Calendar- By Jason Moon http://calendar.moonscript.com/dateinput.cfm
* Script featured on and available at http://www.dynamicdrive.com
* Keep this notice intact for use.
***********************************************/
</script>
<script language="javascript">
function printpage()
{
window.print();
}
</script>

</head>

<body>
<h1 align="center">Staff Accident Form Pilot Scheme</h1>
<center><h2>This form is to be used by Maple and Rowan only.</center></h2>
<form name="Form" form action="http://10.0.0.2/FormTools/staffaccidentreview.php" enctype="multipart/form-data" method="post">
<input type="hidden" name="form_tools_form_id" value="4" />

<table style="BORDER-COLLAPSE: collapse" borderColor="#111111" height="113" cellSpacing="0" cellPadding="0" width="797" border="0">
<tr>
<td width="286" height="22"><b>Name:</b></td>
<td width="218" colSpan="2" height="22">
<input maxLength="40" size="30" name="name"></td>
</tr>
<tr>
<td width="286" height="22"><b>Person Involved:</b></td>
<td align="left" width="365" height="24">

<select name='person_involved'><option value=Contractor selected='selected' >Contractor</option><option value=None selected='selected' >None</option><option value=Parent selected='selected' >Parent</option><option value=Sibling selected='selected' >Sibling</option><option value=Staff selected='selected' >Staff</option><option value=Staff (agency) selected='selected' >Staff (agency)</option><option value=Staff (Bank) selected='selected' >Staff (Bank)</option><option value=Student selected='selected' >Student</option><option value=Visitor selected='selected' >Visitor</option></select>
</td>
</tr>
<tr>
<td width="286" height="22"><b>House / Place of Work:</b></td>
<td width="218" colSpan="2" height="22">
<input maxLength="40" size="30" name="place_of_work"></td>
</tr>
<tr>
<td width="306" height="20"><span lang="en-gb"><b>ABC form completed:</b></span></td>
<td width="337" colSpan="4" height="20">
<input type="checkbox" value="YES" name="abcform"></td>
</tr>
<tr>
<td width="286" height="22"><b>ABC form number:</b></td>
<td width="218" colSpan="2" height="22">
<input maxLength="40" size="30" name="abcform_number"></td>
</tr>

<tr>
<td width="286" height="22"><span lang="en-gb"><b>Date of Accident:</b></span></td>
<td width="66" height="22"><script>DateInput('date_of_accident', true, 'DD-MM-YYYY')</script></td>
<td width="225" colSpan="2" height="22">
<span lang="en-gb"><b>Click on calendar to select date</b></span></td>
</tr>
<tr>
<td width="286" height="22"><b>Time of Accident:</b></td>
<td width="47" height="25">
<input maxLength="8" size="5" name="Time_of_accident" value="00:00"></td>
<td width="122" height="25"><b>(hh:mm 24 hour)</b></td>
</tr>
</table>
<p><u><span lang="en-gb"><font color="#ff0000" size="4">Details Of Accident</font></span></u></p>
<table style="BORDER-COLLAPSE: collapse" borderColor="#111111" height="108" cellSpacing="0" cellPadding="0" width="651" border="0">
<tr>
<td align="right" width="278" height="24">
<p align="left"><b>Where the Accident Occurred:</b> </td>
<td align="left" width="365" height="24"><select name="accident_location">


<option value="Beech">Beech</option>

<option value="Birch Boys">Birch Boys</option>

<option value="Birch Girls">Birch Girls</option>

<option value="Bracken">Bracken</option>

<option value="Dining Room">Dining Room</option>

<option value="Education">Education</option>

<option value="Elm">Elm</option>

<option value="Firs">Firs</option>

<option value="Grounds">Grounds</option>

<option value="Home Farm">Home Farm</option>

<option value="Main Hall">Main Hall</option>

<option value="Maple">Maple</option>

<option value="Minibus">Minibus</option>

<option value="None">None</option>

<option value="Oak">Oak</option>

<option value="Off Site">Off Site</option>

<option value="Orchard">Orchard</option>

<option value="Pool Car">Pool Car</option>

<option value="Rowan">Rowan</option>

<option value="SAOS">SAOS</option>

<option value="Soft Play">Soft Play</option>

<option value="Unknown">Unknown</option>

<option value="Woodlands">Woodlands</option>
</select></td>
</tr>
<tr>
<td align="right" width="278" height="84">
<p align="left"><b>How the Accident occurred:</b> </td>
<td align="left" width="365" height="84">
<textarea name="how" rows="5" cols="44"></textarea></td>
</tr>
<tr>
<td align="right" width="278" height="24">
<p align="left"><b>Student Involved:</b> </td>
<td align="left" width="365" height="24"><select name="child_involved">

<option value="Aaron Peters">Aaron Peters</option> <option value="Adam Edwards">Adam Edwards</option> <option value="Alex Lyndon-Smith">Alex Lyndon-Smith</option> <option value="Andrew Law">Andrew Law</option> <option value="Anthony Griffiths">Anthony Griffiths</option> <option value="Benjamin Morris">Benjamin Morris</option> <option value="Callum Mckinlay">Callum Mckinlay</option> <option value="Charles Green">Charles Green</option> <option value="Chris O'Donnell">Chris O'Donnell</option> <option value="Christopher Lewis">Christopher Lewis</option> <option value="Conor Lynch">Conor Lynch</option> <option value="Corlel Marshall">Corlel Marshall</option> <option value="Curtis Lloyd">Curtis Lloyd</option> <option value="Daniel Richards">Daniel Richards</option> <option value="David Creasey">David Creasey</option> <option value="David White">David White</option> <option value="Emma Lawrence">Emma Lawrence</option> <option value="Eugene Suzuki">Eugene Suzuki</option> <option value="Frances Campbell">Frances Campbell</option> <option value="Gail jJones">Gail jJones</option> <option value="George O'Rourke">George O'Rourke</option> <option value="Hardeep Dhami">Hardeep Dhami</option> <option value="Hazheen Siwaily">Hazheen Siwaily</option> <option value="Heather Ball">Heather Ball</option> <option value="Henry Paterson">Henry Paterson</option> <option value="Hiba Zein-Elabdin">Hiba Zein-Elabdin</option> <option value="Isaac Sullivan">Isaac Sullivan</option> <option value="Jacob Stanley">Jacob Stanley</option> <option value="Jason Cordelle">Jason Cordelle</option> <option value="Joanna Booth">Joanna Booth</option> <option value="Joe Furmage">Joe Furmage</option> <option value="John McAra">John McAra</option> <option value="Jordan Snelgrove">Jordan Snelgrove</option> <option value="Jordan Snelgrove">Jordan Snelgrove</option> <option value="Joshua Harris">Joshua Harris</option> <option value="Kai Powell">Kai Powell</option> <option value="Katie Le Blond">Katie Le Blond</option> <option value="Laura Mooney">Laura Mooney</option> <option value="Liam Dutton">Liam Dutton</option> <option value="Louise Banks">Louise Banks</option> <option value="Louise Hodson">Louise Hodson</option> <option value="Mark Coggin">Mark Coggin</option> <option value="Mark Pearson">Mark Pearson</option> <option value="Marvin Wilson">Marvin Wilson</option> <option value="Matthew Hawkins">Matthew Hawkins</option> <option value="Matthew Lawford">Matthew Lawford</option> <option value="Matthew Weber">Matthew Weber</option> <option value="Matthew Whalley">Matthew Whalley</option> <option value="Michael Canham">Michael Canham</option> <option value="Michael Gingell">Michael Gingell</option> <option value="Michael Jones">Michael Jones</option> <option value="Nicolas Van Stokkam">Nicolas Van Stokkam</option> <option value="None">None</option> <option value="None">None</option> <option value="Olivia Vann">Olivia Vann</option> <option value="Owen Wells">Owen Wells</option> <option value="Paul Beadell">Paul Beadell</option> <option value="Peter O'Leary">Peter O'Leary</option> <option value="Reg Price">Reg Price</option> <option value="Sean Grice">Sean Grice</option> <option value="Simon Shabha">Simon Shabha</option> <option value="Simon White">Simon White</option> <option value="Thomas Cox">Thomas Cox</option> <option value="Thomas Litchfield">Thomas Litchfield</option> <option value="Unknown">Unknown</option> <option value="Vincent Cook">Vincent Cook</option> <option value="Zachary Lauder">Zachary Lauder</option> </select></td>
</tr>
<tr>


</table>
<table style="BORDER-COLLAPSE: collapse" borderColor="#111111" height="123" cellSpacing="0" cellPadding="0" width="651" border="0">
<tr>
<td width="306" height="20"><span lang="en-gb"><b>Taken to Hospital:</b></span></td>
<td width="337" colSpan="4" height="20">
<input type="checkbox" value="YES" name="hospital"></td>
</tr>
<tr>
<td width="306" height="20"><span lang="en-gb"><b>Taken to Doctor:</b></span></td>
<td width="337" colSpan="4" height="20">
<input type="checkbox" value="YES" name="doctor"></td>
</tr>
<tr>
<td width="306" height="20"><span lang="en-gb"><b>Next of kin informed :</b></span></td>
<td width="337" colSpan="4" height="20">
<input type="checkbox" value="YES" name="next_of_kin"></td>
</tr>
<tr>
<td width="306" height="20"><span lang="en-gb"><b>On call manager informed :</b></span></td>
<td width="337" colSpan="4" height="20">
<input type="checkbox" value="YES" name="on_call"></td>
</tr>
<tr>
<td width="306" height="20"><span lang="en-gb"><b>Ambulance called:</b></span></td>
<td width="40" height="20">
<input type="checkbox" value="YES" name="ambulance_called"></td>
<td width="112" height="20">
<p align="right"><b>Time called:</b></td>
<td width="60" height="20">
<input maxLength="8" size="5" name="time_called" value="00:00"></td>
<td width="199" height="20"><b>(hh:mm 24 hour)</b></td>
</tr>
<tr>
<td width="306" height="20">&nbsp;</td>
<td width="40" height="20">&nbsp;</td>
<td width="112" height="20">
<p align="right"><b>Time arrived:</b></td>
<td width="60" height="20">
<input maxLength="8" size="5" name="time_arrived" value="00:00"></td>
<td width="199" height="20"><b>(hh:mm 24 hour)</b></td>
</tr>
</table>







<table style="BORDER-COLLAPSE: collapse" borderColor="#111111" cellSpacing="0" cellPadding="0" width="450" border="0">
<tr>
<td width="277"><b>Cause of injury (1)</b></td>
<td width="170"><select name="cause_of_injury1">

<option value="Bite">Bite</option>

<option value="ChallengingBehaviour">ChallengingBehaviour</option>

<option value="Fall">Fall</option>

<option value="Falling Object">Falling Object</option>

<option value="Grab">Grab</option>

<option value="Hair Pull">Hair Pull</option>

<option value="Hit">Hit</option>

<option value="Hot object/surface">Hot object/surface</option>

<option value="Kick">Kick</option>

<option value="Manual handling">Manual handling</option>

<option value="Missile">Missile</option>

<option value="None">None</option>

<option value="Pinch">Pinch</option>

<option value="Pull">Pull</option>

<option value="Punch">Punch</option>

<option value="Push">Push</option>

<option value="Restraint">Restraint</option>

<option value="Scratch">Scratch</option>

<option value="Seizure">Seizure</option>

<option value="Self Harm">Self Harm</option>

<option value="Sharp Object">Sharp Object</option>

<option value="Slip">Slip</option>

<option value="Trip">Trip</option>

<option value="Trodden on">Trodden on</option>

<option value="Unknown">Unknown</option>
</select></td>
</tr>
<tr>
<td width="277"><b>Injury received (1)</b></td>
<td width="170"><select name="injury_received1">

<option value="Bite marks">Bite marks</option>

<option value="Bruise">Bruise</option>

<option value="Burn">Burn</option>

<option value="Cut">Cut</option>

<option value="Fatality">Fatality</option>

<option value="Fracture">Fracture</option>

<option value="Hair loss">Hair loss</option>

<option value="Jarred">Jarred</option>

<option value="Muscle Strain">Muscle Strain</option>

<option value="None">None</option>

<option value="Redness">Redness</option>

<option value="Scald">Scald</option>

<option value="Scratch">Scratch</option>

<option value="Soreness">Soreness</option>

<option value="Swelling">Swelling</option>

<option value="Unconscious">Unconscious</option>

<option value="Unknown at time">Unknown at time</option>

<option value="Whiplash">Whiplash</option>
</select></td>
</tr>
<tr>
<td width="277"><b>Injury to part of body (1)</b></td>
<td width="170"><select name="injury_to_body_part1">


<option value="Ankle">Ankle</option>

<option value="Arm">Arm</option>

<option value="Back">Back</option>

<option value="Breast">Breast</option>

<option value="Chest">Chest</option>

<option value="Ear">Ear</option>

<option value="Elbow">Elbow</option>

<option value="Eye">Eye</option>

<option value="Face">Face</option>

<option value="Finger">Finger</option>

<option value="Finger">Finger</option>

<option value="Foot">Foot</option>

<option value="Groin">Groin</option>

<option value="Hand">Hand</option>

<option value="Head">Head</option>

<option value="Knee">Knee</option>

<option value="Leg">Leg</option>

<option value="Mouth">Mouth</option>

<option value="Neck">Neck</option>

<option value="None">None</option>

<option value="Nose">Nose</option>

<option value="Shin">Shin</option>

<option value="Shoulder">Shoulder</option>

<option value="Stomach">Stomach</option>

<option value="Thumb">Thumb</option>

<option value="Toe">Toe</option>

<option value="Wrist">Wrist</option>
</select></td>
</tr>
<tr>
<td width="277"><b>Cause of injury (2)</b></td>
<td width="170"><select name="cause_of_injury2">

<option value="Bite">Bite</option>

<option value="ChallengingBehaviour">ChallengingBehaviour</option>

<option value="Fall">Fall</option>

<option value="Falling Object">Falling Object</option>

<option value="Grab">Grab</option>

<option value="Hair Pull">Hair Pull</option>

<option value="Hit">Hit</option>

<option value="Hot object/surface">Hot object/surface</option>

<option value="Kick">Kick</option>

<option value="Manual handling">Manual handling</option>

<option value="Missile">Missile</option>

<option value="None">None</option>

<option value="Pinch">Pinch</option>

<option value="Pull">Pull</option>

<option value="Punch">Punch</option>

<option value="Push">Push</option>

<option value="Restraint">Restraint</option>

<option value="Scratch">Scratch</option>

<option value="Seizure">Seizure</option>

<option value="Self Harm">Self Harm</option>

<option value="Sharp Object">Sharp Object</option>

<option value="Slip">Slip</option>

<option value="Trip">Trip</option>

<option value="Trodden on">Trodden on</option>

<option value="Unknown">Unknown</option>
</select></td>
</tr>
<tr>
<td width="277"><b>Injury received (2)</b></td>
<td width="170"><select name="injury_received2">

<option value="Bite marks">Bite marks</option>

<option value="Bruise">Bruise</option>

<option value="Burn">Burn</option>

<option value="Cut">Cut</option>

<option value="Fatality">Fatality</option>

<option value="Fracture">Fracture</option>

<option value="Hair loss">Hair loss</option>

<option value="Jarred">Jarred</option>

<option value="Muscle Strain">Muscle Strain</option>

<option value="None">None</option>

<option value="Redness">Redness</option>

<option value="Scald">Scald</option>

<option value="Scratch">Scratch</option>

<option value="Soreness">Soreness</option>

<option value="Swelling">Swelling</option>

<option value="Unconscious">Unconscious</option>

<option value="Unknown at time">Unknown at time</option>

<option value="Whiplash">Whiplash</option>
</select></td>
</tr>
<tr>
<td width="277"><b>Injury to part of body (2)</b></td>
<td width="170"><select name="injury_to_body_part2">


<option value="Ankle">Ankle</option>

<option value="Arm">Arm</option>

<option value="Back">Back</option>

<option value="Breast">Breast</option>

<option value="Chest">Chest</option>

<option value="Ear">Ear</option>

<option value="Elbow">Elbow</option>

<option value="Eye">Eye</option>

<option value="Face">Face</option>

<option value="Finger">Finger</option>

<option value="Finger">Finger</option>

<option value="Foot">Foot</option>

<option value="Groin">Groin</option>

<option value="Hand">Hand</option>

<option value="Head">Head</option>

<option value="Knee">Knee</option>

<option value="Leg">Leg</option>

<option value="Mouth">Mouth</option>

<option value="Neck">Neck</option>

<option value="None">None</option>

<option value="Nose">Nose</option>

<option value="Shin">Shin</option>

<option value="Shoulder">Shoulder</option>

<option value="Stomach">Stomach</option>

<option value="Thumb">Thumb</option>

<option value="Toe">Toe</option>

<option value="Wrist">Wrist</option>
</select></td>
</tr>





</table>
<table style="BORDER-COLLAPSE: collapse" borderColor="#111111" cellSpacing="0" cellPadding="0" width="654" border="0">
<tr>
<td align="right" width="278" height="25">
<p align="left"><b>Describe in detail any treatment given:</b></td>
<td align="left" width="376" height="25">
<textarea name="describe_treatment" rows="5" cols="44"></textarea></td>
</tr>
</table>
<table style="BORDER-COLLAPSE: collapse" borderColor="#111111" height="27" cellSpacing="0" cellPadding="0" width="654" border="0">
<tr>
<td width="278" height="1"><b>Name of any witnesses to incident:</b></td>
<td width="376" height="1">
<input maxLength="40" size="30" name="name_of_witness"></td>
</tr>
<tr>
<td width="278" height="1"><b>Staff on duty:</b></td>
<td width="376" height="1">
<input maxLength="40" size="30" name="staff_on_duty"></td>
</tr>
<tr>
<td width="278" height="1"><b>Any other details:</b></td>
<td width="376" height="1">
<textarea name="other_details" rows="5" cols="44"></textarea></td>
</tr>
<tr>
<td width="278" height="1"><b>Name of person completing form:</b></td>
<td width="376" height="1">
<input maxLength="40" size="30" name="name_of_form_filler"></td>
</tr>
</table>
<table style="BORDER-COLLAPSE: collapse" borderColor="#111111" height="24" cellSpacing="0" cellPadding="0" width="653" border="0">
<tr>
<td width="278" height="1"><span lang="en-gb"><b>Date:</b></span></td>
<td width="80" height="1">
<script>DateInput('date', true, 'DD-MM-YYYY')</script></td>
<td width="225" colSpan="2" height="22">
<span lang="en-gb"><b>Click on calendar to select date</b></span></td>
</tr>
</table>

<p align="center">&nbsp;</p>
<p align="center">
<input type="submit" value="Submit" name="Confirmation:Your request has been received and is being processed.">
<input type="reset" value="Reset Form" name="B2">
</p>
</form>

<hr width="80%" color="#000000"><span lang="en-gb">



<p align="center">Page created &amp; maintained by PaulC</p>
<p align="center">Page last updated 26/09/2007</p>
</span>

</body>

</html>
<!!!!!"YOUR HTML STOPS HERE"!!!!!></td> </tr> </table></td></tr></table></td> </tr></table></td></table><table border="0" cellpadding="0" cellspacing="0" width="100%" id="AutoNumber1" height="36" background="themes/PH2BLUE/images/bottomline.jpg"><td align="center" width="100%"><font class="dcode"><b> &copy; 2006 Sunfield Childrens Homes Ltd</b></font><br>Created and maintained by PaulC</font></td></table></body>
</html>[/HTML]
Oct 2 '07 #16
This stupid forum wont allow me to post the code.

It just keeps displaying a blank page. Ive tried using html code and the normal code and eve the phpcode tags and it wont work on any!!!!!
Oct 2 '07 #17
nathj
938 Expert 512MB
[quote=DirtySnipe].
[html]
<form action="modules.php" method="get" name="sommaireformlistboxinactifs"><select name="somlistboxinactifs" onchange="sommaire_envoielistbox(this.options[this.selectedIndex].value)"><option value="select">Select...<option value="modules.php?name=accident1">accident1<optio n value="modules.php?name=Amazon">Amazon<option value="modules.php?name=AvantGo">AvantGo</select></form>
</font></td></tr></table>
[/html]

Hi,
I've taken just a sample of the code you supplied, it came through on the email notification and it was there when I clicked reply. I noticed that the option tags are not being closed. Each option tag needs to be closed.

I would double check the following things:
1) Is the isDefault record set against one record in the database
2) Ensure that the PHP supplies a closing option tag for each option.

Here is a sample of the output my code (see my original post) produces including teh selected attribute:
[html]
<!-- code snippet -->
<option value="9">United Arab Emirates</option><option selected="selected" value="78">United Kingdom</option><option value="230">United States</option>
[/html]
Cheers
nathj

Ps I think the code restriction is due to the length of one single line? It's a guess but hey that's ok, and I got the code anyway.
Oct 2 '07 #18
Here is what is being displayed.


[HTML]<select name='person_involved'><option value=Contractor selected='selected' >Contractor</option><option value=None selected='selected' >None</option><option value=Parent selected='selected' >Parent</option><option value=Sibling selected='selected' >Sibling</option><option value=Staff selected='selected' >Staff</option><option value=Staff (agency) selected='selected' >Staff (agency)</option><option value=Staff (Bank) selected='selected' >Staff (Bank)</option><option value=Student selected='selected' >Student</option><option value=Visitor selected='selected' >Visitor</option></select>
[/HTML]
Oct 2 '07 #19
nathj
938 Expert 512MB
Here is what is being displayed.


[HTML]<select name='person_involved'><option value=Contractor selected='selected' >Contractor</option><option value=None selected='selected' >None</option><option value=Parent selected='selected' >Parent</option><option value=Sibling selected='selected' >Sibling</option><option value=Staff selected='selected' >Staff</option><option value=Staff (agency) selected='selected' >Staff (agency)</option><option value=Staff (Bank) selected='selected' >Staff (Bank)</option><option value=Student selected='selected' >Student</option><option value=Visitor selected='selected' >Visitor</option></select>
[/HTML]
Hi,

This code sample makes things a bit clearer. All your options are set as selected. I would check the database to ensure that only one item in the table has isDefault=1. Assuming the code below is what is in place on the server side of things then I can only think of a data issue as being the cause of this problem

Cheers
nathj
Oct 2 '07 #20
Here is a export of the mysql table so you can see for yourself I have only set one option to 1.



Expand|Select|Wrap|Line Numbers
  1. CREATE TABLE `hesk_involved` (
  2.   `id` smallint(5) unsigned NOT NULL auto_increment,
  3.   `name` varchar(20) collate latin1_general_ci NOT NULL default '',
  4.   `isDefault` tinyint(4) NOT NULL default '0',
  5.   PRIMARY KEY  (`id`)
  6. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=33 ;
  7.  
  8. -- 
  9. -- Dumping data for table `hesk_involved`
  10. -- 
  11.  
  12. INSERT INTO `hesk_involved` VALUES (1, 'None', 1);
  13. INSERT INTO `hesk_involved` VALUES (25, 'Staff', 0);
  14. INSERT INTO `hesk_involved` VALUES (26, 'Student', 0);
  15. INSERT INTO `hesk_involved` VALUES (27, 'Staff (agency)', 0);
  16. INSERT INTO `hesk_involved` VALUES (28, 'Staff (Bank)', 0);
  17. INSERT INTO `hesk_involved` VALUES (29, 'Visitor', 0);
  18. INSERT INTO `hesk_involved` VALUES (30, 'Parent', 0);
  19. INSERT INTO `hesk_involved` VALUES (31, 'Sibling', 0);
  20. INSERT INTO `hesk_involved` VALUES (32, 'Contractor', 0);
Oct 2 '07 #21
nathj
938 Expert 512MB
Hi,

Thanks for sending the data sump across, that was really helpful. I amust admit I am now baffled by this.

I'm trying to think of the best way to go forward on this and get this working for you.
[php]
<?php

$sql = "SELECT * FROM `hesk_involved` ORDER BY `name` ASC";
$result = hesk_dbQuery($sql);

while ($row=hesk_dbFetchAssoc($result))
{
echo $row[name] . " " . $row[isDefault] . "<br />";
}
?>
[/php]
Try this code to see what the php page is pulling out of the database.

Cheers
nathj
Oct 2 '07 #22
here you go.

[HTML]<td width="286" height="22"><b>Person Involved:</b></td>
<td align="left" width="365" height="24">

Contractor 0<br />None 1<br />Parent 0<br />Sibling 0<br />Staff 0<br />Staff (agency) 0<br />Staff (Bank) 0<br />Student 0<br />Visitor 0<br />

</td>
</tr>[/HTML]
Oct 2 '07 #23
nathj
938 Expert 512MB
Hi,

To summarise then we have ruled out data and we have ruled out data hanlding. This means the problem must be in the processing side of things.

Here's a new code sample, it looks pretty much like the other ones but there are som subtle differences that may help.
[php]
<?php

$sql = "SELECT * FROM `hesk_involved` ORDER BY `name` ASC";
$result = hesk_dbQuery($sql);

echo "<select name='person_involved'>";
while ($row=hesk_dbFetchAssoc($result))
{
echo "<option value=" .$row[name] . " "; // final space is vital
if($row[isDefault]);
{
echo "selected='selected' " ;
}
echo ">" . $row[name] . "</option>";

}

echo "</select>";
?>
[/php]
Try that, the IF condition has been altered slightly. I think the trouble is that something was forcing the code to hit the lines inside the IF every time.

Cheers
nathj
Oct 2 '07 #24
[HTML]<td width="286" height="22"><b>Person Involved:</b></td>
<td align="left" width="365" height="24">

<select name='person_involved'><option value=Contractor selected='selected' >Contractor</option><option value=None selected='selected' >None</option><option value=Parent selected='selected' >Parent</option><option value=Sibling selected='selected' >Sibling</option><option value=Staff selected='selected' >Staff</option><option value=Staff (agency) selected='selected' >Staff (agency)</option><option value=Staff (Bank) selected='selected' >Staff (Bank)</option><option value=Student selected='selected' >Student</option><option value=Visitor selected='selected' >Visitor</option></select>

</td>[/HTML]
Oct 2 '07 #25
nathj
938 Expert 512MB
[HTML]<td width="286" height="22"><b>Person Involved:</b></td>
<td align="left" width="365" height="24">

<select name='person_involved'><option value=Contractor selected='selected' >Contractor</option><option value=None selected='selected' >None</option><option value=Parent selected='selected' >Parent</option><option value=Sibling selected='selected' >Sibling</option><option value=Staff selected='selected' >Staff</option><option value=Staff (agency) selected='selected' >Staff (agency)</option><option value=Staff (Bank) selected='selected' >Staff (Bank)</option><option value=Student selected='selected' >Student</option><option value=Visitor selected='selected' >Visitor</option></select>

</td>[/HTML]
Hi DirtySnipe,

I'm totally stumped. I cannot see any reason for this code not to work for you. What appears to be happening is that the IF is not affecting the code flow. I can't see why based on the data you have shown.

At present I'm out of answers but I'll keep thinking over it and if anything comes to me I'll post back.

One 'cheats' solution would be to order by isDefault desc (I think) then do nothing with selected and the default item should be the first in the list. The downside is that the list is then not alphabetical, perhaps a combination of order by clauses would do it for you?

Cheers
Nathan
Oct 2 '07 #26
Is there anyone else here that can solve this problem I have??
Oct 2 '07 #27
nathj
938 Expert 512MB
Hi DirtySnipe,

I was thinking about this problem today, as I said I would and i thought about changing the if. It currently stands as:
[php]
if($row[isDefault]);
{
echo &quot;selected='selected' &quot; ;
}
[/php]
Try changing it to:
[php]
if($row[isDefault]==1);
{
echo &quot;selected='selected' &quot; ;
}
else
{
echo &quot; &quot; ; // the space is important
}
[/php]

I've had to do something just like this today. It's working a treat now with this sort of structure.

Cheers
nathj
Oct 3 '07 #28
Now i don't even get a page display.


[PHP]<?php

$sql = "SELECT * FROM `hesk_involved` ORDER BY `name` ASC";
$result = hesk_dbQuery($sql);

echo "<select name='person_involved'>";
while ($row=hesk_dbFetchAssoc($result))
{
echo "<option value=" .$row[name] . " "; // final space is vital
if($row[isDefault]==1);
{
echo "selected='selected' " ;
}
else
{
echo " " ; // the space is important
}
echo "</select>";



?>[/PHP]
Oct 5 '07 #29
I have created a php form with dynamic drop down boxes in it which pull the options from a database. The boxes work fine and the data gets submitted fine but im having a problem getting the box to default to a record of my choice from the database. (record 1 = None).
Here is the code to what i have done.
Expand|Select|Wrap|Line Numbers
  1. <input maxLength="40" size="30" name="name"></td>
  2.     </tr>
  3.     <tr>
  4.       <td width="286" height="22"><b>Person Involved:</b></td>
  5.       <td align="left" width="365" height="24"><select name="person_involved">
  6.  
  7.         <?php
  8.  
Expand|Select|Wrap|Line Numbers
  1. hesk_dbConnect();
  2. $sql = "SELECT * FROM `hesk_involved` ORDER BY `name` ASC";
  3. $result = hesk_dbQuery($sql);
  4. while ($row=hesk_dbFetchAssoc($result))
  5. {
  6.     echo "
  7.     <option value=\"$row[name]\">$row[name]</option>
  8.     ";
  9. }
  10.  
Expand|Select|Wrap|Line Numbers
  1. ?>
  2.       </select></td>
  3.     </tr>
  4.  
Hope you guys can help me out as im pulling my hair out now.
Try this:
[PHP]<?
while ($row=hesk_dbFetchAssoc($result))
{
$sel = $row['isDefault'] == true ? "selected='selected'" : "";
?>
<option <?=$sel?> value="<?=$row['name']?>"><?=$row['name']?></option>
<?
}
?>[/PHP]
Oct 5 '07 #30
Ok looks like were moving forward now on this but there is still a problem.

It is not sending the selected item from dropdown. It is looking for the select name of involved.

Here is the code so far, I hope you can help.

[PHP]<tr>
<td width="286" height="22"><b>Person Involved:</b></td>
<td align="left" width="365" height="24"><select name="involved">

<?
hesk_dbConnect();
$sql = "SELECT * FROM `hesk_involved` ORDER BY `name` ASC";
$result = hesk_dbQuery($sql);
while ($row=hesk_dbFetchAssoc($result))
{
$sel = $row['isDefault'] == true ? "selected='selected'" : "";
?>
<option <?=$sel?> value="<?=$row['name']?>"><?=$row['name']?></option>
<?
}
?>


</td>
</tr>[/PHP]
Oct 8 '07 #31
hahaha lol

Duuuu

i got the select name wrong at the start.

Sorry about that.

Thanks alot this works great.
Oct 8 '07 #32

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: xxbmichae1 | last post by:
I am writing a function that will create different type of input ranges, example one function that will create date range inputs with drop down calendars, another will be for currency ranges,...
1
by: ayende | last post by:
Okay, I'm pretty sure that I'm doing everything right here, but something is very wrong in the result. I've a page that has a drop down list (with auto-post-back = true) and a place holder. ...
1
by: daveyand | last post by:
Hey guys, I am currently stuck, i am trying to create a function that will create a fresh new drop down option box dynamically. What happens is the user can double click an element on the...
6
by: mcgrew.michael | last post by:
I hope this is the right group. I am very new to ASP so this is probably a stupid question. I have some vbscript that query's AD and populates a recordset. I know the recorset contains the...
2
by: Jim Gregg | last post by:
Hello all, I am faced with some logic that I am unsure how to handle. Imagine that I am running a WMI query and I am outputting the data into a dynamically created ASP table control. Here is my...
2
by: vinceboy | last post by:
Hi anybody. I am newbie here and would like to know that how can I validate both drop down menu and radio button from a dynamic display form.Something went wrong with my script.The radio button is...
1
by: bytesFTW99 | last post by:
I have been struggling with this for some time can anyone help out? just trying to have 3 dropdown boxes that fill depending on what is selected, then in some cases click a button and have the second...
3
by: happyman992 | last post by:
Hi, I have 2 questions. First, I am building a form with multiple drop down boxes. The options of the second drop down box will depend on what the user chooses on the first, options of the third...
4
by: audreyality | last post by:
I am new to javascript and appreciate any guidance on this issue, so thank you in advance for your advice! Situation: I am working with a form that will send information to a database. I need the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.