3
I have a content inside a <li>
I need to refresh her at the event onclick
.
But within this li there is a function in php
. How would that be possible?
3
I have a content inside a <li>
I need to refresh her at the event onclick
.
But within this li there is a function in php
. How would that be possible?
Browser other questions tagged php javascript jquery mysql ajax
You are not signed in. Login or sign up in order to post.
what makes a php funcition inside an html element? this makes no sense, beyond what, without seeing the code becomes more impossible to understand yet...
– Ricardo Pontual
Put your code so we can help.
– Patrick Santana
Send me the code?
– João Dutra
Your question seems to have some problems and your experience here in Stack Overflow may not be the best because of it. We want you to do well here and get what you want, but for that we need you to do your part. Here are some guidelines that will help you: Stack Overflow Survival Guide in English (short version). If the help is very simple it is still possible to do in the comments.
– Maniero
Indeed, as colleagues have said, without the code it is difficult to understand. But you have to understand that Javascript runs in the PHP browser does not, and in your case PHP runs on the server and Javascript does not. PHP returns HTML that will in turn be interpreted by the browser. There is no connection between PHP and Javascript. What you are doing is printing the result of a PHP function into the HTML of
<li>
.– TiagoA