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); }

Re: [PHP-DB] Form processing

2007-09-12 Thread Goltsios Theodore
I tried this: ?php $sub = Today's news; $to = '[EMAIL PROTECTED]'; $body = test; ? 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

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: PHP DB