Technex
Members-
Posts
65 -
Joined
-
Last visited
Never
Everything posted by Technex
-
They are on my website, doesn't make a difference. (I wrapped this whole code here in a single div) Thank you.
-
Hi guys, long time no see. Getting back into PHP again. I have a question, I'm just starting on the basics of a log in system and I can't get this form to validate as XHTML 1.1 STRICT. Here it is, I want to be able to extract this data and use it in PHP, while staying valid. The code here is fine, it's just when I try to make any usable submit data out of it. <label for="inputUSERNAME">Username:</label><br/> <input class="input" type="text" title="Please enter your Username" maxlength="20" size="30" name="inputUSERNAME" id="inputUSERNAME" value="" /> <br/> <br/> <label for="inputPASSWORD">Password:</label><br/> <input class="input" type="password" title="Please enter your Password" maxlength="20" size="30" name="inputPASSWORD" id="inputPASSWORD" value="" /> Thank you very much.
-
I've worked on the site, and I am constantly. So ignore the above stylesheet. Thanks. You can't edit OP for some reason.
-
http://tactical-infusion.com/test/ How can I make my new style work in browsers other than IE7 and Firefox 2.x. On windows at least. Thanks! * { margin:0; padding:0; border:none; } html, body { height:100%; } body { font-family:arial, sans-serif; color:#000; font-size:82%; background:#ffffff; margin:0 3% 0 3%; } #header{ position:absolute; top:0; left:0; width:100%; height:120px; background:#0099CC; } #clearheader { height:130px; } #mainbody{ background:#CCCCCC; min-height:100%; padding-right:208px; /*Allow for content */ padding-left:200px; margin-bottom:-62px; /*Same as footer a/ for extra*/ min-width:500px; border-left:4px solid #b3b3b3; border-right:4px solid #b3b3b3; } /*#mainbodyshadow{ width:8px; background:#003333; height:200px; background-image:(); background-repeat:repeat-y; float:left; }*/ /*Temp out*/ #leftmenu{ float:left; margin-left:-200px; text-align:left; background:#FFCC00; width:200px;/*Change mainbody padding*/ list-style:none; list-style-position:outside; } #right { float:right; margin-right:-200px; text-align:left; background:#FFCC00; width:200px; } #content { background:#CCCCCC; width:100%; float:left; margin:0; padding:4px; text-align:justify; } #clearfooter { clear:both; height:115px; } #footer { border-top:1px solid #999999; width:50%; margin:0 auto; clear:both; height:60px; line-height:60px; font-weight:bold; text-align:center; position:relative; } View source for HTML please. Thanks ever so much guys!
-
Please reply if you would like any more info. Thanks ever so much!
-
I can't seem to edit my OP. But just to let you know the mainbodyshadow style was just a test one. I am just trying to get it to float to the left of the mainbody. View the live source for my added info.
-
Hello guys, I'm working on a new style for my website. And I'm currently trying to add a drop shadow to the right of the greay main body. It will be about 10-20px wide and I will make it 100% vertical. I would not like it to get in the way for smaller browsers. http://tactical-infusion.com/test/ I am aware it doesn't work in IE6 and under, and to be frank I no longer care... Works fine in FF and IE7. But if you know how feel free to help me. 100% CSS, fluid, sticky footer and 3 columns . With some help from Aneko. #mainbody{ background:#CCCCCC; min-height:100%; padding-right:208px; padding-left:200px; margin-bottom:-62px; min-width:500px; border-left:4px solid #b3b3b3; border-right:4px solid #b3b3b3; } #mainbodyshadow{ width:8px; background:#003333; height:200px; background-image:(); background-repeat:repeat-y; float:left; }
-
Sorry lemme explain it more. I already know how to limit the username by using this: $regusername = substr($_POST['regusername'],0,25); But if a user goes over this limit it just cuts there username down to 25 and doesn't tell them or stop them from registering. How can I display a error and stop the code? (by using a if statement if possible)
-
Maybe it's because your on a dynamic IP, or your ISP has just changed to that?
-
Try this: <input type="text" value="<? echo $name; ?>" name=newUserName>
-
Hey guys, please awnser as soon as you can if(empty($regusername|$regpassword|$regcpassword|$regemail|$regcemail)){ Parse error: syntax error, unexpected '|', expecting ')' in blah blah blah, what's the correct way of separating them preferably using | instead of & unless any other reasons why. Thanks very much!
-
[SOLVED] Speed/Usability Test: Recipe Database
Technex replied to atheimer's topic in Beta Test Your Stuff!
Slow but loads. 30-40 secs. -
Aquarium filtered 1 words in 0.01 seconds and found 0 bad words. Stats: 71 words per second, 0% bad words. Filtered Text: lolshit :S
-
Hey guys another big question(in my eyes) for you guys to answer if possible. I'm trying to work on my edit system on my site, after realising that a separate edit box wouldn't be possible under each message if the user had pressed edit on that post I decided on doing what all modern forums do, use a separate page to edit the corresponding post. So far I am using <a href='?action=edit&id=$row[id]'>Edit</a> under each post which works fine. I've got it displaying a edit box at the bottom of the main news page(index) but it's a little far away right down the bottom of the page. How can I do it like this forum and many others do? Thanks!
-
if($username==NULL{???????????? Won't work :( Thanks.
Technex replied to Technex's topic in PHP Coding Help
So am I, but it doesn't really help now does it? -
if($username==NULL{???????????? Won't work :( Thanks.
Technex replied to Technex's topic in PHP Coding Help
I've tried that already, it just still refreshes :/. I have a new idea do you think it's because when the form submits it goes to index.php? I'll try messing around with that now. <form action='index.php' method='post'> Edit: Also header('refresh: 0; url=/'); doesn't work with IE 7! :S -
if($username==NULL{???????????? Won't work :( Thanks.
Technex replied to Technex's topic in PHP Coding Help
I like this code, just doesn't show empty forms... if(empty($_POST['username'])) { $errorusernamenull=1; echo 'Bad username'; } if (isset($_POST['username']) AND isset($_POST['password'])){ $username = mysql_real_escape_string($_POST['username']); $password = mysql_real_escape_string($_POST['password']); $db_password = hash('sha512',$password); $checkusername = mysql_query("SELECT * FROM users WHERE username = '$username'"); $checkpassword = mysql_query("SELECT * FROM users WHERE password = '$db_password'"); if (mysql_num_rows($checkusername)==0){ $errorusername=1; } if (mysql_num_rows($checkpassword)==0){ $errorpassword=1; } if ((mysql_num_rows($checkusername) == 1) AND (mysql_num_rows($checkpassword) == 1)){ $getuserinfo = mysql_query("SELECT * FROM users WHERE username = '$username' AND password = '$db_password'"); $userinfo = mysql_fetch_array($getuserinfo); setcookie(id, $userinfo[id], time()+60*60*24*30, "/");//30days setcookie(password, $db_password, time()+60*60*24*30, "/");//30days $ip = $_SERVER['REMOTE_ADDR']; mysql_query("DELETE FROM guests WHERE ip='$ip'"); mysql_query("UPDATE users SET status='1' WHERE id='".$userinfo['id']."'"); header('refresh: 0; url=/'); } } -
if($username==NULL{???????????? Won't work :( Thanks.
Technex replied to Technex's topic in PHP Coding Help
Nope doesn't work. I've even copied and pasted all the posted codes, still doesn't :/. Oh well... Guess if people are dumb enough to put nothing in the form then they shouldn't be on the site... Thanks though, very much. -
if($username==NULL{???????????? Won't work :( Thanks.
Technex replied to Technex's topic in PHP Coding Help
Yeah I did, it just shows nothing, almost as if the code doesn't even get run... Strange eh? -
if($username==NULL{???????????? Won't work :( Thanks.
Technex replied to Technex's topic in PHP Coding Help
It shows nothing, just refreshes the page. But if I put it after if (isset($_POST['username']) AND isset($_POST['password'])){ it then tells me the password and username. Thanks still . -
if($username==NULL{???????????? Won't work :( Thanks.
Technex replied to Technex's topic in PHP Coding Help
Hello guys, it's still not working I'm afraid . http://84.26.66.197/ It just refreshes the page. Username: test Password: test Try it yourself leave the username box empty, it should echo "bad username"...