Page 1 of 1

how to start

Posted: Fri Oct 31, 2008 9:19 pm
by ola ola
Hello everyone
I am new here. I am going to design a website, for that I need to get some user response from the user. It is like I am going to ask them about few questions and they will reply me and I need to store them in the database. so can anyone please tell me how can I start it? I am not asking for the code, just want to know how can I start the whole process.
hope to hear from you guys...
thanks

Re: how to start

Posted: Sun Nov 02, 2008 4:43 pm
by alex.barylski
Assuming your server already has *AMP setup and configured

<?php

Would be a great start. :P

Re: how to start

Posted: Sun Nov 02, 2008 4:49 pm
by s.dot
Hmm, such a trivial task with milestones needing to be learned. :P

First and foremost, you're going to need a form:
http://www.htmlgoodies.com/tutorials/forms/

Then you're going to need a PHP script to process that form:
http://us2.php.net/manual/en/tutorial.forms.php

You're going to also need to use a database (mysql is popular) and the php functions mysql_query() and mysql_real_escape_string(), at minimum.

Then you'll need to learn the basics of the SQL Syntax to pass to mysql_query():
http://en.wikipedia.org/wiki/CRUD_(acronym)