Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Daemon Byte

Members
  • Joined

  • Last visited

Everything posted by Daemon Byte

  1. 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
  2. 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
  3. 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
  4. 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.
  5. I'm to old so I guess I'll have to stay with the UKWDA
  6. 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.
  7. 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.
  8. 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?
  9. no problem. I spent enough time on irc and in boards seeking help. still do often enough
  10. 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
  11. i installed and ran this really easy both in work and here
  12. could be. I don't know where he got it from. it's useful whatever
  13. 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
  14. 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
  15. 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>'; } ?>
  16. 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 '
  17. 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?
  18. america? Is that the big desert in the south pacific?
  19. 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>
  20. 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.
  21. then you're not showing us all the code. I put it on line 2 :-)
  22. <?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.”; } ?>
  23. saves you altering the code later if you alter the database.
  24. 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.
  25. cool I shall add it to my opera search later when I'm home

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.