Im trying out php to help me on the logic side
with my form but the php is just not working,
The folder is on the desktop, its not in the XAMPP
directory, I saved it as a php file, and still nothing
the only thing I could think of, is that the php
file needs to be in the localhost/xampp directory

heres the simple code:


<form  action = "regs.php" method = "get">
    Name: <input type= "text" name ="name"><br />
	<input type = "submit" value ="Submit">
</form >

  $name = $_GET['name'];
    if($name == "fernando")
	  echo "Aproved, please do wait";
		 echo " Neein";

I have turned on or activated apache, still nothing.. So what can I do
I mean the html works just fine..., I will appreciate any help, thanks

If you have installed xampp. Open htdocs folder at xampp main folder.
You must set there your PHP file. And open it at http://localhost/FILE.php

The site folder is there on default. You can change this at your xampp - apache configuration.

PHP code will work only there. Your browser doesn't supports php files if they are not located on server with PHP support.