-
Posts
14,780 -
Joined
-
Last visited
-
Days Won
43
Everything posted by .josh
-
ive said nothing snippy. i have done nothing more then explain my point of view. "I just learned a neat trick and I want to show it off." is more snippy then anything i have siad. please dont start trying to get my thread closed, if it makes you uncomfortable i disagree with you then stop posting on it. I don't have a problem with you disagreeing with me. But responding to "you should do xyz" with "I think I know what I'm doing, I'm a master" is a snippy way of disagreeing. I don't even care if you wanna be snippy about it. I didn't say "don't be snippy or I'll close the thread." I said, "If you're going to respond like that, why bother even asking for people's opinions?"
-
you asked for opinion and I (and others) are giving it. No need to get snippy about things. If you are going to respond to criticism by saying you know what you're doing because you mastered blahblah why bother making a thread like this? Makes me think you're really just looking for a pat on the back.
-
Do you really feel that shadowed tops and bottoms are more important than showing the most relevant, appealing info first? If the user is scrolling down, it's to look for relevant information, not to notice random things like that. IMO your reasoning screams "I just learned a neat trick and I want to show it off." You should be putting those "neat tricks" into your actual work. Your website should show off your skills, yes, but that is not the primary purpose of your portfolio/business site. Also, I feel your page is a bit cramped. If you really wanna make it that small, I suggest having a single, bigger preview image for each site, have only 1 show at a time, and have simple prev/next arrows that slide the next one in.
-
we are working on a snippet repo for the main site.
-
you are getting the exact same error on the exact same line?
-
actually if you are just looking to only replace a single quote, use str_replace
-
so when you are saying it is dying now, do you mean that TEST is still not displaying, even though you moved it below the echo? That means your condition is not evaluating true. do you have session_start(); somewhere before that condition? If so, echo out your session var, does it hold what you expect (and it is higher than 2)?
-
$start = $_GET['start']; problem is first time around there isn't a value for $_GET['start'] so it's undefined. You can get rid of it by assigning a default to $start if $_GET['start'] doesn't exist: $start = ($_GET['start'])? $_GET['start'] : '1';
-
No. I agree that "the catholics" should be spending less money on material things and more money on helping out the needy. But you are answering the proverbial "why is religion bad" argument by stating things that every other institution out there is also 'guilty' of, so at best, your arguments are weak, at worst, you're just being biased. And btw, yes, I do notice you saying catholicism isn't a religion...several times; I guess we could spend all day arguing back and forth on that, but that doesn't really matter for what either one of us are trying to say.
-
...and your point is...what? MY point remains the same: Which the overall point is, if you acknowledge that religion is not the only institution that does this, why even use it as an argument? The only logical reason I can currently come up with is that you do single religion out for these things. But I'm trying to give you the benefit of the doubt, which is why I'm asking for your point and reasoning for pointing the finger at religion for these things, even though they clearly do not "corner the market" on these things.
-
Well, religions do market themselves as an authority on morals and kindness and nobody else does?
-
True, but I like getting that look from people. It's incredibly fun behaving in a way that goes against the stereotype. My college career - aside from my studies and homework - was an exercise in trying to get a rise out of random people. It was a damn funny portion of my life. hmm...so if you are saying that your response is not the (stereo)typical response, what is the (stereo)typical response?
-
How to disable radio buttons after certain amount of time
.josh replied to doforumda's topic in Javascript Help
You can use setTimeout() to call a function after x time that will change them to being disabled. Note: You will have to add id attributes to your form elements so you can use getElementById() to change the state of them to disabled. Note: Doing all this is not foolproof. Pretty easy for user to sidestep javascript. The more ideal method would be to use php to start a session and store a "start" time and upon form submission, use php to compare the current time to that start time. In other words, use server-side validation, not client-side. -
didn't say you did. That was my way of pointing out that even though religion does not corner the market on that sort of thing, for some strange reason the only time I personally see it brought up is when referencing religion.
-
yeah because the catholics are the only rich people in the world not helping out the poor.
-
href automatically calling php function without click.
.josh replied to rxgvhqkrywq6cxdjoar's topic in PHP Coding Help
php is server-side. It parses and sends results to the client. You cannot make it wait to call the php function until you click it like that. You have to call a javascript function instead, and in that javascript function, call a php script that executes the function. -
starting a session automatically tries to create a cookie to store the session id. Failing that, the session ID can be passed via the url. Or manually doing it by storing and retrieving a session id in a flatfile or db and manually setting the session id.
-
You mean something like this? function getFullURL() { $protocol = $_SERVER['HTTPS'] == 'on' ? 'https' : 'http'; return $protocol.'://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; }
-
yeah you're right. that's how I understood it in my head; not very good at translating that to paper though
-
Do you have session_start(); at the top of all pages?
-
the problem with your OP code: if(!ereg('[^0-9]', $string)) is that it's a "double negative". You have a negative char class looking for anything NOT 0-9. So ereg will return true if there are no numbers in it. But then you turn around and have a ! in front of it. So basically overall the condition will evaluate true if there IS a number in the string. But anyways, as someone else pointed out, ereg is deprecated.
-
you cannot disable the browser's back button, even with javascript.
-
I have registered domain names through godaddy ( I don't actually use them as a host). Have used them for a couple years now, haven't had any issues.
-
illegally downloading roms and emulators makes pandas sad.