This Message Forum is no longer in use
Please use the new Bravenet Help Forums FOUND HERE
What software are you using? There is no point giving you SQL code if you are using XML for example.
Browser: Firefox3.0.5
Creating a form is the easy part. Making it do what you want is the difficult part.
To add registration and login capabilities to your web site, you need to create a data base that will keep track of the registered users, their login IDs, and their passwords. Usually PHP scripts manage the access to the data base. Details and code for doing something like this can be had at this link to PHP/MySQL Login & Registration system.
You can also put the string "registration and login form in php" in a Google search and find lots of other information and scripts.
The problem is, free web sites do not have data base or PHP access. You only get that with paid hosting.
An alternative might be Bravenet's Password Protect service. Their free Password Protect service allows you to set up a restricted area of your web site. To see if it is a good fit, try this link to Bravenet's Wiki pages on the Password Protect service.
Browser: FIrefox
OS: Solaris, Redhat, Fedora, Suse
this is as far as ive gotton how do i see php files and is this code right?
Browser: IE 7
Except for the stuff that the Bravenet forum stripped out of the code, there isn't anything essentially wrong with the code you posted. Except of course, the rest of the operational files are missing. It would be far better if you posted a link to where you got the code from. Then we would have a better idea of how it is intended to work.
PHP files are just text files, just like HTML, CSS or JavaScript files. The main difference is that it is written in the PHP language. You can view/edit them in any text editor. PHP, like HTML, CSS and JavaScript, is an interpreted language, meaning that it is processed "in-line" and is not not compiled to an executable.
Generally, like the file you posted, the PHP file writes HTML to the web browser for viewing. Notice, in the code you posted, the "echo" statements. These statements are intended to write HTML to the visitors browser. Exactly which set of "echo" statement are use is dependent on which process is being exercised, Login or register, and is controlled by the "if/else" statements.
The file that you posted would probably be used as a start page and might be named "index.php". As long as there isn't any "index.html" or "index.htm" in the folder where it is located, it will be the default page. It would then allow you to either register or log in to the web site. What is missing are the other scripts that do the work. There will be several PHP scripts that process the actions from the login page. For example, "registering.php" would probably check the visitor's user name against the data base to insure that it is not already used. Then it would make an entry in the data base that contained the visitor's user name and their password. After that, the user should be able to log in.
But all of this is academic, if you don't have paid hosting. If you attempt to run a PHP program on a free web site you will get the following error code.
Browser: FIrefox
OS: Solaris, Redhat, Fedora, Suse
one more question
im still new at coding batch files but do you guys now what this code will do?
Browser: IE 7
ok i posted the code at
http://pub28.bravenet.com/forum/static/show.php?usernum=2385378114&frmid=52&msgid=954471&cmd=show
Browser: IE 7