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.

Sono Juventino

Members
  • Joined

  • Last visited

  1. Wickham: Thank you. I've used the Fontsquirrel generator for different font-type, yes. If it look different from Arial, it's probably right. The site is still work in progress, so I'm aware of that some of the headlines are huge. This is how it should look for you. (clickable image) Good to hear the site is loading fast. For me, the fonts are loaded every time, causing huge load-time. I know the fonts are at fault. Tried renaming the font directory, and the page loaded nicely again. The font files are not cached properly. I think that's the problem. Any suggestions? Opera 10.63 for me to.
  2. Hey I'm currently developing a site using Paul Irish's Bulletproof @font-face syntax Actually, my body text is currently set use a font-face that I've uploaded. It works fine in all browsers except Opera. Opera is loading for a very long time, and this is obviously making the site pretty unusable. Do anyone have a trick for this, or an hack for Opera browsers? It's currently far from finished, but how does this page load for you? Thanks for any help.
  3. Not to ruin this topic, but I think it makes sense to use three input fields. That leaves out trouble like date format and date syntax. (dd/mm or dd.mm etc. don't know if syntax's the right word)
  4. rallport: Again. Why use preg_replace when checkdate() is the perfect tool for the job? Cool jQuery though. I need something for birth dates. They are most commonly in the range of 1970-1990. Got anything that fits my needs better? PM me. Thanks
  5. //Filter everything but numbers 0-9 $birth_month = preg_replace("#[^0-9]#i",'',post_get('month')); $birth_day = preg_replace("#[^0-9]#i",'',post_get('day')); $birth_year = preg_replace("#[^0-9]#i",'',post_get('year')); Use checkdate instead: - Note that checkdate uses month, day, year for checking a date. You can of course still edit $date to your needs. The genius about checkdate is that it actually check for a REAL date. 30 February NEVER exist, and is therefor failing validation. So does .1, xx, 33, 99.99.999 and so on. // check date if (!checkdate((int) $_POST['month'], (int) $_POST['day'], (int) $_POST['year'])) { $errors[] = 'not a valid date'; } else { $date = $_POST['year'].-$_POST['month'].-$_POST['day']; }
  6. Yeah, I know that know. I've learned a lot on coding PHP since that comment. I'm filtering content based on isset() and !empty() if so, I'm using mysqli_real_escape_string and strip_tags on text, ctype_digit() for numbers, checkdate() for dates and so on. If you want to learn PHP, I recommend VISUAL QUICKPRO GUIDE: PHP 6 AND MYSQL 5 FOR DYNAMIC WEB SITES by Larry Ullman. It's just f***ing great! Even if PHP 6 is not a stable release, you'll learn a lot from it. It teaches you all a noob would need to know of the basics. Best book I've come across on PHP.
  7. I wrote "Please, please correct me if I'm wrong" for a reason. I asked you a question, and as a more experienced developer, you should educate instead of making a fool out of me. I will of course read about sanitising as I want to learn. What I'm trying to explain here is this: it would be better to list a couple of functions in php for sanitasion and filtering, link to good articles etc. As I've said before. I struggle to trust a lot of sources on PHP simply because I don't know the "best practices". A lot of articles seem outdated, and when I try to validate an opinion on how to do something, I often end up with several different answers. So, rallport: Please help a beginner out with a starting point for learning about this.
  8. Wickham: Thank you very much. I will take a look right now. This seem to be perfect for what I want to achive! Regarding security: Is it just me, or do PHP developers tend to focus to much on protection the input code rather than determine what's allowed in the database? You won't be able to overwrite an ID as long as it is a primary key, set as unique or you are using foreign keys to keep data in different tables the same. For numbers, you only allow integers, and so on. Doing that, you won't have to think about escaping all your code. As far as I've understood so far, the problem seem to be varchar type or field types where you are allowed to use a lot of different characters. I understand that these need escaping, but my point being: Why not set up you DB a little better in the beginning? It will save you a lot of security tests. Please, please correct me if I'm wrong here. Password protection: I know. I will defiantly look into this if I ever plan on publishing some of my code. As for the time being, this is sort of a hobby project. I realize that once I've finished the first version of this code, I will probably rewrite it because I've learned during the coding. That is what I'm planning on.
  9. Hey I'm struggling with resources for learning PHP. The manual is of course a great reference tool, but is there a resource explaining how you do explicit things? Like how to create a function for editing database input? I just can't read the whole PHP manual and figure it out function by function. What I would like to learn right now: I'm working on a form for adding football players to a database. That is simple. But how do I edit for example the player "Alessandro Del Piero" with a shirt number of 10 or an ID of "2"? I want to write a function where I can edit players through an url lik ...players.php/edit/id2 or player.php=edit?id2 Hope someone can help me out. Hopefully give me a link with lots of these hints and tips. Php security, best practices, ect. Something like a Smashing Magazine for PHP, that is up to date. All the sites I've fround seem a little outdated. Or maybe I should buy a book? Or an e-book? Any help is welcome!
  10. planetabstract: Thank you very much. That did the trick.
  11. Hey all Trying to add a date into a MySql database. $born ouputs the date in the right format, but it doesn't get sent to the database. All the other inputs is saved though. Why? The field born uses a date type HTML: <div class="row one"> <div class="legend"> <label for="born">Fødselsdato</label> </div> <div class="value"> <input id="day" name="day" maxlength="2" type="text" title="Legg inn dag" /> / <input id="month" name="month" maxlength="2" type="text" title="Legg inn måned" /> / <input id="year" name="year" maxlength="4" type="text" title="Legg inn årstall" /> </div> </div> PHP: $born = $_POST['year']."".$_POST['month']."".$_POST['day']; mysql_query(" INSERT INTO ... (born) VALUES( '$_POST[$born]' )") or die(mysql_error()); Hoping for some help.
  12. DesignCommunication: 500-300 Unique Visitors each day. We are not a very large website. Lev: Thank you very much. Could you possibly explain shortly why you think our original design is better? Could you also point out the originals shortcomings and tell us what you didn't like about V4? We are always looking for ways to improve. Hoping for even more feedback.
  13. Hello friends I would like some feedback on our new mock-up for our front page. Hope you can help us improve this further. Mock up: Juventus Norge V4: - The image below is click-able: Previous mock-up: http://dev.juvenorge.com/images/15.png Current website: http://juvenorge.com So... What do you think? Thanks in advance!
  14. I've not experienced any problems yet, but I have a pretty good connection. How's the loading time for you? http://dev.juvenorge.com/

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.