php solution for a small script
hello, please cheak this url at the first ( sorry it's not an english site just look at structure) : u2u4fun.com/index.php?app=vote
there is 2 part in this script:
1-first part user have to fill 4 textbox there are personal information.
2-second part you can see a lot of drop-down box in each drop-down box there is 5 selection for voting from good to bad ...
user fill this information and then will be submit them... thene data store in database in admin panel ... admin can cheak this form in www/admin/index.php
i want to know how can i program some pages like this... and please give me some code and example ...
tnx a lot
First the best site to start with for learning PHP is php.net the home of PHP. Should note for you that php.net is several languages so you will be able to understand it more easily.
But it sounds like you need to store the data that is being submitted so you will need a database. Usually most web hosts provide at least a MySQL database with their service. And PHP works real good with MySQL. But if they didn't give you a MySQL database PHP does work with several other database types. You will need to find out what you have to get started.
So after that if you know how to make a form in HTML after that it is just a matter of knowing how to get the submitted data out of the super global, $_POST. And then store it in a database and then on the Admin page retrieve it.
So beyond that if need more help we will need to know what type of database you have. And really many here shy away form just giving you all the code so it would be to your best interest to look up a tutorial on PHP form submission and validation. And there are 100's of them on the web so you should be able to get most of it yourself. And then we can help you with the fine details.
allright , i have to give you krik and hello world some information :
1- i know css and html well.
2- i worked with .net 2005 and 2008 (VB LANG) and databases and now i want to move to PHP
3- i know database and some php keywords and PHP sysntax but i dont have experince to set it up with PHP
if it's possible give me some example of insert,update,delete with php and mysql... i want to learn this section !
i know how connect to Db and ...
|All times are GMT. The time now is 06:59 PM.|
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0