Page 1 of 1

Function to process form

Posted: Sat Mar 07, 2009 9:28 pm
by jwerre
I'm tying to get this function to process this from but cant get it to work.

Code: Select all

 
<?php
    function sumbitNotification(){
     echo message;
 
    };
?>
 
<h1>Hypertype Notification</h1>
<form name="form" method="POST" action="<?php sumbitNotification(message); ?>">
    <p><label for="message">Message</label><br />
    <textarea name "message" rows="10" cols="30">Input your message here</textarea></p>
    <p><input type="submit" name="Submit" value="Submit Notification" /></p>
</form>
 
It's all in the same file. Any help would be appreciated. Thanks!

Re: Function to process form

Posted: Sat Mar 07, 2009 9:56 pm
by requinix
You can't submit to a function.

How to do it the right way.