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

This will remove the escape slashes added by the server php settings.
Read magic_quotes_gpc in php reference.

-Original Message-
From: ron.php [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 12, 2007 7:03 AM
To: php-db@lists.php.net
Subject: [PHP-DB] Form processing

I am trying to set up a form which will send e-mails for late breaking
news 
and urgent e-mailings.  

If I have Today's news in the subject line on the e-mail it comes out 
with Today\'s news --- how can I prevent this from happening?  

Ron  

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 e-mails for late breaking news 
and urgent e-mailings.  

If I have Today's news in the subject line on the e-mail it comes out 
with Today\'s news --- how can I prevent this from happening?  

Ron  

  


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 [EMAIL PROTECTED]
Subject: [PHP-DB] Form Processing
Date: Fri, 15 Oct 2004 23:05:14 -0400
I would like to know if you are able to create a PHP web form that has
different SUBMIT buttons --- or if you used the HTML command
SELECT NAME=approval_command
OPTIONDelete Record
OPTIONUpdate And Approve For Listing
OPTIONFor Management
/SELECT
Basically I want the delete record to find the record in the mySQL
database --- I added the auto_increment yesterday to help develop the
editing module --- I want the Update and Approve For Listing to change a
variable value from 0 to 1 and to accept any changes the pre-viewer has
made --- for example writing in United States instead of US and For
Management to change the variable value to 2.
Are any of you able to help me with this question?
Sincerely thank you.
It would again help me if a copy of your response is sent to my e-mail
[EMAIL PROTECTED]
Ron
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php