Forum: PHP Jun 1st, 2008 |
| Replies: 10 Views: 1,910 Are you doing this for experience or for something else? As if you use google, there are some already out there.
Download, look at the code, and play with it from there...... |
Forum: PHP Jun 1st, 2008 |
| Replies: 4 Views: 775 Here is another way to create your table...
CREATE TABLE `users` (
`ID` int(11) NOT NULL auto_increment,
`Username` varchar(255) NOT NULL default '',
`Password` varchar(255) NOT NULL... |
Forum: PHP May 26th, 2008 |
| Replies: 8 Views: 818 Here is what I suggest:
Create a page called secure.php
add the following code as it is: ONLY change " your_login_page "
<?php
session_start();
if (empty($_SESSION['username'])) ... |
Forum: PHP May 26th, 2008 |
| Replies: 8 Views: 818 I used the following code:
<?php
session_start();
if (empty($_SESSION['username']))
{
header("location:index.php");
exit;
}
?> |
Forum: PHP Feb 28th, 2008 |
| Replies: 13 Views: 5,933 Here is what I do
secure.php
<?php
session_start();
if (empty($_SESSION['username'])) {
header("location:index.php");
exit; }
?> |
Forum: PHP Feb 24th, 2008 |
| Replies: 5 Views: 1,229 I think that you would need access to his site to place code on the page you want secured. |