RSS Forums RSS
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 463 | Replies: 1
Reply
Join Date: Jul 2007
Posts: 1
Reputation: php_newbie is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
php_newbie php_newbie is offline Offline
Newbie Poster

Question Problem with Forms

  #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'];
?>
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2006
Posts: 162
Reputation: Cerberus is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 14
Cerberus Cerberus is offline Offline
Junior Poster

Re: Problem with Forms

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 6:32 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC