 |
 |
Web form using MySQL and PHP
|
 |
|
 |
|
Forum Regular
Join Date: Oct 2002
Status:
Offline
|
|
Hello. I have tried searching for resource on the web but was out of luck. All I want is a simple web form so that I can input names addresses and phone numbers and have it stored in a MySQL database. After inputting, there it should generate the contents on the same page. Seems simple enough but I can't find anything for it. Any thoughts? Thanks and many thanks! 
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Aug 2002
Location: Oxford, England
Status:
Offline
|
|
Buy a book (PHP & MySQL - Visual Quick Start Guide) or follow the tutorial here.
Take an input from an html form.
$email=$_POST[emailf];
Save this to a MySQL database
Connect to your database.
Use the SQL statement 'INSERT'
Show results/contents
Connect to your database.
Use the SQL statement 'WHERE' and a while loop to list the contents.
Put results in variables
Then echo the variables.
|
|
Luke
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Oct 2002
Status:
Offline
|
|
Thanks for the tip! I will definately give it a look
Originally posted by sandsl:
Buy a book (PHP & MySQL - Visual Quick Start Guide) or follow the tutorial here.
Take an input from an html form.
$email=$_POST[emailf];
Save this to a MySQL database
Connect to your database.
Use the SQL statement 'INSERT'
Show results/contents
Connect to your database.
Use the SQL statement 'WHERE' and a while loop to list the contents.
Put results in variables
Then echo the variables.
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: May 2001
Location: Nottingham, UK
Status:
Offline
|
|
Have you created your database already?
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Oct 2002
Status:
Offline
|
|
Thanks for the tips! I really appreciate all your help
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Mar 2002
Location: Clogland
Status:
Offline
|
|
Wow, exactly what I was looking around for, almost bought the Php Cookbook yesterday, but seeing that, with the combination of Pear and O'Reilly ..... gonna get me a copy.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Mar 2002
Location: Clogland
Status:
Offline
|
|
That book doesn't get realised till May btw.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |