RE: [PHP-DB] Form processing

2007-09-13 Thread Naintara
You could look up the PHP function get_magic_quotes_gpc() When a form is posted, you could do a check like this: if ( get_magic_quotes_gpc() ) { //where $subject contains the subject string and $newsubject is what you use for the mail $newsubject = stripslashes ($subject); } Th

Re: [PHP-DB] Form processing

2007-09-11 Thread Goltsios Theodore
I tried this: mail($to,$sub,$body); And it seems that it works just fine. If you really want help, you should post the code that is causing you trouble. Theodore ron.php wrote: I am trying to set up a form which will send e-mails for "late breaking news" and urgent e-mailings. If I hav

RE: [PHP-DB] Form Processing

2004-10-16 Thread Bastien Koert
yes, you can have multiple submit buttons, you would simply need to test for the value of that button on the server if ($_POST['submit']=="delete"){ //delete something } if ($_POST['submit']=="update"){ //update something } and so one hth Bastien From: "Ron Piggott" <[EMAIL PROTECTED]> To: "P