Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Form that writes to database and send email
Old 11-20-2008, 01:53 PM Form that writes to database and send email
aigb_mcd's Avatar
Skilled Talker

Posts: 52
Trades: 0
PHP Newbie

I need to have a php survey form write the content results to a database and then if there is a poor rating (1-5 one being the worst). an email is sent to that cities distribution list stating you have a bad report. There are five cities within a dropdown menu eaching it's own mailign lsit. if the city has a good report no email is sent but results are still sent to database. Can you help?

Last edited by aigb_mcd; 11-20-2008 at 01:54 PM..
aigb_mcd is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-21-2008, 07:08 AM Re: Form that writes to database and send email
Experienced Talker

Posts: 48
Name: Pieter
Location: Holland
Trades: 0
Use mysql_insert to get your data in the database, and google for php mail form, and thats it
elcosmo is offline
Reply With Quote
View Public Profile
 
Old 11-21-2008, 07:58 AM Re: Form that writes to database and send email
Pintu's Avatar
Novice Talker

Posts: 14
Name: Himanshu
Location: Texas
Trades: 0
Thank you for the nice and useful information about database and php.

==>> Pintu
__________________

Please login or register to view this content. Registration is FREE
*
Please login or register to view this content. Registration is FREE
Pintu is offline
Reply With Quote
View Public Profile Visit Pintu's homepage!
 
Old 11-21-2008, 09:01 AM Re: Form that writes to database and send email
Experienced Talker

Posts: 32
Trades: 0
I suppose you are familiar with PHP scripting right? well the general idea would be

[get the input values]
[if condition value < 3 (for ratings 1 and 2)]
insert into database
send email

[else]
just insert into database, no email
[condition ends here]
__________________

Please login or register to view this content. Registration is FREE
Professional PSD to XHTML coding services
tsiger is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Form that writes to database and send email
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.32741 seconds with 12 queries