Jump to content


  • Content count

  • Joined

  • Last visited

Community Reputation

860 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

171,632 profile views
  1. Advice Needed for Basic, Simple PHP Mail Script

    The mail() function works with line breaks. Just put a line break in the message that you're sending. It will take a day or two for a domain name to be assigned to an IP address. That's not an issue, that's just the nature of the internet. It takes time for the millions of DNS servers across the world to update their records when a domain name has been assigned to a new IP address.
  2. Advice Needed for Basic, Simple PHP Mail Script

    If your web host has sendmail enabled, the simplest way to send e-mails is to use the mail() function. All you need to do is pass a few strings into one function to use it. It is very primitive and doing things like attaching files or sending formatted e-mails is difficult. The PHPMailer library is much more flexible and has many more features. It requires more code to start off, but overall it makes attaching files, sending mail through an SMTP server and formatting mail with HTML much simpler than with the mail() function.
  3. Using document.cookie

    The document.cookie property is just a long string with all the cookies and their properties in it. The only way to get a cookie out of it is using string manipulation functions to get the pieces of the string that you need. There is no easier way to do it. If you use the localStorage API instead of cookies you'll have an easier time. Here's a page describing how to use the localStorage API: https://www.w3schools.com/jsref/prop_win_localstorage.asp
  4. class attribute selector for autocomplete field

    It is an attribute, so the usual attribute selector will work.
  5. user login verification + condition

    What you had before would have worked if you had added the `title` field to your select statement. You've replaced it with $row[6] which is probably not going to work.
  6. By omitting the action attribute the form submits to the same page.
  7. class attribute selector for autocomplete field

    When you use jQuery and its plugins they often put additional classes on the elements. See if any of the class methods in jQuery help solve your problem, if not then you probably should use data attributes instead of the class attribute to store data. Here's how data attributes are defined: <element data-something="value1" data-somethingelse="value2"> In jQuery you can access the value of data attributes using the data() method: http://api.jquery.com/data/#data-key
  8. unknown jquery code model

    If you have the rest of the source code from that page you should be able to see which libraries are being included. It is either a jQuery plugin or not jQuery at all.
  9. user login verification + condition

    You did not select "title" from the database in your query.
  10. Error 500 - Probable Causes

    It would appear PHP is not printing any of the error messages. You're going to have to either find a way to enable error logging on the server or go through the procedure of cutting out code until it starts giving a useful response.
  11. user login verification + condition

    The first thing you should do is try the code yourself to see if it works. I don't see any obvious errors, so I would guess that it does work, but is unsafe on a few levels. I've removed the database information from your post to keep your accounts safe from people reading the forum. Your SQL query is open to SQL injection. Read about prepared statements to keep your database safe from hackers.nencrypted The passwords are openly visible in the database. It is unsafe for the people signing up to your site because you, and anybody with access to your database, know their passwords and you can use that to hack their accounts on other websites since many people use the same password in multiple places. To solve the password issue, you hash the passwords before storing them into your database using password_hash(). When searching for a user, you have to search by username first, pull out a hashed password and compare it to the data that was sent in the form using password_verify().
  12. running ajax only once inside a for loop

    The asynchronous nature of AJAX means that the code inside the done() and fail() methods only begin running long after the loop ended. Given your current code structure, the easiest way to solve it would be to keep track of whether it was sent already in a global variable. The following code will only work if the noticeSent variable is in the global scope. First define the global variable outside of the loop. var i; var noticeSent = false; for (i=0; i< feeid.length; i++) { When an AJAX response is returned, check the noticeSent variable and only send the notice if it hasn't already been sent: if (sendnotice == "Y" && !noticeSent) { noticeSent = true;
  13. Error 500 - Probable Causes

    I'm not asking you to look at the error console. Look at the network tab. It will have a whole lot of information in it whether or not the request failed. It has the HTTP method, the HTTP status code, the request headers, the request body, the response headers and the response body and it even provides information as to how long the request took to send, process and return from the server. Please show all the information that the network tab provides about the request. I've attached an image showing you what the network tab should look like in your browser:
  14. Error 500 - Probable Causes

    You can't put the console.log() in the success function, because a 500 is a failure. This is why you should monitor the AJAX request in the browser's developer tools.
  15. Error 500 - Probable Causes

    Is there anything in the AJAX response? If it's empty, the only thing left to do is keep stripping out parts of the PHP code until it stops returning 500.