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
How to save form results to a Access database and e-mail them as well.
Old 10-06-2008, 10:50 PM How to save form results to a Access database and e-mail them as well.
Junior Talker

Posts: 3
Name: Joshua Wil.
Trades: 0
I am trying to create a unique contact form for my website and I need a little help. Let me first mention that it has the following fields:

Name: <--One line text box
E-mail: <-- One line text box
Who would you like to contact: <-- Drop down list (This field shows the persons name in the box; exp. "John Smith" or "Jane Smith" and has their e-mail addresses as the special values. So when the user fills out the form and selects "John Smith" as the person they would like to contact, the hidden value becomes "John.Smith@website.com". Just the same, if the user were to select "Jane Smith" instead, the hidden value would become "Jane.Smith@otherwebsite.com".)

Subject: <-- Drop down list
Message: <-- Scrolling Text box

Now, I would like this form to do a few things (if at all possible.) Even if I have to use a cgi script, that is OK as I already have a few of those on the site(I didn't write them because I don't know how.)

I would like all of the results e-mailed to the contact the user selects in the "Who would you like to contact:" field. Using the example above if the user selects "John Smith" in the "Who would you like to contact" field, the form(once submitted) would e-mail the results to "John.Smith@website.com" or if the user selected "Jane Smith" the form would e-mail the results to "Jane.Smith@otherwebsitecom".

Also, I would like the form results to be saved to an Access database on the webserver as well as e-mailing them to the contact.

I have a web developer that said he could do it for me but he wants $500 to do it, and I don't have that in my budget. I hope that I have explained my situation as best as possible. I hope someone can help me with this. I can create a different contact page for each person but that would take up to much space on the webserver. Thank you for any help you can provide.

*** Added 10/07/2008 12:18 AM ***
*** I have MySQL access on the webserver. I have already created a database and a table. I would like to save the form results to that database if I can instead of the Access database, if anyone knows anything about PHP.***

Last edited by PlYMTEWEBMSTR; 10-07-2008 at 01:18 AM..
PlYMTEWEBMSTR is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-07-2008, 03:08 PM Re: How to save form results to a Access database and e-mail them as well.
Experienced Talker

Posts: 41
Name: Jabis Sevon
Location: Tampere, Finland
Trades: 0
I'd suggest you just google for let's say "php contact form" or something like that, and you'll have a billion howto's on your screen
jabis is offline
Reply With Quote
View Public Profile Visit jabis's homepage!
 
Old 10-07-2008, 03:25 PM Re: How to save form results to a Access database and e-mail them as well.
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
$500 dollars just for a contact form? That is highway robbery!
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 10-07-2008, 07:02 PM Re: How to save form results to a Access database and e-mail them as well.
Junior Talker

Posts: 3
Name: Joshua Wil.
Trades: 0
Yeah it is. I told him that he was out of his mind. I mean $500 for one page, come on.
PlYMTEWEBMSTR is offline
Reply With Quote
View Public Profile
 
Old 10-08-2008, 10:34 AM Re: How to save form results to a Access database and e-mail them as well.
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
If you end up doing this yourself, I would read up on PHP form submissions. Here is a tutorial for beginners: http://www.w3schools.com/php/php_forms.asp
Then, I would read about the mail() function of PHP. Fortunately it is pretty easy to use: http://us3.php.net/function.mail
Here is a tutorial for using MySQL from PHP: http://www.w3schools.com/PHP/php_mysql_intro.asp
Here is the page from that tutorial about inserting into a database: http://www.w3schools.com/PHP/php_mysql_insert.asp

If you read about those topics a little, come back here and we'll help you with any specific questions you have.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 10-08-2008, 06:22 PM Re: How to save form results to a Access database and e-mail them as well.
Junior Talker

Posts: 3
Name: Joshua Wil.
Trades: 0
Thankyou, you guys have been a great help.
PlYMTEWEBMSTR is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How to save form results to a Access database and e-mail them as well.
 

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.23192 seconds with 12 queries