Page 1 of 1

Problem with Forums

Posted: Thu Jul 26, 2007 1:39 pm
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]

Posted: Thu Jul 26, 2007 1:44 pm
by RobertGonzalez
Do you have a web server running on your machine?

Posted: Thu Jul 26, 2007 1:59 pm
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