Похожие чаты

Hola is there anyway to submit button click using php

without form!?????

15 ответов

9 просмотров

so... make a request?

Generation Z-Aloyce Daniel Автор вопроса
Samuel
so... make a request?

How will he request be made without Ajax, i wanna use pure php to track button click

Php is for the back, so you can't control how you send data with it (because that is in the front), you can use JS to send data to your php back without using a form.

Generation Z Aloyce Daniel
How will he request be made without Ajax, i wanna ...

you have to make a sort of "redirector" php script that record the click and send to the desired link

Generation Z-Aloyce Daniel Автор вопроса
Reny Ramos
Php is for the back, so you can't control how you ...

😔😔😔😔😔 so AJAX REQUEST MST BE USED!???

Generation Z-Aloyce Daniel Автор вопроса
Generation Z-Aloyce Daniel Автор вопроса
Samuel
explain better what you want to achieve

I want to track button click, let say i want to retrieve data from the data base on click, but i wanna use pure php and nothing else

Generation Z Aloyce Daniel
I want to track button click, let say i want to re...

what do you mean with button? an anchor link? a button? a submit?

Generation Z-Aloyce Daniel Автор вопроса
Samuel
what do you mean with button? an anchor link? a bu...

A normal html button, <button></button> I want to fetch data from the database onclick, when a user clicks the button then data from the database is shown

Generation Z Aloyce Daniel
I want to track button click, let say i want to re...

Honestly you already know every time someone push a submit button of a form that point to your php script 😊 you are already respond to that request. Just log every time your backend respont to that form.

Похожие вопросы

Обсуждают сегодня

Hey guys, did you see the new announcement about $Fun? 🔥
Filip Murphy
55
А чем вам питонисты не угодили?😂
.
79
Язык Си можно выучить за день? По книжке ANSI C на 230 страниц
Vincent Vegan
29
Привет, запускаю werf в dind в k8s, получаю ошибку на этапе build/beforeSetup: /.werf/stapel/embedded/bin/bash: /.werf/scripts/5898bdfe5214357d3706b879cc8d3d78460fb379607cbd...
florius0
7
пацаны, как-нибудь можно панель задач заблюрить, что она была похожа на kde или винду 7, 11?
В
16
Всем привет, написал код ниже, но он выдает сегфолт, в чем причина? #include <stdio.h> #include <stdlib.h> #include <string.h> struct product { char *name; float price; };...
buzz базз
75
Dim Dim, [02.07.2024 11:07] DB 0x62 Dim Dim, [02.07.2024 11:07] DB 0x66 Dim Dim, [02.07.2024 11:07] кто пояснит что это?
Dim Dim
14
So total 101m burned Today?
Simu
18
Ошибка: segmentation fault (core dumped) Код: pastebin.com/BEsNNSSV Сообщение от компилятора: отсутствует ОС: Arch Linux Ядро: x86_64 Linux 6.9.7-arch1-1 Процессор: Intel Cele...
sec
4
Hi, I can't understand promises in JavaScript and what we should use them for (maybe the teacher didn't teach well XD). Do you have a solution for this? And are promises used...
A
29
Карта сайта