RyanB88
03-06-2005, 07:17 PM
how would i get a php script to take the valuse of a text filed and insert it into the db, also how can i make it encrypt a password valuse using md5 then store that in the db?
would this work?
<?php
echo "Username: <input type='text' name='username'>"
// Connect to the database by calling $link which is defined in config.php (which i required in this file)
$link;
some qury i am not sure what using $username
echo "Password: <input type='password' name='password'>"
// Connect to the database by calling $link which is defined in config.php (which i required in this file)
$link;
$passwd = md5('$password')
some qury i am not sure what using $passwd
?>
Now i am probably far off but i am still learning php and mysql queries.
would this work?
<?php
echo "Username: <input type='text' name='username'>"
// Connect to the database by calling $link which is defined in config.php (which i required in this file)
$link;
some qury i am not sure what using $username
echo "Password: <input type='password' name='password'>"
// Connect to the database by calling $link which is defined in config.php (which i required in this file)
$link;
$passwd = md5('$password')
some qury i am not sure what using $passwd
?>
Now i am probably far off but i am still learning php and mysql queries.