TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 03-17-2009, 01:30 PM   #1 (permalink)
The Visitor
 
aghahamidgol's Avatar
 
Join Date: Mar 2009
Posts: 4
Thanks: 4
aghahamidgol is on a distinguished road
Unhappy 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
Heam
aghahamidgol is offline  
Reply With Quote
Old 03-17-2009, 07:58 PM   #2 (permalink)
The Contributor
 
hello-world's Avatar
 
Join Date: Feb 2009
Posts: 73
Thanks: 30
hello-world is on a distinguished road
Default

If I understand you well. You want to learn how to code, right ?
To do this, you need to learn php first.It might take time to learn that.
Here are some links.
http://www.talkphp.com/search.php?searchid=69652
http://lmgtfy.com/?q=free+php+poll
http://www.free-php.net/detail/link-19.html
hello-world is offline  
Reply With Quote
The Following User Says Thank You to hello-world For This Useful Post:
aghahamidgol (03-18-2009)
Old 03-18-2009, 02:21 AM   #3 (permalink)
The Contributor
 
Join Date: Feb 2009
Posts: 65
Thanks: 0
Krik is on a distinguished road
Default

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.

Last edited by Krik : 03-18-2009 at 02:51 AM.
Krik is offline  
Reply With Quote
The Following User Says Thank You to Krik For This Useful Post:
aghahamidgol (03-18-2009)
Old 03-18-2009, 07:13 AM   #4 (permalink)
The Visitor
 
aghahamidgol's Avatar
 
Join Date: Mar 2009
Posts: 4
Thanks: 4
aghahamidgol is on a distinguished road
Default

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 ...

tnx
heam
aghahamidgol is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
10 PHP Myths Dispelled Wildhoney General 9 06-15-2009 06:55 AM
Basic php form update mysql script dp2 Absolute Beginners 3 03-11-2009 04:06 PM
Nginx Rewrite Causing Wrong Path for PHP Script stewart General 0 11-09-2008 12:32 AM
PHP Compressor Kalle Script Giveaway 8 05-28-2008 12:14 AM
Apache-like Access Contol List script for PHP Wildhoney Script Giveaway 1 01-07-2008 04:40 AM


All times are GMT. The time now is 09:32 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design