sKunKbad
Members-
Posts
1,832 -
Joined
-
Last visited
-
Days Won
3
Everything posted by sKunKbad
-
I use Yahoo! YUI css reset. This little stylesheet makes most browsers (even IE) behave very similarly. By using this, I make my life much easier. If you look at my website source code, you will see the link to the yahoo stylesheet. I agree with wildteen88. You shouldn't need hacks, and if you do then you probably need more practice with CSS.
-
You could make their content appear in an iframe, and then even if they have coding mistakes, I believe there will be no effect on the rest of the page.
-
I'm testing the filter_input function, and need to return FALSE for testing purposes, but I don't know what to put in that will return FALSE. <?php echo' <form method="post" action="' . htmlspecialchars($_SERVER[php_SELF]) . '"> <label for="rn">Your name:</label> <input name="realname" id="rn" type="text"</input><br /> <input name="submit" type="submit" id="button" value="submit"></input> </form>'; $realname = filter_input(INPUT_POST, 'realname' , FILTER_SANITIZE_STRING , FILTER_FLAG_NO_ENCODE_QUOTES); echo ($realname == NULL) ? "realname equals null" : "realname does not equal null"; echo ($realname == FALSE) ? "<br />realname equals false" : "<br />realname does not equal false"; echo "<br /><pre>" . print_r($_POST) . "</pre>"; ?>
-
Your http header shows that the charset is utf-8, but when you view the page source it shows ISO-8859-1. Your php is set for a default charset, which can be changed or deleted in your php.ini file. If you don't do this you have a character encoding mismatch error. Once you know you are outputting only one declaration of charset, then use the one that is right for your chars.
-
Able to send limited data using curlopt_postfield??
sKunKbad replied to siddscool19's topic in PHP Coding Help
I don't know if it would effect this, but you might want to check your php.ini file and look for "max_post_size". -
When I was learning CSS, it took me a long time to grasp relative positioning using floating divs. Absolute positioning is useful at times, and also much easier to understand, but has many limitations. Try searching yahoo or google for "CSS float tutorial", and read as many as it takes until you understand.
-
I'm looking at it in FF and it looks fine, except that the page isn't exactly centered, I'd say you've done a good job. I'm not really in favor of using javascript the way you have. I would have probably used flash, and then you wouldn't have had to deal with all of the css.
-
Try this: <style type="text/css"> <!-- BODY { background-color: #025E8E; } #container { margin: 10px auto 10px auto; width: 1000px; } #box { float: left; margin: 0px 5px 5px 5px; background-color: #ffffff; border: 1px solid black; font-size: 10pt; } .menu { width: 200px; } .center_content { width: 550px; } --> </style>
-
You should work on the 40 errors that are in the page (according to the w3c HTML validator). Once you have those worked out, your page may behave the way you want it to.
-
[SOLVED] mail() function is not working, any ideas?
sKunKbad replied to kratsg's topic in PHP Coding Help
This is actually pretty normal behavior. -
[SOLVED] mail() function is not working, any ideas?
sKunKbad replied to kratsg's topic in PHP Coding Help
Try sending a simple mail: <?php // The message $message = "Line 1\nLine 2\nLine 3"; // In case any of our lines are larger than 70 characters, we should use wordwrap() $message = wordwrap($message, 70); // Send mail('caffinated@example.com', 'My Subject', $message); ?> If something simple won't work, then the problem is the server, not the code. -
OK, so in styles_-_dmd.css, what the heck is this: #lt, #rt, #ctr, #lthdr, #rthdr, #ctrhdr { padding-bottom: 32767px; margin-bottom: -32767px; } I changed the 32767 to a much lower number, and all that space in the footer is gone.
-
404 Not Found
-
[SOLVED] Getting the main content of a page to span top-to-bottom
sKunKbad replied to ShootingBlanks's topic in CSS Help
Sometimes you need to apply a background color to HTML in your stylesheet. You might be applying it to the BODY, but that is sometimes not enough. I have had this problem in the past. html { background-color:#f4edad; } -
I tested with Firefox 2 on Win XP Pro and works fine for me...
-
Help: Upload word document to MYSQL, print in HTML
sKunKbad replied to elis's topic in PHP Coding Help
If you could show the script you are working with, it might help. -
You should try running your SQL update statement directly in the MySQL command line or phpmyadmin to see if there is an error.
-
have you tried max-width?
-
You will either have to stumble upon a very generous person who is willing to fix your CSS, or adjust your own style.
-
[SOLVED] Transfer Variable from Vbscript to PHP
sKunKbad replied to abdfahim's topic in PHP Coding Help
Can vbscript post or set cookies? If so, you can easily get at the username that way. -
It sounds like this is all stuff done in the hosting control panel, and that it has nothing to do with the email script itself. Log in to your hosting control panel and check it out. If you need help, call the host. Yahoo is expensive as far as hosting is concerned. They owe you some phone support as far as I'm concerned.
-
I think you need to contact tech support at Yahoo. You shouldn't have to identify the sendmail path. The sendmail path is something that the admin changes. I did a website for a friend that is on yahoo hosting, and we didn't have to do that. I do believe we had to specify the -f option though.
-
1) instead of using /n try using <br /> 2) try changing your fopen mode from w+ to a+ 3) if you are going to record IP addresses, and then you are going to check against that record, you should be saving them as csv or using some delimiter. When you fread, use strstr to check for the IP match. This is really not the easiest or best way to do what you are trying to accomplish. Using mysql would be easier, but I realize you are just learning so at least check it out.
-
I don't mean to be a thread hi-jacker, but I'm interested to see what your working on. It sounds interesting. I tried to PM, but your inbox was full. It is still in the early steps of development and planning, but so far it represents a social networking website. Very different than facebook or myspace. The complex css models that I create include divs displayed as fix without a known height (need to center it vertically/horizontally), multi-part email (tables and css), multi layer transparencies, and javascript scripted div orientation. To be quite honest, I don't even know how to do half of these, but with a little use of ol' google and some css books I can probably manage. Sounds cool. I'm always excited to see designs that are innovative and go beyond the simple layouts.