sending form info to database

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
cypher235
Forum Newbie
Posts: 15
Joined: Tue Jul 25, 2006 10:22 pm
Location: Dickson, Tennessee

sending form info to database

Post by cypher235 »

ok i have a database setup, and i need a form i made to send the information to that database, im a little confused as how to do that, i would also like that the information sent from that form to be put back on the same page at the top of a table using php script, and i don't want a login system to do this, can anyone help me out?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

What have you figured out so far to meet these goals?
cypher235
Forum Newbie
Posts: 15
Joined: Tue Jul 25, 2006 10:22 pm
Location: Dickson, Tennessee

Post by cypher235 »

i've only figured out how to set up the database within phpMyadmin, and i've messed around with the code on the form a little bit and some php scripts but haven't had any luck with it so far
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

Add this code at the bottom of your form to see what you are receiving, then see what you can come up with:

Code: Select all

<?php
function dump($var) {
     echo '<pre>' . print_r($var, 1) . '</pre>';
}

dump($_POST);     // this will print the array that contains the values of the form fields
?>
(#10850)
User avatar
pedrotuga
Forum Contributor
Posts: 249
Joined: Tue Dec 13, 2005 11:08 pm

Post by pedrotuga »

i guess one could explain it line by line... but this is explained on the web in thousands of different places

for example

http://www.php-mysql-tutorial.com/

if you want something simpler or more complicated use google... there are tons of them

any help on specific questions come and ppl help you out.
Post Reply