RussellReal
Members-
Posts
1,773 -
Joined
-
Last visited
About RussellReal
- Birthday 05/30/1990
Contact Methods
-
AIM
RussellCrevatas
-
MSN
RussellonMSN@hotmail.com
Profile Information
-
Gender
Male
-
Location
Tobyhanna, Pennsylvania
RussellReal's Achievements
Member (2/5)
1
Reputation
-
Duly noted, however, I feel that certain things like this don't affect your site in the slightest, and should be cross-browser compatible. If it takes you an extra 3 seconds to do this, and have a larger audience see it exactly the way it was intended to, I honestly see no harm in it. If it was a 4 hour fix for IE6, than yes, its most likely better to drop support for IE6. Unless ofcourse IE6 is a requirement, there are a lot of what-ifs out there. The bottom line here really is that as you're developing a website from the ground up, knowing what is or isn't fully supported is the key to NOT having to do as many fixes in the long-run, almost all of my work is IE6+ compatible, but I mark it as IE7+ compatible, because I look forward to the day that IE6 is not even remembered anymore, however, it is still there now, as much of a shame as that may be. - Russell
-
good practice with multiple forms on a page
RussellReal replied to 1internet's topic in PHP Coding Help
Yes, that approach is what Jessica outlined in her post and I outlined in my follow-up post. - Russell -
good practice with multiple forms on a page
RussellReal replied to 1internet's topic in PHP Coding Help
Yes, but the only reason people will use the same page to process form data is if they're trying to use the form data collected in targeting erroneous fields. (For example: Long Profile Detail Pages -- which should use AJAX of some sort to be quite fair) While that is a decent approach, for that application, in almost every other application its best to process on separate pages, atleast in my professional experience. - Russell -
good practice with multiple forms on a page
RussellReal replied to 1internet's topic in PHP Coding Help
Nope, usually on Error you will forward the user back to the page with the form like: header('Location: index.php?err=1'); -
good practice with multiple forms on a page
RussellReal replied to 1internet's topic in PHP Coding Help
Well, I'll be quite fair, if you're going to be submitting multiple forms or just 1 form, you're best running the processing code in a separate file "process.php" or similar. The reason I say this, is because if you use the same page as the recipient, its very hard for you to avoid accidental form resubmission (hitting the refresh button) You could also use the same page as the processing page (If you absolutely MUST) aslong as you redirect the user to a "confirmation" page, and get them away from that page AFAP (sounds dirty huh!) But to answer your question, yes -- running your form processing code before ANY character data (even spaces and new lines) will avoid the "headers already sent" error, but if you echo, print, etc, information to the browser before you call header() you will receive that error anyway. - Russell -
Jessica, that is not necessarily a cross-browser solution at the moment. (IE6 Is almost out the door completely, however, a large population around the world still uses IE6 -- Don't believe me, check out the IE6 map created by microsoft themselves.) It would be best to give the "for" attribute value to a class like Jessica originally suggested, for best results across all browsers. - Russell
-
Getting Multiple elements to light up when hovering over another
RussellReal replied to Pentacore's topic in Javascript Help
You cannot JUST use CSS and HTML for this. Unless everything you have in mind for getting changed during this hover, is within the hoverable element, it will not work. abc:hover is now focusing on ABC which is currently being hovered, so any extra stylings such as: .ahri:hover .frizz { } will not work if .frizz is not within the .ahri element. what I will suggest however, would be to use javascript and onmouseover and onmouseout toggle the appropriate class names to be appended to the intended elements. If you need any help, I will gladly help you for free, if you add my skype: RussellReal - Russell -
okay, well, if it works for the other two filters, then maybe you're supplying the wrong column id?
-
Hey, anytime, thats what we're here for! Can you please mark the topic as Solved! Thank you kindly, Russell
-
Have you checked to see if getSimList() pulls the proper data? Hop on google chrome and do a console.log() on the variable in there before you process it or return it..
-
Pounds doesn't use $usd in the calculation, infact it doesn't use $pound in the calculation for pounds.. I'll explain:) $pound=$price*$euro; $pound=number_format($pound); $euro never gets changed, $price changes in the increment the you want it to (from the loop) so everything is controlled properly in this $usd=$price*$usd; $usd=number_format($usd,2); $usd IS getting assigned to the value of ($price * $usd), $usd originally (before the first loop), $price is controlled it increments the way you want it to. AFTER the first loop $usd will equal something absurd and will screw up your calculations.. try this code instead: if($pound==0 && $price >0 && $price <90000000){ $pound=$price*$euro; $pound=number_format($pound); $usd2=$price*$usd; $usd2=number_format($usd2,2); $price=number_format($price); echo "<p>£ $pound approx</p><p>US $ $usd2 Approx </p>\n"; }
-
Unique Task Needed... Local Db Data To Remote Db Data
RussellReal replied to gorgon2k's topic in PHP Coding Help
If it is a local server that your Client operates, he should be able to give you access to it. If he is able to give you access, you can most definitely connect to that "local server" as a remote server, as local to your php script the server that it is on is "local" and anything NOT LOCAL will be remote. You will not need a cron job if you have direct access to the local server's database, The local server will most likely need static IP and it will need to accept remote connections, if it doesn't accept remote connections you will need to configure that, you can do this thru ftp with the database configuration files, you could even do it with SSH, but that has a bit of a learning curve! If your client does not have access to this local server or he doesn't own it, I wouldn't take the job, because if you do parse the site, you're stealing their bandwidth. and although they will most likely not attack you for it, you are definitely doing something unethical, and they CAN come after you for damages if you do get discovered. - Russell -
Please enclose your javascript in a code tag and your php code in a php tag, I would love to help you but I find this post a little hard to read -- sorry . - Russell
-
You are compounding $usd You should if anything set $usd back to zero after the output, or it's default value, after the output! You're welcome <3 - Russell
-
php itself has functions which do this aswell, stream_select to name one