Cómo puedo ejecutar una función PHP al pulsar un enlace si ja? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Cómo puedo ejecutar una función PHP al pulsar un enlace si ja?

Quiero que ejecute un código php antes o después que el enlace se abra en otra página, al apretarlo, pero sin usar Javascript

21st Oct 2021, 7:56 PM
ihoni feinberg
ihoni feinberg - avatar
2 Answers
0
Hi, It is not possible to execute a function after rendering the page without JavaScript. PHP is only rendered from the server. But you can run the function from this other page.
22nd Oct 2021, 12:31 AM
Justin D.
Justin D. - avatar
+ 1
Y si abro el enlace en otra ventana y mi código en el que está el enlace sigue corriendo?
22nd Oct 2021, 7:37 AM
ihoni feinberg
ihoni feinberg - avatar