pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
email and postgresql
2+ messages / 2 participants
[nested] [flat]

* email and postgresql
@ 2002-05-16 13:25 angelo.rigo@globo.com
  2002-05-16 13:53 ` Re: email and postgresql Eckhard Hoeffner <e-hoeffner@fifoost.org>
  0 siblings, 1 reply; 2+ messages in thread

From: angelo.rigo@globo.com @ 2002-05-16 13:25 UTC (permalink / raw)
  To: pgsql-php

I would like to ask if it is possible
to have a form to be sent to an emailadress
and store the fields of my form in a table database
at the same time . How do you do that?
 



________________________________________
A busca mais veloz e precisa da internet. Acesse agora: http://www.zoom.com.br.




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: email and postgresql
  2002-05-16 13:25 email and postgresql angelo.rigo@globo.com
@ 2002-05-16 13:53 ` Eckhard Hoeffner <e-hoeffner@fifoost.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Eckhard Hoeffner @ 2002-05-16 13:53 UTC (permalink / raw)
  To: pgsql-php

* angelo.rigo@globo.com <angelo.rigo@globo.com> [16 05 02 15:25]:

>I would like to ask if it is possible
>to have a form to be sent to an emailadress
>and store the fields of my form in a table database
>at the same time . How do you do that?

Well, just do one after the other:


// 1. Send the Mail with the mail-function
$sent = mail($email, $subject, $sende_text, $from);

// 2. Store the Mail, if it was sent
if(!$sent){echo "Error";}
else{
  $query = "INSERT INTO korrespondenz (kontakt_id, ansprpart_id, 
                       betreff, text, art, ihrz, unserz, user_id)
            VALUES ('$kontakt_id', $ansprpart_id, '$subject', 
	    '$body', 'e', '$iz', '$uz', '$user_id')";
  // start DB-Connection
  // execute the query
}	    



-- 
--//--\\--
Eckhard Hoeffner
e-hoeffner@fifoost.org
Tal 44 
D-80331 München



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2002-05-16 13:53 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-05-16 13:25 email and postgresql angelo.rigo@globo.com
2002-05-16 13:53 ` Eckhard Hoeffner <e-hoeffner@fifoost.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox