im making a new image voting page (if you remember i was making one a few months ago).. heres my thing.. i got it so everyone can leave feedback on images.. but im trying to get it so only registered members can leave feedback, and those who arent registered will see like.. please register..
ive messed with the code enough, and keep coming close, but im not doing something right..
//////// im still learning php..
i was trying to get something like........
if(!session_is_registered("userid")){
$content .= <<<EOF
content here........
that kinda worked.. but it didnt work..
if anyone has any ideas.. thatd be great..
this is that part that deal with the code..
$final_output .= table($title, $content);
$title = "Comment";
if(!isset($comment)) $comment = "";
$comment = stripslashes($comment);
$content = <<<EOF
<blockquote>
<br />
<form method="post" action="$base_url/index.php?$sn=$sid&show=comment#comment">
<a name="comment" class="regular">Comment:</a>
<br />
<textarea name="comment" rows="7" cols="45">$comment</textarea>
EOF;
if(isset($com_error)){
$content .= <<<EOF
<table cellpadding="5" cellspacing="0" border="0" width="100%">
<tr>
<td class="error">$error_message</td>
</tr>
</table>
EOF;
}
if(!isset($com_html)) $com_html = "";
$content .= <<<EOF
<table cellpadding="5" cellspacing="0" border="0" width="100%">
<tr>
<td class="error">$com_html</td>
</tr>
</table>
<br />
<input type="submit" name="submit_comment" value=" Submit Comment -> " />
<br />
<input type="hidden" name="commenter_id" value="$commenter_id" />
<input type="hidden" name="id" value="$com_array[id]" />
<input type="hidden" name="cp" value="$cp">
<input type="hidden" name="pp" value="$pp">
<input type="hidden" name="sr" value="$sr">
<input type="hidden" name="s" value="$s">
EOF;
if($sing > 0){
$content .= <<<EOF
<input type="hidden" name="sing" value="$sing">
EOF;
}
$content .= <<<EOF
</form></blockquote><br />
EOF;
}
$final_output .= table($title, $content);