Page 1 of 1

sending form info to database

Posted: Wed Aug 16, 2006 8:55 pm
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?

Posted: Wed Aug 16, 2006 8:57 pm
by feyd
What have you figured out so far to meet these goals?

Posted: Wed Aug 16, 2006 8:59 pm
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

Posted: Wed Aug 16, 2006 9:13 pm
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
?>

Posted: Wed Aug 16, 2006 9:17 pm
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.