Jump to content

mrMarcus

Members
  • Posts

    1,903
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by mrMarcus

  1. That's not your mail function. Your mail function looks something like this: mail($to, $subject, $body, $headers); Please post that ^ And why do you have 2 Content-type headers?
  2. Can you please post your mail function.
  3. @Muddy_Funster You mean wrapping the address in: John Doe <[email protected]> @lovephp Can you post your mail() function? Are you adding the $headers variable to the mail function? It is the fourth argument.
  4. I made an edit to my post. Please see my last post assuming your tests fail.
  5. Your HTML string is too long. Try appending line-breaks to the end of each line: //EMAIL MESSAGE $email_message .= "<html>\n"; $email_message .= "<style type='text/css'>body,td,th {font-family: Arial, Helvetica, sans-serif; font-size: 13px;}</style>\n"; $email_message .= "<body>\n"; $email_message .= "<table width='650' border='1' cellspacing='0' cellpadding='5'>\n"; // and so on... Alternatively, look into nl2br() with a character limitation of ~70. What is happening is you HTML string is too long and is causing funky characters to be added during processing. EDIT: Just noticed you're casting the email as HTML so the CR LF will not work. Either stick with Content-type: plain/text; or use the nl2br() function to truncate long lines.
  6. Have you tried removing the double-quotes? Instead: $objYahooStock->addStock($stocksymbol); Not sure that will make a difference. Doesn't with procedural functions. Methods might be different (somebody else chime in here).
  7. I don't follow. So, when you're typing into the form? Your process should be as follows: 1. enter data (Arabic) into form, 2. submit form; AJAX call ensues, 3. data is sent for processing and inserted into database. At what stage are you experiencing the issue with encoding?
  8. By "the output" do you mean once it's outputted back to the screen from the database? Or that's how it's showing in the database? What is your table collation? What charset encoding are you using within your application? EDIT: Also, are you specifying a Content-Type (contentType in jQuery) during the AJAX processing? In jQuery, the default is UTF-8.
  9. That's because the $_POST array has not been sent/created yet by your form. Verify its existence by checking for form submission: if (isset($_POST['submit'])) { // create your variables $config['handy'] = $_POST['handy']; $config['computer'] = $_POST['computer']; // etc } And add submit to the name of your submit button: <input type="submit" id="Button1" name="submit" value="Submit">
  10. Do you have a local server in place? E.g. WampServer
  11. Thanks. I'm simply guessing the edit_avatar() function gets called, then delete_item() function? I don't see where delete_avatars() is being called. Should you be calling delete_avatars() instead of delete_item()? Or is delete_item() part of a larger function that calls delete_avatars() separately?
  12. Posting only relevant code would be more helpful. And point out the issues you're experiencing.
  13. These kinds of issues are avoidable with proper table setup. `id_name` and `email` should not be repeated as you have shown above. You need to normalize your database. TABLE `users` `id_name`, `email` TABLE `phone` `phone_number` This is just pseudo setup as I don't know your overall schema. But, for example, if you're using `email` as the username for a user, then that value would have to be unique. Your best to separate the data that can have multiple variances into a separate table and create a relationship table and/or a simple JOIN. Sorry if that comes off as confusing, but table setup is really the best solution to your problem from what I can see.
  14. I showed you already. You're not passing the IP address through the form. <td align="left"><input type="hidden" name="ip" value="" class="style18"><span class="style18"><?php echo $_SERVER['REMOTE_ADDR']; ?></span></td> You're clearly not sending the IP address within the form as you have not added it to the input value. See how value="" is empty? You need to add $_SERVER['REMOTE_ADDR'] to the value attribute within the IP input, like so: <td align="left"><input type="hidden" name="ip" value="<?php echo $_SERVER['REMOTE_ADDR']; ?>" class="style18"><span class="style18"><?php echo $_SERVER['REMOTE_ADDR']; ?></span></td> Not when you collect your $_POST'ed values from the form (using while(list($feld,$wert)=each($_POST))), IP will have a value. HOWEVER, since IP is a hidden input to begin with, and the user is not able to change the value, there really is no logical reason (as per your usage) to have it in the form. You could just append it to the $mailnachricht variable. But do what I suggested above first, and that will get things working.
  15. Are you passing the IP through the form like I suggested? It's a hidden form field; without a value to it, you will not receive the IP address. Aside from that, it's not necessary to add it to the form in the first place since it's hidden. Just add it directly to your mail function.
  16. The AddAddress() function does not accept arrays. When you add a recipient to the AddAddress() function, it queues each recipient for bulk sending. No email is sent until x number of recipients have been added to the queue whether it be 1, 10, or 10,000. No, it should be: $mail->AddAddress('[email protected]', 'John Doe'); If you don't believe me, try it your way and post your results.
  17. $mail->AddAddress() does not accept an array. It accepts 2 arguments/values: $mail->AddAddress('[email protected]', 'John Doe'); With the second argument being optional. Best "practice" in a case where you might have several to many recipients might be to collect your recipients in an array, first, and then loop through the array. Keeping in mind that each individual recipient must be added to the mail handler individually.
  18. Not sure if this is just a typo: <form action="<?php echo $_SERVER['kontakt/PHP_SELF']; ?>" method="post"> Thinking you meant to do?: <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> And I'm assuming you're referring to this line: <td align="left"><input type="hidden" name="ip" value="" class="style18"><span class="style18"><?php echo $_SERVER['REMOTE_ADDR']; ?></span></td> You're clearly not sending the IP address within the form as you have not added it to the input value.
  19. Can't read your code. Please edit/repost.
  20. You're missing a closing </a> to your link.
  21. Are you sure you're successfully logged in? Have you checked if $_SESSION['UserID'] holds the correct value? Or any value at all?
  22. Just taking 3 seconds and looking at the documentation for phpmailer, it appears each recipient must be added separately: $mail->AddAddress($email); $mail->AddAddress($email2);
  23. If you echo $string2, do you get expected results? Is $string2 formatted properly as per how $mail->AddAddress() is expecting it?
  24. Mr. Technical lol. Yes, you're right. They're Notices and not Errors.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.