rusty123
02-19-2007, 07:19 AM
I'm trying to add some custom page tools, but the problem is when i try to save the code to the template it throws out parse errors. (its not vbulletin code) The only way i have found that works so far is to fetch it with <iframe> which i would like to do as last resort. Is there an alternative way to do this without having to have the code rewrited.
<form method="POST" action="<?=$_SERVER["PHP_SELF"];?>">
<input type="hidden" name="checkPr" value="1">
<p>Enter URL's (one for each line) to check Google PageRank:<br>
<textarea rows="6" name="urls" cols="50" nowrap>
<?PHP
if ($_POST["checkPr"] == 1) echo $_POST["urls"];
else echo "http://www.phpclasses.org\nhttp://www.progen.com.tr\nhttp://www.hotscripts.com\nhttp://www.google.com";
?>
Finally took a day of head banging but found what i was after.
ob_start();
include('./pagerank.php');
$pagerank = ob_get_contents();
ob_end_clean();
<form method="POST" action="<?=$_SERVER["PHP_SELF"];?>">
<input type="hidden" name="checkPr" value="1">
<p>Enter URL's (one for each line) to check Google PageRank:<br>
<textarea rows="6" name="urls" cols="50" nowrap>
<?PHP
if ($_POST["checkPr"] == 1) echo $_POST["urls"];
else echo "http://www.phpclasses.org\nhttp://www.progen.com.tr\nhttp://www.hotscripts.com\nhttp://www.google.com";
?>
Finally took a day of head banging but found what i was after.
ob_start();
include('./pagerank.php');
$pagerank = ob_get_contents();
ob_end_clean();