HELP - please with populating form text box.
HELP - please with populating form text box.
am 03.08.2007 18:39:51 von Richard
Hi all.
I have a PHP form for entering data on-line into a mySQL
table..
Because of the intended search facility, I require one field in the form
to be completed with exact and precise item names and spelling.
In testing, I had achieved this with look-up tables.
Ideally I would like the selected item from one of five drop-down lists
to autopopulate the form text field when selected.
Alternatively at least the option of copy and paste.
Copy and paste - for some reason will not work.
Autofill worked fine on a test form with no database connection
and in standard HTML and javascript, however, once the PHP
is added to the page neither method works.
Could anyone please point me in the direction of how to get the
autofill to work??
Here is one of the pages in question:
(This is dummied and should not allow realtime data-entry - hopefully)
http://www.medalseek.com/TEST/listingsaddR.php
Re: HELP - please with populating form text box.
am 03.08.2007 18:46:00 von luiheidsgoeroe
On Fri, 03 Aug 2007 18:39:51 +0200, Richard wrote:
> Hi all.
> I have a PHP form for entering data on-line into a mySQL
> table..
> Because of the intended search facility, I require one field in the form
> to be completed with exact and precise item names and spelling.
> In testing, I had achieved this with look-up tables.
> Ideally I would like the selected item from one of five drop-down lists
> to autopopulate the form text field when selected.
> Alternatively at least the option of copy and paste.
> Copy and paste - for some reason will not work.
> Autofill worked fine on a test form with no database connection
> and in standard HTML and javascript, however, once the PHP
> is added to the page neither method works.
This shouldn't matter, if:
1. It works with plain HTML/javascript (if it doesn't, consult
comp.lang.javascript)
2. It doesn't work with PHP
It means you have an error in outputting the desired format in PHP,
possibly javascript/html syntax errors. PHP itself has very little to do
with it, as the browser could care less how it gets his info.
So: compare the plain html/javascript output with the one provided with
PHP, and find the difference in output formatting.
--
Rik Wasmus
Re: HELP - please with populating form text box.
am 03.08.2007 18:55:44 von Richard
"Rik" wrote in message
news:op.twhsuyj1qnv3q9@metallium...
> On Fri, 03 Aug 2007 18:39:51 +0200, Richard wrote:
>
> > Hi all.
> > I have a PHP form for entering data on-line into a mySQL
> > table..
> > Because of the intended search facility, I require one field in the form
> > to be completed with exact and precise item names and spelling.
> > In testing, I had achieved this with look-up tables.
> > Ideally I would like the selected item from one of five drop-down lists
> > to autopopulate the form text field when selected.
> > Alternatively at least the option of copy and paste.
> > Copy and paste - for some reason will not work.
> > Autofill worked fine on a test form with no database connection
> > and in standard HTML and javascript, however, once the PHP
> > is added to the page neither method works.
>
>
> This shouldn't matter, if:
> 1. It works with plain HTML/javascript (if it doesn't, consult
> comp.lang.javascript)
> 2. It doesn't work with PHP
>
> It means you have an error in outputting the desired format in PHP,
> possibly javascript/html syntax errors. PHP itself has very little to do
> with it, as the browser could care less how it gets his info.
>
> So: compare the plain html/javascript output with the one provided with
> PHP, and find the difference in output formatting.
> --
> Rik Wasmus
Hi Rik
Thanks for the pointers. Will re-examine the javascript.
However, this does not address the problem of why cust and
paste does not work.
Any ideas on that??
Cheers
Re: HELP - please with populating form text box.
am 03.08.2007 19:07:11 von luiheidsgoeroe
On Fri, 03 Aug 2007 18:55:44 +0200, Richard wrote:
>> > I have a PHP form for entering data on-line into a mySQL
>> > table..
>> > Because of the intended search facility, I require one field in the
>> form
>> > to be completed with exact and precise item names and spelling.
>> > In testing, I had achieved this with look-up tables.
>> > Ideally I would like the selected item from one of five drop-down
>> lists
>> > to autopopulate the form text field when selected.
>> > Alternatively at least the option of copy and paste.
>> > Copy and paste - for some reason will not work.
>> > Autofill worked fine on a test form with no database connection
>> > and in standard HTML and javascript, however, once the PHP
>> > is added to the page neither method works.
>>
>>
>> This shouldn't matter, if:
>> 1. It works with plain HTML/javascript (if it doesn't, consult
>> comp.lang.javascript)
>> 2. It doesn't work with PHP
>>
>> It means you have an error in outputting the desired format in PHP,
>> possibly javascript/html syntax errors. PHP itself has very little to do
>> with it, as the browser could care less how it gets his info.
>>
>> So: compare the plain html/javascript output with the one provided with
>> PHP, and find the difference in output formatting.
> Thanks for the pointers. Will re-examine the javascript.
> However, this does not address the problem of why cust and
> paste does not work.
> Any ideas on that??
Cut & paste are not functions known to PHP. This is either or UA or
javascript problem. I'm not sure how you've implemented this and what you
expect, so ask in an appropriate ng, defining more clearly what you expect
exactly.
--
Rik Wasmus