I wrote mine specially ... it runs with a preview phase which was pretty tricky to put in ... but the to-value is hardcoded in the script, cuz it just sends mail to webmaster@xxxxxxxxxxxxxx ... when the user fills in the form the script checks it for errors, and then either bounce back to the form if there are any errors, or to the preview if there's not (atleast I think I kept the preview in there, not sure anymore, been a long while) .... and then on to a "thank you" message .... I control it all using hidden form fields ... pretty simple ... it's coded to my old site-structure, before I started to use templates ... so it's a bit difficult to peel it out and show it to you though .... but will try if requested... FWIW Rene Fate would have it, that on Fri, 30 Jan 2004 09:41:11 -0000, Ricardo Lopes wrote: >There are several ways to do this. >Some people like the approach: > >if ($submit) { send_email(); } > >or you can put a hidden field in your form, like op: > ><input name="op" type="hidden" id="op" value="send" /> > >and use: > >if (isset($HTTP_GET_VARS['op']) && ($HTTP_GET_VARS['op'] == 'send')) >{ > send_email(); >} > >and there are many others. >by the way in the code you wrote you have: > ><form method="post" .....> > >and then you use: > >$id=$_GET['id']; <--- if this is the same than $HTTP_GET_VARS['id'] this >wont work > > >Where does that mail function (is it a function?) go? > >The function sends an email, for more details consult the php manual. -- Rene Brehmer aka Metalbunny http://metalbunny.net/ References, tools, and other useful stuff... -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php