Jump to content

musttryharder

New Members
  • Posts

    1
  • Joined

  • Last visited

musttryharder's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Can someone help a php newbie? Making a post to php but no data posted. html file contains this: <head> <title>database connection</title> </head> <body> <form name= "search" action="welcome.php" method="post"> Name: <input type="text" id= "fname" name="fname"> <input type="submit" name="submit"> </form> </body> php file contains this: <html> <head> <title> Handler </title> </head> <body> <?php echo "beginning "; if(isset($_POST['search'])) {echo "Welcome" . $_POST["fname"];} else {echo "post not set for fname ";} if($_SERVER['REQUEST_METHOD'] == "POST") { echo "form submitted";}{echo "request method post not set ";} echo "end"; ?> </body> </html> output gives me this: beginning post not set for fname request method post not set end Im using php 5.2. Im running a windows 7 pc with web server configured (iis). I have validated that php is running. The above text is the entire text for each file.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.