-
Posts
234 -
Joined
-
Last visited
Never
Everything posted by matthewhaworth
-
<FORM NAME="sort" method="POST" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <SELECT NAME="earcode" <OPTION VALUE=""></option> <OPTION VALUE="ALL" selected="selected">Display all Earrings </option> <OPTION VALUE="E">Display only Earwire Earrings</option> <OPTION VALUE="P">Display only Post Earrings</option> <OPTION VALUE="L">Display only Lever back Earrings</option> </SELECT> <input type="submit" value="Display Selected Earrings"> </FORM> You're missing a '>' here: <SELECT NAME="earcode" . That's what lol
-
Perhaps the line was in there to begin with, before php dealt with it? Delete absolutely everything out of the xml file and try again?
-
Show the PHP?
-
<script language="javascript"> <!-- sfHover = function() { var sfEls = document.getElementById("side").getElementsByTagName("LI"); for (var i=0; i<sfEls.length; i++) { sfEls[i].onmouseover=function() { this.className+=" sfhover"; } sfEls[i].onmouseout=function() { this.className=this.className.replace(new RegExp(" sfhover\\b"), ""); } } } if (window.attachEvent) window.attachEvent("onload", sfHover); --> </script> I think it's in your javascript..
-
The offending tag is in the body properties: body { background: #000099 url(images/back.png) top center repeat-x; margin: 0; padding: 0; font: normal 8pt/13pt verdana, arial,sans-serif; /* THE 8pt/13pt IS THE PROBLEM */ } I'd make it 13pt, or .. 10pt cos 13pt looks too big, then I'd put whatever needs to be 13pt in a p tag wherever it needs to be bigger. p#biggertext { font-size: 13pt; }
-
Ok, I was a n00bie, then a forum regular, now I'm a forum helper, yeaa Smiley. But what's next, and what's the highest you can be? What does it take to be a moderator?
-
$id = 12; $_SESSION[$id] = true; echo $_SESSION[$id]; Outputs: true Simple answer? Yes, you can
-
Ask in the apache forum.. though I think it can be changed in php.ini too
-
I'm not the best with xml, but does that matter? Perhaps PHP just goes onto the next line ready to input data http://uk.php.net/manual/en/ref.dom.php
-
But it's not php :-(. Go to the HTML forum.
-
To be honest, I wouldn't use the double quote at all. Also, you're not really asking us for anything, unless the error was what you were after..
-
Wrong forum?
-
I hate to do this, but please read the FAQ/Code Snippet Repository before posting here: http://www.phpfreaks.com/forums/index.php/topic,95867.0.html
-
Thanks for the elaborate reply . All this is confusing me, I still think the interfaces are pretty useless, but meh. I have a method of doing it now that I'm not to keen on, but ill go with it.. the reason I'm not to keen on it is because I have a class called UserManagement that deals with registration, login, but when they login, it returns a class.. so I call it a KIND of factory.. all the functions are called like $usermg::Register(); but I don't know if it's a factory..
-
Ok, recently, as you can probably derive from the threads around this one, I have learnt a lot about, inheritance, abstract classes, interfaces and abstract factories.. After thinking a lot into I decided this is a possible option: I create a class called 'UserFactory' that returns either the admin or user class.. but i don't think that's efficient because where would the register and login methods go? In the factory? but then its' not just a factory :S. I create a user class, and usermanagement class, the usermanagement class deals with login, register, setsession etc, but the user class deals with stuff like, profile, pictureupload, etc..
-
Graphs are maths! I do not see why my thread was moved.
-
Has it been done before and is it possible?
-
I think you're using the wrong operator for your $user and $pass check, it's == not =