Hi!
First of all i beg your pardon for my bad english. It isn't my native language. Second, i don't know really what the problem is. I assume it's a PHP problem but it could be something else. So this could be in the wrong forum.
Ok, i try to explain my problem now *sigh*
The user comes through my login pages to startseite.php. There is a menue where he can choose Kunden -> neu. This opens a new site k_neu.php into an other div (ajax container) some lower to the menu which still remains visible. There he can input some data, k_neu.js checks the data and then the php should send the data to the mysql db but nothing happens. I tried the sql-statement in the mysql console and it works. So, its not a sql problem. I'm a beginner in web-coding so i don't know what to do. Firebug tells me only warnings (which are unfortunally pretty normal in web-coding as i learned so far...) and no real errors. The apache2 log file tells me something about php which i can't understand.
I post my code on pastebin because .php is not a valid extension.
startseite.php : http://pastebin.com/mGv4wHsB
The css to see the page properly:
style.css : http://pastebin.com/dB98FBhq
k_neu.php : http://pastebin.com/9XDMPWx1
k_neu.js : http://pastebin.com/6kGAV6G5
From apache2:
Default apache2 error log : http://pastebin.com/WVqK9nBn
apache2 error log of the vhost which i use : http://pastebin.com/4yhLCREe
And there is the ajax code which i use:
http://www.dynamicdrive.com/dynamici...jaxcontent.htm
I hope this is enough to make my problem clear and that here is someone with a purpose to fix it.
Regards,
Joe
EDIT: Ignore the screenshot. I didn't know that ksnapshot makes such useless small screenshots despite fullscreen was selected and i don't know to remove the file in the upload manager.
anyway, firebug has this 2 warnings:
TypeError: function ajaxpage does not always return a value
function ajaxpage(url, containerid){
startseite.php (line 46)
and
ReferenceError: assignment to undeclared variable i
for (i=0; i<arguments.length; i++){
startseite.php (line 80)
This is how it looks like while browsing through the menu:
http://img821.imageshack.us/img821/3...hirmfoto3h.png
http://img696.imageshack.us/img696/4...hirmfoto4s.png
And this after i hit 'speichern' to send the data to the mysql db.
http://img826.imageshack.us/img826/9962/afterc.png
No, error at all. Just a ajax warning and no data at the tblKunde table.
Bookmarks