RE: [PHP-DB] Forms question..

2002-10-20 Thread John W. Holmes
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

Re: [PHP-DB] Forms question..

2002-10-20 Thread .: B i g D o g :.
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();

Re: [PHP-DB] Forms Question

2001-09-06 Thread Paul Gardiner
- 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

Re: [PHP-DB] Forms Question

2001-09-05 Thread Bas Jobsen
Hello, Here is the code I have: sure, your query is something like: select ..., store, jobdesc .. FROM .. why using: $store=$row[store]; $jobdesc=$row[jobdesc]; echodhdhdh.$row[store].blabla would also work i should use: while (LIST($store,$jobdesc)=mysql_fetch_row($result))

Re: [PHP-DB] Forms Question

2001-09-05 Thread Steve Cayford
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\

Re: [PHP-DB] Forms Question

2001-09-05 Thread Michael Garvin
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