Jump to content

Bogey

Members
  • Posts

    265
  • Joined

  • Last visited

Everything posted by Bogey

  1. YEAH....!!! now its working how supposed to $to = 'info@mail.nl';$subject = '=?UTF-8?B?' . base64_encode($subject) . '?=';$sender = '=?UTF-8?B?' . base64_encode($sender) . '?='; $headers = 'MIME-Version: 1.0' . "\r\n";$random_hash = md5(date('r', time()));$headers .= 'Content-type: multipart/alternative; boundary="PHP-alt-'.$random_hash.'"' . "\r\n";$headers .= 'From: ' . $sender . '<' . $mailadres . '>'; This works....!!! thnx thnx thnx thnx thnx
  2. Okay, start over ;)I cleared the automaticfilled adress in Outlook... This is my code: <?phpfunction br2nl( $input ) {return preg_replace('/<br(\s+)?\/?>/i', "\n", $input);} if(!empty($_GET['a'])){$afzender = stripslashes($_GET['a']);}if(!empty($_GET['b'])){$mailadres = stripslashes($_GET['b']);}if(!empty($_GET['c'])){$onderwerp = stripslashes($_GET['c']);}if(!empty($_GET['d'])){$bericht = stripslashes($_GET['d']);} $to = 'info@inselsem.nl';$subject = '=?UTF-8?B?' . base64_encode($onderwerp) . '?='; $protocol = strpos(strtolower($_SERVER['SERVER_PROTOCOL']),'https')=== FALSE ? 'http' : 'https';$host = $_SERVER['HTTP_HOST'];$website = $protocol . '://' . $host; $headers = 'MIME-Version: 1.0' . "\r\n";$random_hash = md5(date('r', time()));$headers .= 'Content-type: multipart/alternative; boundary="PHP-alt-'.$random_hash.'"' . "\r\n";$headers .= 'From: ' . $afzender . '<' . $mailadres . '>'; $mail_opmaak="---DEZE EMAIL IS VERZONDEN IN HTML FORMAAT, MAAR UW EMAIL PROGRAMMA ONDERSTEUNT DIT NIET. EVENTUELE OPMAAK EN KLIKBARE LINKS ZIJN VERWIJDERD--- Hier een text versie van de email Enters werken als enters"; $mail_opmaak_html= $mail_opmaak_html . $bericht; $message='--PHP-alt-'.$random_hash.'Content-Type: text/plain; charset="utf-8"Content-Transfer-Encoding: 7bit '.$mail_opmaak.' --PHP-alt-'.$random_hash.'Content-Type: text/html; charset="utf-8"Content-Transfer-Encoding: 7bit '.$mail_opmaak_html.' --PHP-alt-'.$random_hash.'--'; $sentmail = mail($to, $subject, $message, $headers); if($sentmail){?><p align='center'>GOOD...!</p><?php}else {?><p align='center'>FAULT...!</p><?phpreturn;}?> Subject and message show é....The From shows éRené <mail@gmail.com> So just the from needs to be fixed... I think, this problem has to be an issue for lot of people, cause many use Outlook...Or am I just stupid, that I cant get it right?
  3. When I only use this code: $to = 'info@inselsem.nl';if(!empty($_GET['c'])){$onderwerp = stripslashes($_GET['c']);} $subject = '=?UTF-8?B?' . base64_encode($onderwerp) . '?=';$sentmail = mail($to, $subject, "My message"); then I get this:
  4. Did between familie apointments a quick try... Still not working... But your talking about the "subject" part, but that was already quite working how supposed... (see first post)The problem is the sender/from thing, the $to....
  5. thnx!!! going try that out asap!!!!
  6. tried, but nothing changed...
  7. Hi all, I am building a website, with a contact form...When mail is send from contactform to the website owner, then not all is going wel... When I use this code: $headers = 'MIME-Version: 1.0' . "\r\n";$random_hash = md5(date('r', time()));$headers .= 'Content-type: multipart/alternative; boundary="PHP-alt-'.$random_hash.'"' . "\r\n";$headers .= 'From: ' . $afzender . '<' . $mailadres . '>'; $mail_opmaak="---DEZE EMAIL IS VERZONDEN IN HTML FORMAAT, MAAR UW EMAIL PROGRAMMA ONDERSTEUNT DIT NIET. EVENTUELE OPMAAK EN KLIKBARE LINKS ZIJN VERWIJDERD--- Hier een text versie van de email Enters werken als enters"; $mail_opmaak_html= $mail_opmaak_html . $bericht; $message='--PHP-alt-'.$random_hash.'Content-Type: text/plain; charset="utf-8"Content-Transfer-Encoding: 7bit '.$mail_opmaak.' --PHP-alt-'.$random_hash.'Content-Type: text/html; charset="utf-8"Content-Transfer-Encoding: 7bit '.$mail_opmaak_html.' --PHP-alt-'.$random_hash.'--'; $sentmail = mail($to, $onderwerp, $message, $headers); then outlook looks like this: When I use this code: $headers = 'MIME-Version: 1.0' . "\r\n";$random_hash = md5(date('r', time()));//$headers .= 'Content-type: multipart/alternative; boundary="PHP-alt-'.$random_hash.'"' . "\r\n";//$headers .= 'From: ' . $afzender . '<' . $mailadres . '>';$headers .= 'Content-type: multipart/alternative; charset="utf-8" boundary="PHP-alt-'.$random_hash.'"' . "\r\n";$headers .= 'From: ' . $afzender . '<' . $mailadres . '>'; $mail_opmaak="---DEZE EMAIL IS VERZONDEN IN HTML FORMAAT, MAAR UW EMAIL PROGRAMMA ONDERSTEUNT DIT NIET. EVENTUELE OPMAAK EN KLIKBARE LINKS ZIJN VERWIJDERD--- Hier een text versie van de email Enters werken als enters"; $mail_opmaak_html= $mail_opmaak_html . $bericht; $message='--PHP-alt-'.$random_hash.'Content-Type: text/plain; charset="utf-8"Content-Transfer-Encoding: 7bit '.$mail_opmaak.' --PHP-alt-'.$random_hash.'Content-Type: text/html; charset="utf-8"Content-Transfer-Encoding: 7bit '.$mail_opmaak_html.' --PHP-alt-'.$random_hash.'--'; $sentmail = mail($to, $onderwerp, $message, $headers); then OUTLOOK looks like this: What I want is that é is shown how it supposed to and not like é in ALL of the following items:1.) From2.) Subject3.) Message Hope you can help me
  8. Hi all,I have a textarea, which is pre filled out of a database.When I click inside the textarea, to add text, then the area is cleared, instead of keeping the prefilled stuff alive...When I don't type something, and just click outside the area, then the prefilled info returns.When I do type letter, and click outside the area, then only the new letters stays show.When I delete the previous single letter and click outside, then the prefilled stuff is put back again...I want when clicking the area, that the prefilled text stays shown and is adjustable...hope you understand what I mean...BTW the textarea is prefilled from database using PHP...
  9. thnx both.... I think I am going to dive into the hash-thing... that is the most easy to understand I guess
  10. Hi all, This is my problem... I have written different pages in php.1.) Sometimes when a link is clicked a new page opens; (url changes)2.) Sometimes when a link is clicked a div is been reloaded. (url stays the same) Option 1 is no problem, cause when user pushes BACK, then browser goes back to the previous page!Option 2 is the issue!!! When user pushes BACK then browser goed back to the previous url, but the url did not change, only 1 or more divs changed... so I want the user NOT go back to the previous url, but just go back to the page with the previous contect in the div(s) Is this possible?
  11. YES...!!! that did it!!! #@$#@$ I tried this: ....onclick = test(), but not without the bracets... THNX!!!!!
  12. Hi all, This line of code is not working: document.getElementById(divID).onclick="test()"; What I am trying to do is, when a JSfunction is called, this function adds a event to a particular DIV I tried it on different manners f.e. I replaced the test() for the function itself, instead of calling it... This on the other had DOES work! document.getElementById(targetIDreact).title="testing"; document.getElementById(targetIDreact).style.cursor="pointer";document.getElementById(targetIDreact).className="DbContentContainer"; Any help?
  13. Bogey

    Use php inside divID

    Your last post was I thought how I had it.... and did not work... Now I see I missed some <?php and ?>, maybe that was the issue.... I go look at that one next time.... now I need to sleep, eyes falling down and a busy day at work tomorrow hahaha thnx again anyway...
  14. Bogey

    Use php inside divID

    I though PHP was a little more advanced Is the way I solved it a good/neat way, or is it bad?
  15. Bogey

    Use php inside divID

    Yes that did it.... got it working! thnx thnx thnx
  16. Bogey

    Use php inside divID

    or do I need to echo that part inside the php, something like this: <?php$a=1;while (blabla){echo "<DIV id='item_" , $a . "'>";echo "</DIV>";}$a++;
  17. Bogey

    Use php inside divID

    Yes, that is what I am doing in the first post though? php echo is between <?php AND ?> I want my div id's made when page loads (number of divs are different on different times, so I don't know how many divs will apear)In each div is a button which can be clicked,but after click, that certain div needs to reload Hope I make myself clear a bit
  18. Bogey

    Use php inside divID

    Hi all, Is something like this possible? $a=1;while (blablabla)){<DIV id='idname_<?php echo $a;?>'></DIV>$a++;} This is what I want, but cant get it done :S
  19. Got it working with lightBox.... so I threw prettyPhoto aside :S
  20. Hi all, First one question:Does the search option work on this website? I can't get anything to find... :S My problem:I have a form, that has been excecuted, after pressing Submit...After the Submit click I want the button be disabled, but can't get it done... any sollutions? <FORM enctype='multipart/form-data' action='modules/secure/verkoper_secure_sendToDB.php' method='post'> <INPUT name='submit' type='submit' tabindex='<?php echo $tab;?>' id='buttonsendFillDB' disabled='disabled' title='be active if everything is filled!'/></FORM> One more thing:I want the button DISABLE, when the button is clicked (by mouse) BUT ALSO when button is hit with ENTER (keyboard) I tried different things, but can't get it done :S
  21. A quick try, before I go to work... adding "$("a[rel^=prettyPhoto]").prettyPhoto();" did not do the trick Any suggestions on getting info about the $ object overwritten/replaced?
  22. Bogey

    INPUT type=file

    Hmz... I have to dive into that then Your talking about not reloading the page, that sounds good.... but what I want is only reload the same div as where the request is coming from. Is that possible with JQuery orso? Or am I just wanting something that is totally not possible?
  23. Hmz.... difficult problem though :S I read the PrettyPhoto documentation yes... and I am doing it their way, for as far I can see... I did initialize also <script type="text/javascript" charset="utf-8">$(document).ready(function(){$("a[rel^='prettyPhoto']").prettyPhoto();});</SCRIPT> If I didn't, then it would not run also right in the template I Guess? JQuery version: /*!* jQuery JavaScript Library v1.4.1* http://jquery.com/** Copyright 2010, John Resig* Dual licensed under the MIT or GPL Version 2 licenses.* http://jquery.org/license** Includes Sizzle.js* http://sizzlejs.com/* Copyright 2010, The Dojo Foundation* Released under the MIT, BSD, and GPL Licenses.** Date: Mon Jan 25 19:43:33 2010 -0500*/ Hasn't it nothing to do with the issue between JS and PHP (user- and serverside)??? Maybe I have to update JQuery... (I thought I was using v1.7.2 uncompressed, but think I erased it, when resetting PrettyPhoto up from start again) PrettyPhoto script written poorly? I downloaded it from "http://www.no-margin-for-errors.com/", so I did not get it from a strange place... I thought no-margins-for-errors was a well educated neat script website, you can trust on?
×
×
  • Create New...