Jump to content

Bogey

Members
  • Posts

    265
  • Joined

  • Last visited

Posts 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? :fool:

  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:optie11.JPG

  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. 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:optie1.JPG 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:optie2.JPG 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 ;)

  6. 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...

  7. 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?

  8. 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?

  9. 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...

  10. 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++;

  11. 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 ;)

  12. 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

  13. 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

  14. 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?

  15. Oke, here I am again!!! ;) This I in my template gives no errors:

    <script type="text/javascript" src="jscript/jquery.js" charset="utf-8"></SCRIPT><script type="text/javascript" src="jscript/prettyPhoto/js/jquery.prettyPhoto.js" charset="utf-8"></SCRIPT><script type="text/javascript" src="jscript/jquery.js" charset="utf-8"></SCRIPT>

    This in my template does give error:

    <script type="text/javascript" src="jscript/jquery.js" charset="utf-8"></SCRIPT><script type="text/javascript" src="jscript/prettyPhoto/js/jquery.prettyPhoto.js" charset="utf-8"></SCRIPT>

    Uncaught TypeError: Property '$' of object [object DOMWindow] is not a function(anonymous function) So I use the add JQuery twice for now... hope you can tell me, why I need it twice? So what must I have been doing wrong?When I use it once, then I also don't get the PrettyPhoto pop-up window.... then it opens in a new window instead.... when I add JQuery twice, then the PrettyPhoto window pops-up... The other thing I can't get right:This is in my template:

    <LINK rel="stylesheet" href="jscript/prettyPhoto/css/prettyPhoto.css" type="text/css" media="screen" charset="utf-8" /> <script type="text/javascript" src="jscript/jquery.js" charset="utf-8"></SCRIPT><script type="text/javascript" src="jscript/prettyPhoto/js/jquery.prettyPhoto.js" charset="utf-8"></SCRIPT><script type="text/javascript" src="jscript/jquery.js" charset="utf-8"></SCRIPT><script type="text/javascript" src="js/basicfunctions.js"></SCRIPT>  <DIV id='test'><DIV id='test1'><A href='images/test/00004000000404.jpg' rel='prettyPhoto'><img src='images/test/thumbs/00004000000404_thumb.jpg' alt='SamplePic' height='100em' width='100em' /></A><A href="javascript:void()" onclick="fillContent('test.php','test2')">ToDIV</A><BR /></DIV><DIV id='test2'></DIV></DIV>

    test.php:

    <H1>Testing</H1><A href='images/test/00004000000404.jpg' rel='prettyPhoto'><img src='images/test/thumbs/00004000000404_thumb.jpg' alt='SamplePic' height='100em' width='100em' /></A>

    basicfunctions:

    var xmlhttp;function run_xmlhttp() {if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safarixmlhttp=new XMLHttpRequest();}else {// code for IE6, IE5xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}}function fillContent(content, targetDiv){run_xmlhttp();xmlhttp.onreadystatechange=function() {if (xmlhttp.readyState==4 && xmlhttp.status==200) {document.getElementById(targetDiv).innerHTML=xmlhttp.responseText;}}xmlhttp.open('GET', content, true);xmlhttp.send();}

    when I open template, then DIV1 gives the picture, and when clicking the picture opens in PrettyPhoto popup window.when I click 'ToDIV' link in the DIV1, then DIV2 is filled with the 'test.php', and I see the picture there, but when clicking, then it opens not in the PrettyPhoto popup, but it opens in a new page... Any clues on the 2 things above? ;)1.) The double insert op JQuery2.) JQuery not working in newly filled div The second one has something to do I think about PrettyPhoto has to be reloaded, cause of the new php.page in div, so the items in DIV2 didn't get the events... but cant get it right...

×
×
  • Create New...