Sunday 26 August 2018

How can you use php in a javascript function


$num = 1;
echo $num;
?>
name="lol"
value="Click to increment"
onclick="Inc()" />







This is what i have so far, not working though, i think i need to use ajax or something but i have no idea what to do.



Thanks

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...