Hay all i got a function that i would like to be submited by a form filed button im not sure on how the sytax should look.

This is the function i wish to send

PHP Code:
   function sendChatMessage($message) { 
sendCommand"<" $this->getNick ">"$message); 

and this is what i want to use to send it

  <form name="SNDTXT" method="GET" action="">
  <label for="textfield">Text</label>
  <input name="textfield" type="text" id="textfield" value="usertxt">
  <label for="Submit"></label>
  <label for="label1"></label>
  <input type="submit" onClick="">
any help would be apretiated as im new to usning PHP functions!

P.S Great forum