N00B Needs Help with PHP Questionnaire

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
1234567890
Forum Newbie
Posts: 6
Joined: Mon Oct 06, 2008 7:21 pm

N00B Needs Help with PHP Questionnaire

Post by 1234567890 »

I have to create a five question, multiple choice, questionnaire that can save to a database. Once the person has completed the questionnaire, I would like to automatically send some text to the email address the user provided in the questionnaire. I would also like to be able to easily see the data.

Can you please tell me what this is called and/or where I can look to find tutorials on how to create this? Knowing the name will help in Google searches, or when trying to find a script for this that is already created for me.

Thanks for any help!
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: N00B Needs Help with PHP Questionnaire

Post by papa »

Do you know any programming?

It might not be so easy if you haven't done anything with PHP and mySQL before.

What I would use as references are:
http://w3schools.com/html/html_forms.asp
http://se.php.net/manual/en/function.mail.php
1234567890
Forum Newbie
Posts: 6
Joined: Mon Oct 06, 2008 7:21 pm

Re: N00B Needs Help with PHP Questionnaire

Post by 1234567890 »

I have some php experience, but I am lacking knowledge to connect the data inputted on the html form to the actual database. Any good locations for such a topic?
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: N00B Needs Help with PHP Questionnaire

Post by papa »

Well, if you're using mySQL you can look here for the functions you need: http://se.php.net/manual/en/book.mysql.php

Start by connecting and display some data first.
1234567890
Forum Newbie
Posts: 6
Joined: Mon Oct 06, 2008 7:21 pm

Re: N00B Needs Help with PHP Questionnaire

Post by 1234567890 »

I have some php experience, but I am lacking knowledge to connect the data inputted on the html form to the actual database. Any good locations for such a topic?
Post Reply