Problem with Forms

Reply

Join Date: Jul 2007
Posts: 1
Reputation: php_newbie is an unknown quantity at this point 
Solved Threads: 0
php_newbie php_newbie is offline Offline
Newbie Poster

Problem with Forms

 
0
  #1
Jul 28th, 2007
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['Na'];
?>
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 162
Reputation: Cerberus is an unknown quantity at this point 
Solved Threads: 14
Cerberus Cerberus is offline Offline
Junior Poster

Re: Problem with Forms

 
0
  #2
Jul 28th, 2007
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 729 | Replies: 1
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC