Everything posted by Daemon Byte
-
UK Young Internet Alliance
the designers do use lorum ipsum. But they design sites like printed material so forget that font sizes grow larger for hard of sight people or that clients don't write in exactly the amount of words they designed for :-) But no trying to get clients to write something decent is annoying and it only get's worse on the internationals because you have translations to match up
-
UK Young Internet Alliance
unfortunately when the MD is a designer then runs design and development as two legally seperate companies guess which one gets screwed by the other little darlings that can do no wrong :-\ Doesn't stop us moaning at them all the time though
-
UK Young Internet Alliance
you're assuming it a group of competant designers Besides if I've learnt anything it's that designers differ greating on what's good and not, have an obession with bevels and hate all forms of critism. maybe it's just the bunch we have here
-
UK Young Internet Alliance
While on that point when the validation is failing because of things like alt tags missing and that grey on black you're completely ignoring accessibility factors. Something that's becoming hugely important on the web but is largely ignored and really should be getting pushed, particularly to new and younger designers.
-
UK Young Internet Alliance
I'm to old so I guess I'll have to stay with the UKWDA
-
CSS Div Hover how to do I make Div's Hover effect?
There is no harm in using such tools to aid you as long as you understand what they are doing. Well unless it's frontpage then you deserve your fingers lopping off for crimes against humanity Personally I avoid them all because they mess up my way of doing things but I see no harm in using them if they help you.
-
How to send multiple forms together?
most likely but if it can be done then that's how. I still can't think of a single reason for having many forms like that. The only point of seperate forms is seperate submissions.
-
How to send multiple forms together?
you can use javascript to trigger all the forms. Create a button that calls a javascript function. then in that function do function submitform() { document.form1.submit(); document.form2.submit(); } that MIGHT work but you really shouldn't be submitting many forms. what do you mean you only have this id?
-
Basic PHP Login System
no problem. I spent enough time on irc and in boards seeking help. still do often enough
-
css on hover in ie6
can somebody tell me why my menu doesn't work in IE6? http://www.miccysoft.co.uk trying to imitate this one. got it to work before in work but can't do it at home
-
run all versions of IE from 4 on 1 computer
i installed and ran this really easy both in work and here
-
run all versions of IE from 4 on 1 computer
could be. I don't know where he got it from. it's useful whatever
-
run all versions of IE from 4 on 1 computer
It's hosted on my server so don't bomb it Guy in work sent it me so I thought I'd host it for you lot to try. setup
-
Basic PHP Login System
I'm just guessing but try <?php session_start(); if(!isset($_SESSION['sessioname'])){ $msg = 'YOU MUST BE LOGGED IN TO SEE THIS'; }else{ // stuff $msg = 'welcome '.$_SESSION['sessioname']; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>EggMan Designs - Affordable Quality Freelance Web Design</title> </head> <?php echo $msg; ?> <body> </body> </html> If that doesn't work check your browser is allowing cookies otherwise you could just be not getting the session cookie
-
Check if image is present - problem?
why are you checking to see if the field is empty after you check for the file? I cleaned up the code a bit so I could read it better but I fail to see what problem it could cause. can you produce a screen shot of what it should look like and what it does look like? <?php $page_title = 'viewnews'; require_once ('../mysql_connect.php'); // Connect to the db. $imagesize='height="100" width="100"'; $alignright='right'; /// selected everything from db $query = "SELECT file1, news, heading FROM newspage"; $result = @mysql_query ($query); $num = mysql_num_rows($result); if ($num > 0) { // If num echo '<a name="top"></a>'; echo '<div id="maincentredbig">Latest news</div> '; echo '<br /> '; while ($myrow = mysql_fetch_assoc($result)) { //While $newsText=(htmlspecialchars(strip_tags($myrow['news']))); $firstImage='uploads/'.$myrow['file1'].'.jpg'; $file1db=$myrow['file1']; echo '<br /> '; echo'<p class="bold" align="left">' .$myrow['heading'] .'</p>'; if (empty($file1db)){ echo'<p class="alertHd" align="left">' .$myrow['news'].'</p>'; } else if(file_exists($firstImage)){ echo '<p class="alertHd" align="left">' .$myrow['news'].'<img ' . $imagesize .' src="uploads/'.$myrow['file1'].'" align="'.$alignright .'"/></p>'; } else { echo'<p class="alertHd" align="left">' .$myrow['news'].'</p>'; } echo'<a href="#top">Back to Top</a>'; echo '<br /> '; echo'<hr />'; } //End of while } //End of if num else { /// if db not run display error echo '<table align="center" cellspacing="0" cellpadding="5">'; echo'<td><span class = "style1">Sorry, no records found!</span></td>'; echo '</table>'; } ?>
-
Basic PHP Login System
the exit just ensures it doesn't continue past your redirect command. I removed the else only because you'd not want that line to echo out before the html code. what you did looks right. Just change the slanted quotes for single ones '
-
Check if image is present - problem?
fetch assoc is just the new way of doing it. fetch array is an old form unless you actually want it as an array. i can't see the screen shot?
-
HAPPY BIRTHDAY WDF!
america? Is that the big desert in the south pacific?
-
Basic PHP Login System
when anyone posts in a topic I'm subscribed to I get an email telling them what the post is. when I came here it was just a dot. What you should have is this. <?php ob_start(); session_start(); require_once "dbconfig.php"; $sql = mysql_query("SELECT password FROM users WHERE username='".addslashes($_POST['username'])."' LIMIT 0,1") or die("username was incorrect.".mysql_error()); $result = mysql_fetch_assoc($sql); if($result['password'] == sha1($_POST['password'])) { header("Cache-control: private"); $_SESSION["sessioname"] = $_POST['username']; header("location: protected.php"); exit(); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>blank</title> </head> <body> <p>Incorrect login details please try again.</p> </body> </html>
-
Basic PHP Login System
from what was in the email I was missing the crucial part. once you send html before php code it sends headers. it's best to run the php code before the html stuff.
-
Basic PHP Login System
then you're not showing us all the code. I put it on line 2 :-)
-
Basic PHP Login System
<?php ob_start(); session_start(); require_once "dbconfig.php"; $sql = mysql_query("SELECT password FROM users WHERE username='".addslashes($_POST['username'])."' LIMIT 0,1") or die("username was incorrect.".mysql_error()); $result = mysql_fetch_assoc($sql); if($result[’password’] == sha1($_POST[’password’])) { header(”Cache-control: private”); $_SESSION[”sessioname”] = $_POST[’username’]; header(”location: protected.php”); }else{ echo “Incorrect login details please try again.”; } ?>
-
Check if image is present - problem?
saves you altering the code later if you alter the database.
-
Basic PHP Login System
you might also find by putting ob_start(); in a script that's run before all the rest of the php you'll avoid problems as well.
-
HTML Entity Character Lookup
cool I shall add it to my opera search later when I'm home