@green: Yes, it works.
@Dormi: In what way is it overcomplicatin g things?
User Profile
Collapse
-
Is this class unsafe to use in my public PHP-scripts?
I have no idea if it's safe to use or not, so I have to ask you.
Code:class Requests { private $type; public function __construct($type='') { $this->type = strtolower($type); $this->createObject(); } private function createObject() { switch($this->type) { case 'post': $arr = $_POST; break; case 'get': $arr = $_GET;
-
NetDynamic: That's the best solution for centering something horizontal, and doesn't work when you want to center something vertically.Leave a comment:
-
I can reccomend JWPlayer, in addition to flowplayer. http://www.longtailvideo.com/players/jw-flv-player/Leave a comment:
-
There is no problem inserting whatever you'd like into CSS, as the CSS-parsers only fail if a declaration isn't well-formed. This is CSS that neither make a CSs-parser crash, nor style the element:
Code:element { give-color-to-background: red and blue; }
Leave a comment:
-
JKing: That's true. I should have included it, but I forgot.
I'll edit my post and add a function to check that the email is valid. [done]Leave a comment:
-
I think that adding this inside at the end of your foreach-loop will fix your problem:Code:$counter++;
Leave a comment:
-
You should read up on the PHP-class called SimpleXML. It's not really simple, but easier to understand and work with than creating your own way to parse your XML-files. http://php.net/manual/en/book.simplexml.phpLeave a comment:
-
@drhowarddrfine :
There are more browsers out there than Safari, Google Chrome, Firefox, Opera and Internet Explorer. Also, as of IE9, IE supports border-radius. (Source: http://stackoverflow.com/questions/6...r-radius-in-ie).Leave a comment:
-
-
You do it this way:
Code:<textarea name="quest" id="quest" rows="10" cols="100">gggg</textarea>
Leave a comment:
-
It's not supported in every browser on the planet, but quite a lot of browsers does support it. Use this code:
Code:#your_box { border: 1px solid black; /*the box NEEDS to have a border for this to work. The border color can be the same as the background-color.*/ -moz-border-radius: 30px; -webkit-border-radius: 30px; border-radius: 30px; }
Leave a comment:
-
Markus Igeland replied to What html code do I use to offer viewers text size options (ex., sm, med, lg text)?in HTML CSSThis is a solution using jQuery, and my preferable way of doing it (because it's small and fast and everyone on the Internet already have jQuery in their cache).
CSS-code:
Code:.smalltext { font-size: small; } .mediumtext { font-size: medium; } .largetext { font-size: large; }
Code:<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"
Leave a comment:
-
As far as I know this is not possible. But, if you use this HTML and PHP, it'll be possible:
Your HTML-file (contact.html)
Code:<form action="mail.php" method="post"> Name: <input type="text" name="name"><br> E-mai: <input type="text" name="email"><br> Comment: <br> <textarea name="comment" cols=50
Leave a comment:
No activity results to display
Show More
Leave a comment: