Date: 08/31/01
- Next message: Philip Murray: "Re: [PHP] Serious Fopen Problems - not newbie :)"
- Previous message: Wendi Ann: "[PHP] Re: Labor Day Weekend"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, Renze,
I have one doubt in HTML. I should not ask this in this group. I don't have
any alternative. Please consider this.
How to increase the length of the select box. It is comming width as very
less.
I would like to increase that width.
see the following code..
<BODY background="imacbg1.gif" ONLOAD="document.issue.inv_name.focus()">
<form name="issue">
<div align="center">
<center>
<h2>ISSUE</h2>
<input type="hidden" name="issued_by" value="<?php echo $emp_name; ?>"/>
<h2>Issuing by <?php echo $emp_name; ?> </h2>
<table border="0" width="100%">
<tr>
<th width="50%" align="right">
<p align="right"><b><font size="2" face="Arial">Equipment
Name </font></b></th>
<td width="5%"></td>
<td width="50%" align="left">
<select name="inv_name">
<script language="php">
$query = "SELECT distinct inv_name FROM inventory ORDER BY
inv_name ";
$result = mysql_query($query);
if(mysql_num_rows($result))
{
// we have at least one equipment, so show all equipments as
options in select form
print("<option value=\"\">select</option>");
while($row = mysql_fetch_row($result))
{
print("<option value=\"$row[0]\">$row[0]</option>");
}
}
else
{
print("<option value=\"\">No equipment added yet</option>");
}
</script>
</select>
</td>
</tr>
<tr>
<th width="50%" align="right">
<p align="right"><b><font size="2" face="Arial">Equipment
Type </font></b></th>
<td width="5%"></td>
<td width="50%">
<select name="inv_type" >
<script language="php">
$query = "SELECT distinct inv_type FROM inventory ORDER BY
inv_type";
$result = mysql_query($query);
if(mysql_num_rows($result))
{
// we have at least one equipment, so show all equipments as
options in select form
print("<option value=\"\">select</option>");
while($row = mysql_fetch_row($result))
{
print("<option value=\"$row[0]\">$row[0]</option>");
}
}
else
{
print("<option value=\"\">No equipment added yet</option>");
}
file://closing the mysql connection
mysql_close($connection);
// Get current time and date
$today = date("Y:m:d H:i:s");
</script>
</select>
</td>
</tr>
<tr><td width="50%" align="right"><b><font size="2" face="Arial">Equipment
Tag </font></b></td><td width="5%"></td><td width="40%" ><input
type="text" name="inv_tag" size="20" value=""></td></tr>
<tr><td width="50%" align="right"><b><font size="2" face="Arial">Issued
To </font></b></td><td width="5%"></td><td width="40%"> <input
type="text" name="issued_to" size="20" value=""></td></tr>
<tr><td width="50%" align="right"><b><font size="2" face="Arial">Issue
Date </font></b></td><td width="5%"></td><td width="40%"> <input
type="text" name="issue_date" size="20" value="<?php echo
$today;?>"></td></tr>
<tr>
<td width="50%" align="right">
<p align="left">
</td>
<td width="5%">
</td>
<td width="50%">
<p align="left"> <input type="button" Value="SUBMIT"
OnClick="check();"></td>
</tr>
</table>
</center>
</div>
</form>
</BODY>
Thanks and regards
-Balaji
- text/plain attachment: Wipro_Disclaimer.txt
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Philip Murray: "Re: [PHP] Serious Fopen Problems - not newbie :)"
- Previous message: Wendi Ann: "[PHP] Re: Labor Day Weekend"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

