-
<html>
-
-
<head>
-
</head>
-
<script language=javascript>
-
</script>
-
<body>
-
<form name="UserDetails" method="post" action="">
-
-
<table align=center border=0 cellpadding=2 cellspacing=2>
-
<tr>
-
<td><font face="Garamond" size=3>
-
<b>UserDetails:</b>
-
</font></td>
-
<td> <font face="Garamond" size=12><b>
-
<input id=Add type=button value=Add name=Add></td>
-
<td> <font face="Garamond" size=12><b>
-
<input id=Edit type=button value=Edit name=Edit></td>
-
-
<td> <font face="Garamond" size=12><b>
-
<input id="submit" type="submit" value="Submit" name="submit">
-
</tr></table>
-
-
$dbconnect = pg_connect("host=10.10.2.12 dbname=punch_system user=postgres password=postgres")
-
or die ("Could not Connect to Server");
-
-
if($_REQUEST['submit'] == "Submit")
-
{
-
-
-
$query="select pmt19_emp_code,pmt19_user_role,pmt19_activatedon,pmt06_emp_code,pmt06_emp_name,
-
pmt06_desg_code,pmt12_desg_code,pmt12_desg_desc from pmt_web_users,pmt_employee,
-
pmt_designation where pmt19_emp_code=pmt06_emp_code and pmt06_desg_code=pmt12_desg_code";
-
-
-
$rs = pg_query($query) or die ("Could not Open Records") . pg_last_error();
-
-
echo "<table border=2 align=center>";
-
echo "<tr>";
-
echo "<th>S.No</th>" ;
-
echo "<th>Code</th>";
-
echo "<th>Name</th>";
-
echo "<th>Designation</th>";
-
echo "<th>Role</th>";
-
echo "<th>ActivationOn</th>";
-
echo "</tr>";
-
-
-
$count=1;
-
while($row=pg_fetch_row($rs))
-
{
-
echo"<tr>";
-
echo "<td input type=radio name=radio1 id=radio1>";echo $count; echo" </td>";
-
echo "<td>"; echo $row[0]; echo"</td>";
-
echo "<td align=center>"; echo $row[4]; echo "</td>";
-
echo "<td>"; echo $row[7]; echo "</td>";
-
echo "<td align=center>"; echo $row[1]; echo "</td>";
-
echo "<td>"; echo $row[2]; echo "</td>";
-
echo"</tr>";
-
$count++;
-
}
-
pg_free_result($rs);
-
pg_close($dbconnect);
-
}
-
-
?>
-
</table>
-
</form>
-
</body>
-
</html>
-
pls,any one help
how to put radio buttons to the serial numbers in the above program
1 1486
where do you want to put radio buttons?
just use input type="radio", the value, and name it something. Usually radio buttons have the same 'name' then the user can only choose one. I assume this is what you want.
Dan
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Oscar Monteiro |
last post by:
I Have to sets of Radio buttons like so:
<input type="radio" name=p1 value=1>
<input type="radio" name=p1 value=2>
<input type="radio" name=p1 value=3>
<br>
<input type="radio" name=p2 value=1>...
|
by: Craig Keightley |
last post by:
I have a page that has n number of radio groups (yes/No)
how can i prevent the form being submitted if more than one radio group is
not selected?
By default all radio groups are unchecked
...
|
by: James P. |
last post by:
Help,
I need to display radio buttons on a form. The data is from SQL
table: each row in each table is displayed as a radio button. I have
multiple SQL tables so I understand I need to put...
|
by: kenny8787 |
last post by:
Hi, can anyone help here?
I have the following code generated from a database, I want to have javascript calculate the
costs of the selected items using radio buttons, subtotal the costs and...
|
by: dpazza |
last post by:
Hi,
I'm creating a quiz on using a form in VB 2005 express.
I have four sets of questions and answers (labels and radio buttons)
and I change between which set of questions is currently shown on...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |