Function to process form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jwerre
Forum Newbie
Posts: 18
Joined: Thu Feb 05, 2009 5:06 pm

Function to process form

Post 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!
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Function to process form

Post by requinix »

You can't submit to a function.

How to do it the right way.
Post Reply