Jump to content

C.Pearse

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

About C.Pearse

  • Birthday 04/02/1988

Contact Methods

  • Website URL
    http://www.christopherpearse.co.uk/

Profile Information

  • Gender
    Male
  • Location
    East Sussex, United Kingdom

C.Pearse's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Probably because we used htmlentities(). Try using this: <?php function BBCode($post) { $post = htmlentities($post); $search = array( '#\[b\](.*?)\[/b\]#is', '#\[i\](.*?)\[/i\]#is', '#\[url=(.*?)\](.*?)\[/url\]#i', '#\:as\:#i' ); $replace = array( '<strong>$1</strong>', '<em>$1</em>', '<a href="$1" title="$2">$2</a>', '<img alt="" src="http://i204.photobucket.com/albums/bb303/img0t/as.png" />' ); $post = preg_replace($search, $replace, $post); $post = nl2br($post); return $post; } for($i = 0; $i < count($post); $i++) { $post[$i][3] = BBCode($post[$i][3]); } ?> Cheers Chris
  2. What class are you using? It looks like you need to check the amount once you've received a success response and act accordingly. Something like this: <?php switch($_GET['action']) { case 'success': if($_POST['mc_gross'] == 1.99) { // Correct payment received... } else { // Incorrect payment received... } break; } ?> Cheers Chris
  3. How about this: <?php $post[$i][3] = preg_replace('#\[url=(.*?)\](.*?)\[/url\]#i', '<a href="$1">$2</a>', htmlentities($post[$i][3])); ?> Cheers Chris
×
×
  • 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.