to gange submit knap
Nogen der kan se hvorfor den viser to Submit knapper?<?php
if ( isset( $_POST ) )
$postArray = &$_POST ; // 4.1.0 or later, use $_POST
else
$postArray = &$HTTP_POST_VARS ; // prior to 4.1.0, use HTTP_POST_VARS
foreach ( $postArray as $sForm => $value )
{
if ( get_magic_quotes_gpc() )
$postedValue = htmlspecialchars( stripslashes( $value ) ) ;
else
$postedValue = htmlspecialchars( $value ) ;
?>
<br /><h2>Er du sikker på du vil tilføje apetizeren til siden?</h2><br />
<form action="kunsthistorie_apet_done.php" method="post"><table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" style="display: none;"><input name="id2" type="hidden" value="<?php
if(isset($_POST[id])) {
$id = $_POST[id];
echo $id;
}
?>" /><textarea name="apet" cols="25" rows="5"><?php echo $postedValue; ?></textarea>
</td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td width="80"><input type="submit" name="button" id="button" value="Ja" /></td>
<td width="120"><a href="#" onClick="window.close()">Nej</a></td>
</tr>
</table>
</form>
<?php
}
?>