Hi
I have some php code that creates multiple text fields, populates them with contents from a database then allows the user to amend (if required) and update the database entries.
This works fine in IE however in firefox when the user attempts to select any other field except the first one the cursor jumps to the first text field and, as you can imagine, this is a bit if a pain.
Any insights, info or inspirations would be much appreciated.
Thanks in anticipation and find a copy of the code below.
PHP Code:<? session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>RBK Digital - Controlpanel</title>
<link href="rsp.css" rel="stylesheet" type="text/css" />
<link rel="Shortcut Icon" href="favicon.ico"/>
<style type="text/css">
.cplinks {
padding-top: 20px;
text-align: center;
}
#spacer {
background-color:#999999;
height: 2px;
width:auto;
}
</style>
</head>
<body id="controlpanel">
<!-- copyright www.RBKDigital.co.uk - created by Mark Hewitt - created February 2008 -->
<?php
if ($_SESSION['adminlgdn'] == "YES"){
require 'header.php';
require 'header2.php';
require 'navigation.php'; ?>
<div class="contentBox">
<p><strong>Control Panel - <a href="logout.php">Log Out</a> - <a href="controlpanel.php">Home</a></strong></p>
<?php
require 'db.php';
$query = "select * from images order by gallery";
$result = mysql_query($query) or die('Error: '.@mysql_error());
while ($row = @mysql_fetch_array($result)) {
echo $row['gallery']." Gallery"."<br/><br/>";
?>
<img src="http://www.rbkdigital.co.uk/images/<?php echo $row['imagename']; ?>" alt="" width="75" /> <a href = 'deleteimage.php?id=<?php echo $row['id'];?>&name=<?php echo $row['imagename']; ?>'>Delete Image </a><br/>
<br/>
<form action="edittitles.php" method="post" >
<label for="edittitle"> Current Title:
<input id="edittitle" type="text" name="title" value="<?php echo $row['title']; ?>">
</label>
<input type="hidden" name="id" value="<?php echo $row['id']; ?>" >
<input type="submit" value="Update Title" >
</form>
<br/>
<div id="spacer"></div>
<br/>
<?php
}
?>
</div>
<?php include 'footer.php'; }
else
{include 'adminaccesscontrol.php';}?>
</body>
</html>





Bookmarks