{php}
echo "{a href='sampl.php?id=hai'}Click Here{/a}";
if(isset($_REQUEST['id']))
{
$fp = fopen('data.txt', 'a');
//fwrite($fp, );
fwrite($fp, $_REQUEST['id']);
fclose($fp);
echo"authorize";
}
else
echo"Unauthorize";
{/php}
Function Reference/query posts:
ReplyDeletehttp://codex.wordpress.org/Category_Templates
{php query_posts('cat=3'); }
ReplyDelete{php while (have_posts()) : the_post(); ?>
{ul}
ReplyDelete{li style="float:left; width:150px; border:1px solid #00FF00; list-style:none;"}
{/li}
endwhile;
{/ul}