Jump to content
Stef's Coding Community

Rob in hood

Member
  • Content Count

    25
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Rob in hood

  • Rank
    Member

Profile Information

  • Location
    /\/????\/\
  1. I'll try and get a few other people to test it, see if anyone else has the problem or if it's only me. Thanks for all the help.
  2. http://harmonydesignsolutions.com/ (It's still a work-in-progress) edit: I asked a friend to try it out and it worked for him! (He's using a mac, I'm on windows, both using firefox)
  3. Should I phone up my hosts and ask them wth is going on? Maybe it's a php problem on their side?
  4. Form code: Name *: Email address *: Contact no: Message *: email.php: <?php //first make sure from is sanitary $from = $_POST["from"]; $from=filter_var($from, FILTER_SANITIZE_EMAIL); //this first cleans it, so that it contains the right kind of characters if(filter_var($from, FILTER_VALIDATE_EMAIL)){ //this checks the resulting clean address for well-formedness $to = "fdfdfd@gmail.com"; $subject = "Feedback"; //$message = $_POST["msg"] + ; reset($_POST); while (list($key, $val) = each($_POST)) { $message .= "$key => $val \n"; }
  5. Unfortunately, that is not the problem: I am filling in the form and then pressing submit. The html is sending the data method="post". The problem is that the first time I press submit, it's as if the .php file gets no POST data. I press back and press submit again - without changing anything - and then it miraculously works.
  6. It does seem like the $_POST is not filled on the first submit. What do I do to fix this? This code while (list($key, $val) = each($_POST)) { echo "$key => $val "; } prints out all the key-value pairs inside the $_POST. On the first run it doesn't print out anything, implying $_POST is empty. I can't see the reason why the $_POST is empty on the first go, but after I press back and Submit again it works as expected.
  7. It's a built-in PHP function. I learnt about it on w3schools. I was also wondering if that was what was screwing things up - but there's missing output in the error case: it's as if the form post data is not actually getting through on the first shot.
  8. I have some php code to send me an email with all of an HTML form's data layed out. I load up the page, type in some random stuff and press submit. I then get this response: The from address provided is invalid! I press back - change nothing - and click submit again, and then I get this: (the correct response) The from address provided is invalid! ff55@gg name => Test from => ff55@gg contactno => 050505 msg => MESSAGE The same thing happens when I put in a correctly formed email address. I first get the error, press back, submit again and it
  9. Thank you very much! That article was very informative. The sRGB thing seems to have been the problem. It turns out that FF and Safari take the colour profile into account, while other browsers don't - hence the weirdness across browsers. Thanks again.
  10. Is http://www.mindionmusic.com/ your website? I am not seeing the navigation you speak of. Can you post a link to the page with the problem?
  11. I am having a very weird problem with my background image. Its edges are all #080808 (verified in MS Paint and Photoshop). I have set this color in the CSS (see below). When Firefox renders it in Windows it renders the edges of the background image at #0c0c0c. When FF renders it in Mac, it does #0a0a0a. Opera in Mac renders it correctly at #080808. Safari fails. Internet Explorer 8 renders correctly at #080808. What on earth is going on? O_o :/ body { font-family: Helvetica, Verdana, sans-serif; letter-spacing: 1px; font-size: 19px; background: #080808 url(images/backgro
  12. Sweet, thanks Eric! You're a legend! You deserve some deliciously brewed coffee. :cool: Is there a better way to achieve this that is more compatible? Apart from that big background image method.
  13. I realised I should maybe post the CSS code. @charset "UTF-8"; /* CSS Document */ body { background: #1b1b1b url(images/bodytile.png) center repeat-y; margin: 0px; padding: 0px; } #container { width: 1010px; margin: 0 auto; } #header { background: #1b1b1b url(images/headertile.png) top repeat-x; height: 167px; } #leftcol { background: #1b1b1b url(images/bgleft.png) top right no-repeat; float: left; width: 5px; height: 500px; } #rightcol { background: #1b1b1b url(images/bgright.png) top left no-repeat; float: right; width: 5px; height: 500px; } #content { background: #e9e9
  14. I actually want the image to overflow the div. I want the overflow to get cut off by the browser window, instead of making scrollbars to show the rest of the image. The reason for this approach is so that the browser cuts off equally from both sides of the border for smaller screen resolutions. If I used fixed width border divs, then for small screen resolutions the border divs will make the browser have horizontal scrollbars. The alternate I know to this way is to make a big background image with both border pictures, and a big blank area in the middle, and set that image as the backg
×
×
  • Create New...