Hi all...
When I have an input form I must click on the first input field. Is there
anyway to have it active when the form loads?
#2 When I tab down to the next input field, is there anyway to have it
highlight what is in the field (ie the default data) so that it will
overwrite it?
#3 How
When I have an input form I must click on the first input field. Is
there
anyway to have it active when the form loads?
Javascript, not PHP. Something like document.form.element.setfocus(), I
think.
#2 When I tab down to the next input field, is there anyway to have it
highlight what is in
1. document.formname.elementname.focus();
Example: if my form has a name of testform and the first element is
fname...
then in the body tag i would do this...
body onload=document.testform.fname.focus();
2. Yeah, you need to use the select() method...
so document.testform.element.select();
-
From: Steve Cayford [EMAIL PROTECTED]
To: Jeff Grossman [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, September 05, 2001 11:36 PM
Subject: Re: [PHP-DB] Forms Question
On Wednesday, September 5, 2001, at 04:50 PM, Jeff Grossman wrote:
Hello,
Here is the code I have
Hello,
Here is the code I have:
while ($row=mysql_fetch_array($result)) {
$store=$row[store];
$jobdesc=$row[jobdesc];
echo FORM METHOD=post ACTION=update.php;
echo PStore:
Select NAME=\$store\
option VALUE=\Signal Hill\Signal Hill
option VALUE=\Reseda\Reseda
)) {
.
- Original Message -
From: Jeff Grossman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 05, 2001 11:50 PM
Subject: [PHP-DB] Forms Question
Hello,
Here is the code I have:
while ($row=mysql_fetch_array($result)) {
$store=$row[store];
$jobdesc=$row
On Wednesday, September 5, 2001, at 04:50 PM, Jeff Grossman wrote:
Hello,
Here is the code I have:
while ($row=mysql_fetch_array($result)) {
$store=$row[store];
$jobdesc=$row[jobdesc];
echo FORM METHOD=post ACTION=update.php;
echo PStore:
Select NAME=\$store\
The solution is easier than you think. You'll need to insert an if
statement in your option html tag that says
echo option VALUE=\Signal Hill\Signal Hill\n;
should become:
echo option VALUE=\Signal Hill\;
if ($store == 'Signal Hill') { print selected; }
echo Signal Hill/option\n;
Jeff