sKunKbad
Members-
Posts
1,832 -
Joined
-
Last visited
-
Days Won
3
Everything posted by sKunKbad
-
No, you can't have more than one charset per page served. I might be wrong, but I think you are going to have to have your user select which language he/she prefers, save it in a cookie, and then serve up all of the pages with that charset.
-
Yeah, I don't think I'm going to get it. It does seem like a sensible deal, but I'd be eating soup for the next couple of weeks.
-
Lynda.com's training videos look nice, but this ebay listing comes with Flash too... I'm still thinking about it.
-
I can't decide whether the price is good or not for this Flash with some Total Training videos: http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=110300878116 I've done a little work in Flash, but nothing extensive. I've heard good things about Total Training, but not specifically for Flash.
-
You would do this with php, by detecting that the form was submitted. You can do this in numerous ways. A common way to detect if a form has been submitted is by checking for GET or POST arrays. For instance: if($_POST){ // show the "changes have been saved" dialog }else{ // show the form }
-
Simple 2 column layout but overlapping in Firefox!?
sKunKbad replied to wemustdesign's topic in CSS Help
just add: overflow:auto; to #wrapper -
PHP Security, protecting from sql injections etc.
sKunKbad replied to Shaun's topic in PHP Coding Help
I think you should take a look at this PHP security video: http://videos.code2design.com/video/play/PHP/11 It is about 45 minutes long, and is very nicely done. -
I would search the internet for "php email client". There are a lot of them to choose from.
-
Page 1. You could build an advertisement webpage that a user could sign up for more info on a certain product. Leads from users who sign up could be distributed to employees who contact them. Leads are rotated between X amount of employees. Page 2. User interface for employee who log in, and update contact details and last date contacted. Page 3. Admin page to see all leads, so that admin can check details/progress of leads. Login required of course. Page 4. (this probably should have been page 2) When a user submits a lead, they are brought to a "thank you" page if all of the form fields validated and passed filtering. "Thank you" email is also sent automatically to email address used when filling out the form. Page 5. If users who signed up for more info are contacted by an employee, and agree to pay for "the program", the database is updated by the employee, and a membership welcome email is sent with login/password to members only area.
-
Actually, that's only how browsers do it if you let them. I use a browser reset stylesheet so that the browsers have no control of the style of anything without my say so. The one that I use is: http://yui.yahooapis.com/2.5.0/build/reset-fonts/reset-fonts.css
-
I'm not 100% sure what you want to acheive, but try: #mainbodytext{ float:left; text-align:justify; width:900px; clear:both; margin:auto; background-color:#282425; }
-
I only knew about the gzip issue because I dealt with the same issue about 2 weeks ago.
-
This rewritecond/rewriterule set redirects to the query-string version of /test/good_url.php to the non-query-string version. How come [NC] doesn't work? If I try to go to test/gOOd_URL.php I get a 404 error. I tried using [N,R=301] on the rewrite rule itself, but that didn't make a difference. Here's what I have: RewriteCond %{THE_REQUEST} ^GET\ /good_url\.php.*\ HTTP/ [NC] RewriteCond %{QUERY_STRING} !^$ RewriteRule ^good_url.php(.*)$ http://www.yourdomain.com/good_url.php? [R=301]
-
I know you don't need to call session_name or session_id, but he is in his code. I am very interested to see what the fix is in the end.
-
According to the php manual: Description string session_name ([ string $name ] ) session_name() returns the name of the current session. The session name is reset to the default value stored in session.name at request startup time. Thus, you need to call session_name() for every request (and before session_start() or session_register() are called).
-
Maybe I'm wrong, but I think you need to call session_name() and session_id() before session_start().
-
But he has that background (the blue bar thing) that fits nicely with the current position of the menu. I'd say keep it. I'm not talking about the position of the menu on screen, only in the code itself.
-
Moving the code for the menu to the bottom of the code would bring your real content more towards the top (which is important).
-
First you might try adding the header for css to the top of the php: <?php header("Content-Type: text/css") ?> IE6 definitely has a problem with gzip compression. If you have gzip compression turned on, this is almost for sure the reason why IE6 has issues.
-
PHP function checkdnsrr() and Mac OS X Leopard
sKunKbad replied to super3td's topic in PHP Coding Help
Sounds like your DNS is messed up. I run a linux server, and it is unix-like, same as OSX. Check your files: /etc/hosts /etc/resolv.conf Post the contents here if necessary. -
most sites that track users and display who is online show who is online every 5 minutes or so, so you could do the same if you search your database for users who have timestamps that are within a range of the current time to the current time minus 5 minutes. Your query would be something like: "select * from userLog where lastPageLoad >= ($currentTime - 300)" THIS IS OBVIOUSLY NOT A REAL SQL STATEMENT, but with some work on your part, you could make an sql statement that does work, and displays who is online semi-accurately.
-
Please rephrase the question. This makes no sense at all.
-
Maybe you can try putting all of your session scripting in an include, and then include_once(); on each page that needs sessions. If the session scripting can only be included once, this may take care of the problem.
-
You spelled height wrong. CSS does not allow for spelling mistakes. I replaced your span with: <div id="logo" style="height:185px;"><a href="index.php"><img src="images/logo.jpg"></a></div> and everything looks good in FF3