Forum: PHP Jun 1st, 2008 |
| Replies: 9 Views: 1,744 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: 771 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: 812 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: 812 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,801 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,211 I think that you would need access to his site to place code on the page you want secured. |