Hi all!
I'm trying to call a PHP function with a normal button, but it just seems to call the function without having to click on the button. This is the code I've got, and I'm ultra nOOb, so be gentle with me please:
<?php
$name = $_GET["name"];
echo "Name: ".$name."<br />";
function mailme(){
echo "Hello!";
}
?>
<table>
<tr>
<td>
<input name="sender" type="button" value="be off with you" onClick="mailme()">
</td>
</tr>
</table>
I also tried:
<input name="sender" type="button" value="be off with you" onClick="<?php mailme() ?>">
Any help would be greatly appreciated,
Ad