tami
07-06-2005, 12:15 AM
hi,
i'm trying to reload my page once someone submits a comment rather than get the "thank you for visiting and taking the time to comment" page (which is taken from lang_whatever.php)
i suppose it has something to do with this code (below, taken from index.php), so how do i modify it to bypass this thank you page and just reload the current page? obviously, my php skills are lacking in this area -- i've been toying around with it and have had no luck :(
<!-- pixelpost saving comment -->
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title><?php echo $lang_comment_page_title; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="admin/admin_index.css" type="text/css" />
</head>
<body>
<?php
echo "$lang_comment_thank_you<p />$extra_message";
if(!$_GET['popup']) {
echo "<a href='index.php?showimage=$parent_id'>$lang_comment_redirect</a>";
} else {
echo"<a
href='index.php?popup=comment&amp;showimage=$paren t_id'>$lang_comment_redirect</a>";
}
echo "</body></html>";
}
many thanks in advance.
i'm trying to reload my page once someone submits a comment rather than get the "thank you for visiting and taking the time to comment" page (which is taken from lang_whatever.php)
i suppose it has something to do with this code (below, taken from index.php), so how do i modify it to bypass this thank you page and just reload the current page? obviously, my php skills are lacking in this area -- i've been toying around with it and have had no luck :(
<!-- pixelpost saving comment -->
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title><?php echo $lang_comment_page_title; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="admin/admin_index.css" type="text/css" />
</head>
<body>
<?php
echo "$lang_comment_thank_you<p />$extra_message";
if(!$_GET['popup']) {
echo "<a href='index.php?showimage=$parent_id'>$lang_comment_redirect</a>";
} else {
echo"<a
href='index.php?popup=comment&amp;showimage=$paren t_id'>$lang_comment_redirect</a>";
}
echo "</body></html>";
}
many thanks in advance.