Location: PHPKode > scripts > confirm > confirm/test_confirm.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Test question class</title>
<style type="text/css">
<!--

a.confirmedlinks{
	text-decoration:none;
	background-color: #800000;
	color: white;
	font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
}
a.confirmedlinks:hover{ text-decoration:underline; background-color: yellow; color: black; }

.confirmedbutton{
  background-color: #C0FFc0;
  border: solid 1px black;
  cursor: hand;
}
.inputfield{
  background-color: #FFFFE8;
  border: solid 1px black;
  }
-->
</style>

<?php
include 'confirm.php';

$q = new confirm;

$q->target='_blank';
$q->install_confirm();
?>  
</head>
<body>

<h2>test_confirm.php testing the class "confirm"</h2>
<h4>Now testing the class for &lt;A&gt;-tags</h4>
Standard without using a cssclass: 

<?php
$q->confirm_url( 'Do you really want to go to www.ingoknito.de?',
  'Go to www.ingoknito.de','http://www.ingoknito.de' );

echo '<br><br>Using a cssclass: ';

$q->cssclass = 'confirmedlinks';
$q->confirm_url( 'Do you really want to go to www.ingoknito.de?',
  'Go to www.ingoknito.de','http://www.ingoknito.de' );


?>  
<h4>Now testing the class for &lt;input&gt;-buttons</h4>

Last Data sent: <b><?php echo $example; ?></b>

<form action="test_confirm.php" method="POST">
<input type=hidden name="posted" value="1">
<input name="example" value="<?php echo $example; ?>">
<?php

  $q->cssclass = '';  
  $q->confirm_button( 'Do you really want to send this data?', 'Send Data' );

?>
 (without style)
</form>


Last Data sent: <b><?php echo $example2; ?></b>

<form action="test_confirm.php" method="POST">
<input type=hidden name="posted" value="1">
<input class=inputfield name="example2" value="<?php echo $example2; ?>">
<?php    
  $q->cssclass = 'confirmedbutton';  
  $q->confirm_button( 'Do you really want to send this data?', 'Send Data' );
  
?>
 (using style)
</form>  


</body>
</html>
Return current item: confirm