Jump to content


  • Content count

  • Joined

  • Last visited

  • Days Won


Ingolme last won the day on May 18

Ingolme had the most liked content!

Community Reputation

884 Excellent

About Ingolme

  • Rank
    Foxy Mod

Contact Methods

  • Website URL
  • ICQ

Profile Information

  • Gender
    Not Telling
  • Interests
    Web development, drawing, videogames, foxes.

Previous Fields

  • Languages
    Java, PHP, MySQL, Javascript, CSS, HTML

Recent Profile Visitors

173,775 profile views
  1. Ingolme

    How to Replace an Insert from Another Insert

    I'm not sure what "from inside the div" means. Does that mean that the script that's doing the replacement is inside the div? As far as replacing the content of any element, you can either set its innerHTML property or use DOM methods such as removeChild() and appendChild().
  2. Ingolme

    cookie coding

    Remove the echo statement. The header has to be sent before any output, which includes all echo statements. In this case, the echo statement can be removed because the location header does the redirect. If you are working with sessions, you have to call session_write_close() before sending a redirect header.
  3. Ingolme

    cookie coding

    The PHP manual says prior to any output. The reason being that it has to be in the HTTP headers section. If you have studied the HTTP protocol it should be clear. An HTTP response consists of two sections: The headers and the body. The headers provide information about the data being sent, such as the amount of bytes, the file type and also cookies. After the headers goes two line breaks and then the body. The body is the actual file contents. In order to be efficient, PHP goes sending data back to the client while it is still processing, which means that as soon as any content is printed, whether it be HTML or anything else, it immediately sends the two line breaks and enters the body section of the HTTP response. Once those two line breaks have been sent it is impossible to go back an send any more headers to the client because whatever you send is going to be considered part of the body. While PHP is usually used to send HTML, it can also send any other kind of content, like image data, a video or an excel file. PHP can output content of any kind, so saying that headers have to be sent before the <html> tag just covers the specific case that the first part of your output is the string "<html>". The general case is that the headers have to be sent prior to any output.
  4. Ingolme

    cookie coding

    The setcookie() call has to be done before any HTML is printed, even before the <!DOCTYPE> declaration, because cookies are sent with the headers which have to go before the content.
  5. You probably should go through the Javascript tutorial and become familiar with it. If there's still something you need help with after that then you can ask about it here.
  6. Ingolme

    CSS Color styles changing upon being hosted

    Without seeing any code I can't give an answer. If I had to guess I would say that the stylesheet version on your local server is probably different than on the live website. Another possibility is that there's some kind of dark overlay on the page. Open the developer tools in your browser and inspect the elements on the page to see more information.
  7. Ingolme

    cookie coding

    It makes no sense to set the same cookie twice in the same script. The first line will be ignored.
  8. Ingolme

    cookie coding

    To delete a cookie, set its expiry date to a past date. If you set the same cookie twice the first one will be ignored. You're not actually deleting the cookie, you're giving it a different value.
  9. The browser will do validation if you use the <form> element's submit event. Do not use the click event.
  10. Ingolme

    Question on rel="nofollow"

    Google will index the page when it finds it.
  11. Your requirements were not clear. You asked to "make the output of the cURL call visible in the file that produces it" but it's not clear what "visible" means in this context. My interpretation was that you wanted the curl data visible to the script itself instead of being passed on straight to the client. The idea behind that would be that the script can manipulate the data before sending it to the client. It seems that is not what you are looking for. Seeing that you've changed the method to GET, I suspect that you wanted to see the output in your browser by sending a GET request to the script. If your code is designed to only show content when POST data is available then you have to send POST data to see the content.
  12. Ingolme

    Improperly Displayed Submit Button

    I don't have an iPhone with me and can't reproduce it on my emulators, so I'll have to make a guess. It might have something to do with setting the width to "-webkit-auto". At best that would do nothing and at worst it's going to behave unpredictably. Remove the -webkit-auto rule because there will never be a circumstance where it is needed. My second guess would be that it has something to do with the OS's button styles. You should set appearance/-webkit-appearance property so that it behaves like a regular element, like this: #pc_signup form input[type="submit"] { -webkit-appearance: none; apperance: none; } On the topic of -webkit- prefixed rules, they must always go above the real rule, so that browsers that support both will use the most updated version of the rule. I have no idea what you mean by "bubbling" in the context of CSS.
  13. You don't echo it, you store it into a variable and do some processing on it.
  14. Ingolme

    Question on rel="nofollow"

    All it means is that Google will not follow the link, but unless the page itself has a noindex meta tag or is blocked by robots.txt Google can still index it. The nofollow link is usually used for links to external websites.
  15. Ingolme

    Responsive Design Dysfunction

    You're missing a meta viewport tag in overview.html.