Message from JavaScript discussions

October 2020

— Open page register.php...

Simply nothing else


People place <a href="phpfile.php"> all the time. It is normal: view-source:

— Is the path correct?

— Yes

— Test with a php file containing only some HTML and then try again.

— I want to trigger a php function on div click ...what is the way

— Otherwise I could imagine your php server is broken. what do you use? apache? any htaccess placed?

— Depends on what kind of function you want to trigger.. for location forwarding, <a href=""> is the right way to go

Message permanent page

— Otherwise: HTTP API, with fetch.

— I want to operate with MySQL database when click on div

— Then fetch is right

— I don't know fetch