Hello everyone. My name is Brandon which you probably already know. I am 19 years old and I have been programming for several years. I am currently looking for a few programming jobs, and I will be on my computer programming up to 6 hours a day! Examples: User Registration <?php include("header.php"); if(!empty($user['username']) AND !empty($user['password'])){ echo "<center><font color=\"red\">You are already logged in as <b>$username</b>. You cannot register an account while you're logged in. If this is not your account please logout <a href=\"login.php?act=logout\">here</a>."; include("footer.php"); die; } if($_GET['act'] == "register"){ $username = mysql_real_escape_string(strtolower($_POST['username'])); $display = mysql_real_escape_string($_POST['display']); $password = mysql_real_escape_string($_POST['password']); $email = mysql_real_escape_string($_POST['email']); $day = mysql_real_escape_string($_POST['day']); $month = mysql_real_escape_string($_POST['month']); $year = mysql_real_escape_string($_POST['year']); $newsletter = mysql_real_escape_string($_POST['newsletter']); $selectUinfo = mysql_query("SELECT * FROM users WHERE username='$username'") or die(mysql_error()); $uinfo = mysql_num_rows($selectUinfo); $display2 = strtolower(str_replace(" ", "", $display)); if(!$username || !$display || !$password || !$_POST['password2'] || !$email || !$day || !$month || !$year){ echo "<center><b><font color=\"red\">You didn't fill out all of the required fields.</font></center>"; }elseif(str_replace(" ", "", $username) != $username){ echo "<center><b><font color=\"red\">Your username cannot contain any spaces.</font></center>"; }elseif(ereg_replace("[^a-zA-Z0-9]", "", $username) != $username){ echo "<center><b><font color=\"red\">Your username can only contain alphanumeric characters.</font></center>"; }elseif(strlen($username) < 3 || strlen($username) > 15){ echo "<center><b><font color=\"red\">Your username must be between 3 and 15 characters.</font></center>"; }elseif($uinfo > 0){ echo "<center><b><font color=\"red\">That username is already taken by another user.</font></center>"; }elseif($display2 != $username){ echo "<center><b><font color=\"red\">You can only add CAPS and Spaces to your display name.</font></center>"; }elseif(str_replace(" ", "", $password) != $password){ echo "<center><b><font color=\"red\">Your password cannot contain any spaces.</font></center>"; }elseif(ereg_replace("[^a-zA-Z0-9]", "", $password) != $password){ echo "<center><b><font color=\"red\">Your password can only contain alphanumeric characters.</font></center>"; }elseif(strlen($password) < 6 || strlen($password) > 12){ echo "<center><b><font color=\"red\">Your password must be between 6 and 12 characters.</font></center>"; }elseif($password != $_POST['password2']){ echo "<center><b><font color=\"red\">The passwords you entered were not the same.</font></center>"; }elseif(preg_match("/^([a-zA-Z0-9])+([a-zA-Z0-9\._-])↪*@([a-zA-Z0-9_-])+([a-zA-Z0-9\._-]+)+$/", $email)){ echo "<center><b><font color=\"red\">Please enter a email using the proper email format.</font></center>"; }elseif($_POST['tos'] == "no"){ echo "<center><b><font color=\"red\">You must agree to the terms of service.</font></center>"; }else{ $password = md5(sha1($password)); mysql_query("INSERT INTO users(username,display,password,email,day,month,year,newsletter, IP, joined, level) VALUES('$username', '$display', '$password', '$email', '$day', '$month', '$year', '$newsletter', '{$_SERVER['REMOTE_ADDR']}', '$timestamp', '1')") or die(mysql_error()); echo "<center>You have successfully registered as <b>$username</b>. You may procceed to the user <a href=\"login.php\">login</a>."; include("footer.php"); die; } } echo<<<echo <form action="?act=register" method="post"> <table cellspacing="1" cellpadding="2" align="center"> <tr> <td colspan="2" align="center" style="border: 1px solid #000000;"><strong>User Registration</strong></td> </tr> <tr> <td>Username:</td><td><input type="text" name="username" value="$username"></td> </tr> <tr> <td style="padding-bottom: 11px;">Display Name:</td><td><input type="text" name="display" value="$display"><br> <font style="font-size: 11px;">You can use CAPS and Spaces.</font></td> </tr> <tr> <td>Password:</td><td><input type="password" name="password"></td> </tr> <tr> <td>Confirm Password:</td><td><input type="password" name="password2"></td> </tr> <tr> <td>Email:</td><td><input type="text" name="email" value="$email"></td> </tr> <tr> <td>Date Born:</td><td> <select name="day"> echo; $n = 0; while($n < 31){ $n++; if($n < 10){ $n2 = "0{$n}"; }else{ $n2 = $n; } echo "<option>$n2</option>"; } echo<<<echo </select> <select name="month"> <option value="01">January</option> <option value="02">February</option> <option value="03">March</option> <option value="04">April</option> <option value="05">May</option> <option value="06">June</option> <option value="07">July</option> <option value="08">August</option> <option value="09">September</option> <option value="10">October</option> <option value="11">November</option> <option value="12">December</option> </select> <select name="year"> echo; $n = date("Y"); while($n >= 1900){ echo "<option>$n</option>"; $n--; } echo<<<echo </select> </td> </tr> <tr> <td></td><td style="font-size: 10px;"><input type="checkbox" name="newsletter" value="1" checked> Would you like to recieve our Newsletter?<br> Yes <input type="radio" name="tos" value="yes"> No <input type="radio" name="tos" value="no" checked> Do you agree to our <a href="">Terms of Service</a>? </td> </tr> <tr> <td></td><td><input type="submit" name="register" value="Register"></td> </tr> </table> echo; include("footer.php"); ?> Code (markup): Prices: My prices are fairly cheap I charge per script, not hourly. If you need a quote, send me a private message and I will respond to you shortly.
I need an image hosting script within the next couple of weeks for a new project, let me know if this is something that interests you, please send me some more samples. Tom
Hi Brandon, Is that your sample of codes that you write? I would certainly remove all those 'font' and 'center' tags if I were you. Just my humble opinion.
yeah, it looks unprofessional and as of HTML 5, those functions don't really exist, that should be left to CSS(which im sure your aware of)
Well, it's not just the tables he's talking about. He was mentioning that the font and center tags, neither of which exist anymore; they've been depreciated.
Oh, and I'd like to add, for the benefit of monkeyhosts and his clients: All the talk about tags was nitpicky. They have nothing to do with his ability as a coder; probably just an old snippet. Don't let that affect your decision to hire him.
Hi I am looking for a php programmer to upgrade an affiliate system network, do you have experience with sms ??