Jump to content


Photo

submit form into database and email


  • Please log in to reply
2 replies to this topic

#1 crazysaint

crazysaint
  • Members
  • PipPip
  • Member
  • 25 posts

Posted 21 July 2006 - 08:02 AM

i have created a form that submits values to the database,i want to create a code that will send an email of same values on the same click such that the values will be rertived on email and also be stored in the database.

#2 hackerkts

hackerkts
  • Members
  • PipPipPip
  • Advanced Member
  • 593 posts
  • LocationSingapore
  • Age:18

Posted 21 July 2006 - 08:25 AM

Do you mean that you want it to input informations into your database and also send the information through email ?

So let's say you use the POST method, you just use $_POST['form-name'] and do a INSERT query into your database and below it just put the mail function to send the email with those informations.

Regards,
hackerkts

To be a coder, you must learn how to think and not to give up so easily.


#3 crazysaint

crazysaint
  • Members
  • PipPip
  • Member
  • 25 posts

Posted 21 July 2006 - 09:07 AM

Do you mean that you want it to input informations into your database and also send the information through email ?

So let's say you use the POST method, you just use $_POST['form-name'] and do a INSERT query into your database and below it just put the mail function to send the email with those informations.


yeah thats what i want to do,will the mail function also pick up the information and send it or do i have to add a code to pick up the information?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users