Sep 8, 2013 02:21 AM
(This post was last modified: Sep 8, 2013 02:28 AM by SIM-1456245.)
I have a little problem here, I'm trying to call a function with a parameter onclick on an echoed button in php. A bit complicated, but look at this:
This is solved, close the thread.
PHP Code
<?php
<script>
function say(value){
alert(value);
}
</script>
<?php
echo'<button onclick="say('test')">Say Test</button>'
?>This is solved, close the thread.


