By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,260 Members | 1,677 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,260 IT Pros & Developers. It's quick & easy.

HELP - please with populating form text box.

P: n/a
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
Aug 3 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Rik
On Fri, 03 Aug 2007 18:39:51 +0200, Richard <sa***@justmedals.comwrote:
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
Aug 3 '07 #2

P: n/a

"Rik" <lu************@hotmail.comwrote in message
news:op.twhsuyj1qnv3q9@metallium...
On Fri, 03 Aug 2007 18:39:51 +0200, Richard <sa***@justmedals.comwrote:
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
Aug 3 '07 #3

P: n/a
Rik
On Fri, 03 Aug 2007 18:55:44 +0200, Richard <sa***@justmedals.comwrote:
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
Aug 3 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.