JA, undskyld jeg er et fjols... Kan du ikke bare skrive
<form action="<?=$PHP_SELF;?>">
...
</form>
Så vil siden loade sig selv når du srykker submit i formen. Eller er det
noget helt andet du vil have den til at gøre ?
Hilsen
John
"Ronni" <ronni1@forum.dk> skrev i en meddelelse
news:3%ei6.56339$zw.1005282@twister.sunsite.dk...
> Hvor ville du umiddelbart sætte denne linie ind, den kan ikke stå i toppen
> for så reloader den hele tiden!
>
> Her er koden:
> ------------------------------------------------------------------------
> <?php
> include('html_top.inc');
>
> <!--- include filen html_top.inc --->
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <html>
> <head>
> <META http-equiv=Content-Type content="text/html; charset=windows-1252">
>
> <link href="css/default.css" rel="stylesheet" type="text/css">
>
> </head>
> <body>
>
> <!--- include filen html_top.inc --->
>
> $siteid = $HTTP_GET_VARS["siteid"];
>
> if ($siteid == read)
> {
>
> include('database open include');
>
> $result = mysql_query("SELECT * FROM tagwall");
>
> while($row = mysql_fetch_array($result))
> {
>
> echo "<table width=\"600\" border=\"0\" cellspacing=\"0\"
> cellpadding=\"2\" valign=\"top\" align=\"center\">\n";
> echo "<tr>\n";
> echo "<td width=\"300\" bgcolor=\"#0F557D\"><font
> color=\"#ffffff\"> ", $row[name], " ~ ", $row[alias],
"</font></td>\n";
> echo "<td width=\"300\" bgcolor=\"#0F557D\" align=\"right\">\n";
>
> if (strlen($row[email]) > 0)
> {
> echo "<a href=\"mailto:", $row[email], "\"><img
> src=\"image/tag_email.gif\" width=\"15\" height=\"16\"
> border=\"0\"></a> \n";
> }
> if (strlen($row[icq]) > 0)
> {
> echo "<img src=\"image/tag_icq.gif\" width=\"15\" height=\"16\"
> border=\"0\"> \n";
> }
> if (strlen($row[homepage]) > 0)
> {
> echo "<a href=\"", $row[homepage], "\" target=\"new\"><img
> src=\"image/tag_homepage.gif\" width=\"13\" height=\"13\"
> border=\"0\"></a> \n";
> }
>
> echo "</td>\n";
> echo "</tr>\n";
> echo "<tr>\n";
> echo "<td width=\"600\" colspan=\"2\" bgcolor=\"#E8EBDD\">\n";
> echo "Submit time : <br>\n";
> echo $row[tag];
> echo "</td>\n";
> echo "</tr>\n";
> echo "</table>\n";
> echo "<br>\n";
>
> }
>
> }
> elseif ($siteid == write)
> {
> echo("
> <form method=\"post\" action=\"tag.php?siteid=submit\">
>
> <table width=\"500\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\">
>
> <tr>
> <td width=\"150\" valign=\"top\" align=\"right\">Name:</td>
> <td width=\"5\"></td>
> <td width=\"345\" valign=\"top\"><input name=\"name\"
size=\"25\"></td>
> </tr>
>
> <tr>
> <td width=\"150\" valign=\"top\" align=\"right\">Alias:</td>
> <td width=\"5\"></td>
> <td width=\"345\" valign=\"top\"><input name=\"alias\"
> size=\"25\"></td>
> </tr>
>
> <tr>
> <td width=\"150\" valign=\"top\" align=\"right\">e-mail:</td>
> <td width=\"5\"></td>
> <td width=\"345\" valign=\"top\"><input name=\"email\"
> size=\"25\"></td>
> </tr>
>
> <tr>
> <td width=\"150\" valign=\"top\" align=\"right\">Homepage:</td>
> <td width=\"5\"></td>
> <td width=\"345\" valign=\"top\"><input name=\"homepage\" size=\"25\"
> value=\"
http://\">