Please input your name here:
You typed
<?php
$username = $_POST['username'];
echo $username;
?>
mikeandike22
Nearly a Posting Virtuoso
1,496 posts since May 2004
Reputation Points: 33
Solved Threads: 19
GET is more used if you are getting information from a url or something like something like
http://www.somesite.com/script.php?image=3
then you could use like
$image = $_GET['image'];
and if you then said
echo $image;
it would say 3.
and to see a return to wether or not the mysql is working do this
[PHP]
$host = "localhost";
$user = "user";
$pass = "hello";
$connect = mysql_connect($host, $user, $pass) or die("Could not connect to mysql server");
$sql = mysql_create_db("test");
if (!sql) {
echo "there was an error" . mysql_error();
}
else {
echo "database test was created";
}
[/PHP]
or something like that. but your form isnt doing anything with the data base so to put it further you need to create a table and insert the value into the table.
mikeandike22
Nearly a Posting Virtuoso
1,496 posts since May 2004
Reputation Points: 33
Solved Threads: 19