S
SteveYoungTbird
I am starting to experiment with AJAX and have hit a problem which I am
sure must be obvious to an experienced programmer but I cannot seem to
solve it. I have successfully managed to submit a form via Javascript
which is read by a PHP script which then puts the data into an SQL
database. The script is here:
http://steveyoung.myftp.org/secureArea/http_putgettest.html - just
input new names and click the "save" button.
But when I write the data to the form via Javascript I get an MySQL
warning "Duplicate entry '' for key 1" which means that the form is
submitted empty. Also I echo the first item in the form to prove that it
is empty.
http://steveyoung.myftp.org/secureArea/indexMW_Distance20v6.html
http://steveyoung.myftp.org/secureArea/test.js
I would be very grateful for any help with this.
Regards, Steve.
sure must be obvious to an experienced programmer but I cannot seem to
solve it. I have successfully managed to submit a form via Javascript
which is read by a PHP script which then puts the data into an SQL
database. The script is here:
http://steveyoung.myftp.org/secureArea/http_putgettest.html - just
input new names and click the "save" button.
But when I write the data to the form via Javascript I get an MySQL
warning "Duplicate entry '' for key 1" which means that the form is
submitted empty. Also I echo the first item in the form to prove that it
is empty.
http://steveyoung.myftp.org/secureArea/indexMW_Distance20v6.html
http://steveyoung.myftp.org/secureArea/test.js
I would be very grateful for any help with this.
Regards, Steve.