Hello Everyone.

I am a newbie in PHP and using XAMPP tool for learning php.

While dealing with forms,I encounter a problem,please help.

I have made a simple form in which user fill his name in textbox click on button,his name is displayed.But,this is not happening,Instead of this dreamweaver opens up.

I have tried to find the solution,but not able to find it.Please guys,

I need your help .

This is the form code.

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Test</title>
</head>

<body>

<form name="form1" method="POST" action="formprocess1.php">
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="13%">Name</td>
<td width="87%">
<input type="text" name="Na" size="35"></td>
</tr>
<tr>
<td width="100%" colspan="2">
<center><input type="submit" value="Submit" name="B1"></center></td>
</tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</form>

</body>

</html>

This is Php code.

<?php
echo $_POST;
?>

It works fine for me.

Do you try to open the file through the browser or clicking the file icon? I'm just trying think why dreamweaver would open.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.