Thread: Help with Form
View Single Post

  #4 (permalink)  
Old 12-05-2008, 11:41 AM
ringleader ringleader is offline
Frontpage User
 
Join Date: Apr 2008
Location: Dublin
Posts: 15
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
ringleader will become famous soon enough
Default

Code:
<form name="contactform" action="index.php?$session[sessionurl]do=messageme" method="post">

// Parts of the form.

</form>

if ($_POST['messageme'])
{
   // process and send message
}
The first part is your form displayed to the user to input things to.

When submitted, it goes to the 'messageme' part of your php code and executes what is in that part of the code (presumably emailing you the form contents).

Last edited by ringleader; 12-05-2008 at 11:44 AM.
Reply With Quote