Register and Log in forms

Granorense

Senior member
Oct 20, 2001
699
0
0
Hi, I am an absolute noob when it comes to dynamic websites.
I would like to create a form for people to register to my website and login after the registration has been created.
I use ipowerweb as my hosting company in which I have created a database called users with the files like FirstName, LastName, E-mail?Password and so on.

On their help page the list the following as the connection string.

$username = "dbuser";
$password = "password";
$hostname = "localhost";
$dbh = mysql_connect($hostname, $username, $password) or die("Unable to connect to MySQL");
mysql_select_db ("dbname");

I know how to create the form with dreamweaver, however I have no clue in how to connect it to the database on their server just by entering code. Unfortunately, ipowerweb doesn?t allow me to connect to their mysql database from my pc, if they did, I could connect to it and try to visually make the form work.

As you can tell I don?t know anything about programming, all I know is that I need help!!!

How can I make this work?

Thank you very much for the help.
 

SaturnX

Diamond Member
Jul 16, 2000
3,415
0
76
The code you have there is PHP, and needs to be in the file that you want to access the database. After that bit of code you can run queries to get / set / create data within your database. Then you incorporate it with your form.

Most likely you'll want to create a PHP file that processes the form and dumps it into the database. First step is read up on PHP:

www.php.net

--Mark
 

nweaver

Diamond Member
Jan 21, 2001
6,813
1
0
if you are a visual person, you might install phpmysqladmin on your site to get a feel for it. You also may look at the CMS systems that are existing, such as phpnuke
 

Granorense

Senior member
Oct 20, 2001
699
0
0
Thank you very much. I have phpnuke installed on the server, I will play with it and see where it gets me!