Problem with Forums

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sumitkiki
Forum Newbie
Posts: 1
Joined: Thu Jul 26, 2007 1:22 pm

Problem with Forums

Post by sumitkiki »

Everah | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Hi All,

I am a new comer in PHP and learning forms.While learinng forms,I encountered a problem.Please help.

This is the problem,I have created a simple html form and stored in C:/PHP/www folder.This is the form code.

[syntax="html"]<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>
I am using easy php tool for PHP.
On clicking submit button,it redirects to Dream weaver and do not show the result.

This is the php code[/syntax]

Code: Select all

<?php
echo $_POST['Na'];
?>
:?


Everah | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Do you have a web server running on your machine?
andrewcrawford
Forum Newbie
Posts: 11
Joined: Sun Jul 15, 2007 10:55 am

Post by andrewcrawford »

have you loaded easyphp and then loaded the lcoal web? cause if you do not load teh local web and have the page within the www folder of easyphp it wont excute the php
Post Reply