Odbiór danych PHP w AJAX |
Odbiór danych PHP w AJAX |
17.01.2018, 10:26:03
Post
#1
|
|
Grupa: Zarejestrowani Postów: 100 Pomógł: 0 Dołączył: 7.02.2014 Ostrzeżenie: (0%) |
Witajcie
znalazłem kod:
Ogólnie działa. Ale chcę uzależnić dalsze działanie AJAXA od tego czy PHP zwróci wartość "jest" lub "niema" pomoże ktoś? |
|
|
17.01.2018, 10:35:32
Post
#2
|
|
Grupa: Zarejestrowani Postów: 6 373 Pomógł: 1116 Dołączył: 30.08.2006 Ostrzeżenie: (0%) |
-------------------- |
|
|
17.01.2018, 16:45:36
Post
#3
|
|
Grupa: Zarejestrowani Postów: 100 Pomógł: 0 Dołączył: 7.02.2014 Ostrzeżenie: (0%) |
Mam kod:
a plik kasuj.php wyglada tak:
kasuje z bazy lecz nie wyświetla komunikatu ... już nie wiem co robić |
|
|
17.01.2018, 16:54:12
Post
#4
|
|
Grupa: Zarejestrowani Postów: 6 373 Pomógł: 1116 Dołączył: 30.08.2006 Ostrzeżenie: (0%) |
Przede wszystkim to https://prophp.pl/advice/show/3/korzystam_z...ed._dlaczego%3F
Zrób to porządnie jak było pokazane. Pewnie jakiś notice leci. Sprawdź w narzędziach deweloperskich jak było opisane. -------------------- |
|
|
17.01.2018, 17:06:50
Post
#5
|
|
Grupa: Zarejestrowani Postów: 100 Pomógł: 0 Dołączył: 7.02.2014 Ostrzeżenie: (0%) |
Przekopiowałem wszystko z tej strony - uzupełniłem o swoją baze danych i nadal nie działą
|
|
|
17.01.2018, 17:14:40
Post
#6
|
|
Grupa: Zarejestrowani Postów: 6 373 Pomógł: 1116 Dołączył: 30.08.2006 Ostrzeżenie: (0%) |
Co mówi konsola przeglądarki, co masz a w zakładce sieć. Nie działa to nie odpowiedź.
-------------------- |
|
|
18.01.2018, 09:54:31
Post
#7
|
|
Grupa: Zarejestrowani Postów: 100 Pomógł: 0 Dołączył: 7.02.2014 Ostrzeżenie: (0%) |
Pawie działa.
W sensie jak wyślę formularz to komunikat "bad" lub "ok" wyświetli się na stronie przez ułamek sekundy i znika ...
|
|
|
18.01.2018, 09:57:16
Post
#8
|
|
Grupa: Moderatorzy Postów: 36 519 Pomógł: 6308 Dołączył: 27.12.2004 |
Bo podpiales AJAX do guzika ktory tez normalnie sle forma to cie strona przeladowuje...
Daj w onclick return false; i formularz ci sie nie wysle -------------------- "Myśl, myśl, myśl..." - Kubuś Puchatek || "Manual, manual, manual..." - Kubuś Programista "Szukaj, szukaj, szukaj..." - Kubuś Odkrywca || "Debuguj, debuguj, debuguj..." - Kubuś Developer |
|
|
18.01.2018, 10:03:35
Post
#9
|
|
Grupa: Zarejestrowani Postów: 100 Pomógł: 0 Dołączył: 7.02.2014 Ostrzeżenie: (0%) |
Dziękuję!
TEMAT DO ZAMKNIĘCIA |
|
|
Wersja Lo-Fi | Aktualny czas: 27.09.2024 - 04:02 |