|
Posted by Rik on 08/03/07 17:07
On Fri, 03 Aug 2007 18:55:44 +0200, Richard <sales@justmedals.com> 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
[Back to original message]
|