Then it probably won't be used then. I'm only stating possible outcomes.Don't expect anything good
Then it probably won't be used then. I'm only stating possible outcomes.Don't expect anything good
There are too many CMS developments. We all know RevCMS is the best.But good luck!
Yeah goodluck.
Posted via Mobile Device
Love it like awesome keep it going im going to like it now hope its released soon
Thanks Guys! Really appreciate the comments... :D
Anyway, It was going to be a pain redesigning my old register page after me changing the style, Therefore I had to move it on the Index page.
I'll post more updates soon.
Going to be a prick here, but mind posting snippets as this prj doesn't bring me in
Posted via Mobile Device
I've decided to change Repeat Password to Email for the registration, Not sure if it was a good move or not.
PHP Code:<?php
include('global.php');
if(mysql_num_rows(mysql_query("SELECT * from users WHERE username='" . $_POST['username'] . "'")) == 1){
echo "This username already exsists!";
}
else if(strlen($_POST['username']) > 15){
echo "Your username is too long!";
}
else if(strlen($_POST['username']) < 3){
echo "You username is too small!";
}
else if(strlen($_POST['password']) > 15){
echo "Your password is too long!";
}
else if(strlen($_POST['password']) < 4){
echo "You password is too small!";
}
else if(strlen($_POST['email']) > 30){
echo "Your email is too long!";
}
else if(strlen($_POST['email']) < 4){
echo "Your email is too small!";
}
else if(preg_match('/[^0-9A-Za-z]/',$_POST['username'])){
echo "You have unknown characters in your username!";
}
You could use `or` or `||` to shorten a few of those string length checkers...
PHP: Logical Operators - Manual
Thanks for the advice Hejula! Anyway, I've started on the me page. I've made a include for the header, top bar and navigation.
Snippet:
Looks quite messy with all the includes on the page, I'll fix that soon.PHP Code:<?php
session_start();
if (!isset($_SESSION['username'])) {
header('Location: index.php');
}
?>
<html>
<head>
<?php include ("global.php");
include("style/style.php");
include("style/header.php"); ?>
</head>
<?php include ("style/bar.php");
include("style/top.php"); ?>
<div class="fullusercontainer">
<div class="fulluserinfo">
Good luck. Seeing as you're learning if you need any help feel free to PM me and i'll try my best to help :D
Thanks Jonteh, I really appreciate the support!