Hi All,
I have problem in follwing script.
<?php
if(isset($_GET['submit'])){
if(!empty($_GET['name'])){
$name=$_GET['name'];
echo'<script type="text/javascript">show();</script>';
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#display{ display:none; border:2px dashed #0033FF; width:200px}
</style>
<script type="text/javascript">
function show(){
document.getElementById("display").style.display="block";
}
</script>
</head>
<body>
<form method="get" action="form.php">
<input type="text" name="name" />
<input type="submit" name="submit" />
</form>
<div id="display">
<?php echo $name; ?>
</div>
</body>
</html>
I am trying to make visible div when php code executes.
Can Anyone please help me on this????


