Help me modify this php scrip.

tranza

Power Member
Joined
Jan 9, 2012
Messages
706
Reaction score
136
HI, i dont know nothing about php. Can somebody help me with this script.

I need to add two more boxes in this script. One box should display a spin content with the name of "blog description" and the other box should display blog title which should be spinnable too.

PHP:
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>IMACROS+SPIN WORDPRESS NETWORK BY: MEEN</title></head>
<body><H1>IMACROS+SPIN WORDPRESS NETWORK BY: MEEN</H1><br />Check <span id="result_box" lang="en" xml:lang="en">Press</span> F5<br /></body></html>
<?php//Title Spin$title ="{spin title}";
//Content Spin$spin_content="{SPIN content }";
//Tags Spin$spin_tags="Spin tag";
function spin($a){if(preg_match('#\{(.+?)\}#is',$a,$b)){if(($i=strpos($b[1],'{'))>-1)$b[1]=substr($b[1],$i+1);$c=explode('|', $b[1]);$a=preg_replace("+\{".preg_quote($b[1])."\}+is", $c[array_rand($c)],$a,1);return spin($a);}return $a;}
?><?phpecho "<form id='form1' name='form1' method='post' action='spin.php'>";
  echo "<label>Title:<br />";  echo "<textarea name='title' id='title' cols='100' rows='5'>";  echo spin($title);  echo "</textarea>";  echo "</label>"; echo "<p>";    echo "<label>Content:<br />";    echo "<textarea name='content' id='content' cols='100' rows='5'>";    echo spin($spin_content);    echo "</textarea>";    echo "</label>"; echo "</p>"; echo "<p>";    echo "<label>Tags:<br />";    echo "<textarea name='tags' id='tags' cols='100' rows='5'>";    echo spin($spin_tags);    echo "</textarea>";    echo "</label>"; echo "</p>";
echo "</form>";?>

Any help would be appreciated.
 
I managed how to modify it, but when i try to add a link it drops me this error Parse error: parse error in
 
Back
Top