<form action="take-picture.php" method="post"/>
NIm:<input type="text" name="nim"/>
<input type="submit" value="take picture"/>
</form>
file take-picture.php<?php
session_start();
$_SESSION['nim'] = $_POST['nim'];
?>
<html>
<head>
</head>
<body>
<object width="600" height="400" data="croflash.swf" type="application/x-shockwave-flash">
<param name="data" value="croflash.swf" />
<param name="src" value="croflash.swf" />
<embed src="croflash.swf" type="application/x-shockwave-flash" width="600" height="400" allowfullscreen="true"></embed>
</object>
</body>
</html>