sending form info to database
Moderator: General Moderators
sending form info to database
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?
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
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)
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.
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.